${CMAKE_CURRENT_LIST_DIR}/remotepermissions.cpp
${CMAKE_CURRENT_LIST_DIR}/vfs.cpp
${CMAKE_CURRENT_LIST_DIR}/plugin.cpp
+ ${CMAKE_CURRENT_LIST_DIR}/syncfilestatus.cpp
)
configure_file(${CMAKE_CURRENT_LIST_DIR}/vfspluginmetadata.json.in ${CMAKE_CURRENT_BINARY_DIR}/vfspluginmetadata.json)
--- /dev/null
+/*
+ * Copyright (C) by Klaas Freitag <freitag@owncloud.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ */
+
+#include "syncfilestatus.h"
+
+namespace OCC {
+SyncFileStatus::SyncFileStatus() = default;
+
+SyncFileStatus::SyncFileStatus(SyncFileStatusTag tag)
+ : _tag(tag)
+{
+}
+
+void SyncFileStatus::set(SyncFileStatusTag tag)
+{
+ _tag = tag;
+}
+
+SyncFileStatus::SyncFileStatusTag SyncFileStatus::tag() const
+{
+ return _tag;
+}
+
+void SyncFileStatus::setShared(bool isShared)
+{
+ _shared = isShared;
+}
+
+bool SyncFileStatus::shared() const
+{
+ return _shared;
+}
+
+QString SyncFileStatus::toSocketAPIString() const
+{
+ QString statusString;
+ bool canBeShared = true;
+
+ switch (_tag) {
+ case StatusNone:
+ statusString = QLatin1String("NOP");
+ canBeShared = false;
+ break;
+ case StatusSync:
+ statusString = QLatin1String("SYNC");
+ break;
+ case StatusWarning:
+ // The protocol says IGNORE, but all implementations show a yellow warning sign.
+ statusString = QLatin1String("IGNORE");
+ break;
+ case StatusUpToDate:
+ statusString = QLatin1String("OK");
+ break;
+ case StatusError:
+ statusString = QLatin1String("ERROR");
+ break;
+ }
+ if (canBeShared && _shared) {
+ statusString += QLatin1String("+SWM");
+ }
+
+ return statusString;
+}
+}
--- /dev/null
+/*
+ * Copyright (C) by Klaas Freitag <freitag@owncloud.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ */
+
+#ifndef SYNCFILESTATUS_H
+#define SYNCFILESTATUS_H
+
+#include <QMetaType>
+#include <QObject>
+#include <QString>
+
+#include "ocsynclib.h"
+
+namespace OCC {
+
+/**
+ * @brief The SyncFileStatus class
+ * @ingroup libsync
+ */
+class OCSYNC_EXPORT SyncFileStatus
+{
+public:
+ enum SyncFileStatusTag {
+ StatusNone,
+ StatusSync,
+ StatusWarning,
+ StatusUpToDate,
+ StatusError,
+ };
+
+ SyncFileStatus();
+ SyncFileStatus(SyncFileStatusTag);
+
+ void set(SyncFileStatusTag tag);
+ SyncFileStatusTag tag() const;
+
+ void setShared(bool isShared);
+ bool shared() const;
+
+ QString toSocketAPIString() const;
+
+private:
+ SyncFileStatusTag _tag = StatusNone;
+ bool _shared = false;
+};
+
+inline bool operator==(const SyncFileStatus &a, const SyncFileStatus &b)
+{
+ return a.tag() == b.tag() && a.shared() == b.shared();
+}
+
+inline bool operator!=(const SyncFileStatus &a, const SyncFileStatus &b)
+{
+ return !(a == b);
+}
+}
+
+Q_DECLARE_METATYPE(OCC::SyncFileStatus)
+
+#endif // SYNCFILESTATUS_H
#define SOCKETAPI_H
#include "syncfileitem.h"
-#include "syncfilestatus.h"
+#include "common/syncfilestatus.h"
#include "sharedialog.h" // for the ShareDialogStartPage
#include "common/syncjournalfilerecord.h"
propagatedownloadencrypted.cpp
syncengine.cpp
syncfileitem.cpp
- syncfilestatus.cpp
syncfilestatustracker.cpp
localdiscoverytracker.cpp
syncresult.cpp
#include "common/syncjournalfilerecord.h"
#include "discoveryphase.h"
#include "creds/abstractcredentials.h"
-#include "syncfilestatus.h"
+#include "common/syncfilestatus.h"
#include "csync_exclude.h"
#include "filesystem.h"
#include "propagateremotedelete.h"
+++ /dev/null
-/*
- * Copyright (C) by Klaas Freitag <freitag@owncloud.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * for more details.
- */
-
-#include "syncfilestatus.h"
-
-namespace OCC {
-SyncFileStatus::SyncFileStatus() = default;
-
-SyncFileStatus::SyncFileStatus(SyncFileStatusTag tag)
- : _tag(tag)
-{
-}
-
-void SyncFileStatus::set(SyncFileStatusTag tag)
-{
- _tag = tag;
-}
-
-SyncFileStatus::SyncFileStatusTag SyncFileStatus::tag() const
-{
- return _tag;
-}
-
-void SyncFileStatus::setShared(bool isShared)
-{
- _shared = isShared;
-}
-
-bool SyncFileStatus::shared() const
-{
- return _shared;
-}
-
-QString SyncFileStatus::toSocketAPIString() const
-{
- QString statusString;
- bool canBeShared = true;
-
- switch (_tag) {
- case StatusNone:
- statusString = QLatin1String("NOP");
- canBeShared = false;
- break;
- case StatusSync:
- statusString = QLatin1String("SYNC");
- break;
- case StatusWarning:
- // The protocol says IGNORE, but all implementations show a yellow warning sign.
- statusString = QLatin1String("IGNORE");
- break;
- case StatusUpToDate:
- statusString = QLatin1String("OK");
- break;
- case StatusError:
- statusString = QLatin1String("ERROR");
- break;
- }
- if (canBeShared && _shared) {
- statusString += QLatin1String("+SWM");
- }
-
- return statusString;
-}
-}
+++ /dev/null
-/*
- * Copyright (C) by Klaas Freitag <freitag@owncloud.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * for more details.
- */
-
-#ifndef SYNCFILESTATUS_H
-#define SYNCFILESTATUS_H
-
-#include <QMetaType>
-#include <QObject>
-#include <QString>
-
-#include "owncloudlib.h"
-
-namespace OCC {
-
-/**
- * @brief The SyncFileStatus class
- * @ingroup libsync
- */
-class OWNCLOUDSYNC_EXPORT SyncFileStatus
-{
-public:
- enum SyncFileStatusTag {
- StatusNone,
- StatusSync,
- StatusWarning,
- StatusUpToDate,
- StatusError,
- };
-
- SyncFileStatus();
- SyncFileStatus(SyncFileStatusTag);
-
- void set(SyncFileStatusTag tag);
- SyncFileStatusTag tag() const;
-
- void setShared(bool isShared);
- bool shared() const;
-
- QString toSocketAPIString() const;
-
-private:
- SyncFileStatusTag _tag = StatusNone;
- bool _shared = false;
-};
-
-inline bool operator==(const SyncFileStatus &a, const SyncFileStatus &b)
-{
- return a.tag() == b.tag() && a.shared() == b.shared();
-}
-
-inline bool operator!=(const SyncFileStatus &a, const SyncFileStatus &b)
-{
- return !(a == b);
-}
-}
-
-Q_DECLARE_METATYPE(OCC::SyncFileStatus)
-
-#endif // SYNCFILESTATUS_H
// #include "ownsql.h"
#include "syncfileitem.h"
-#include "syncfilestatus.h"
+#include "common/syncfilestatus.h"
#include <map>
#include <QSet>