|
|
@@ -14,12 +14,15 @@
|
|
|
|
|
|
#include "vfs_suffix.h"
|
|
|
|
|
|
-#include <QFile>
|
|
|
-
|
|
|
#include "syncfileitem.h"
|
|
|
#include "filesystem.h"
|
|
|
#include "common/syncjournaldb.h"
|
|
|
|
|
|
+#include <QFile>
|
|
|
+#include <QLoggingCategory>
|
|
|
+
|
|
|
+Q_LOGGING_CATEGORY(lcVfsSuffix, "nextcloud.sync.vfs.suffix", QtInfoMsg)
|
|
|
+
|
|
|
namespace OCC {
|
|
|
|
|
|
VfsSuffix::VfsSuffix(QObject *parent)
|
|
|
@@ -158,6 +161,12 @@ bool VfsSuffix::statTypeVirtualFile(csync_file_stat_t *stat, void *)
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+bool VfsSuffix::setPinState(const QString &folderPath, PinState state)
|
|
|
+{
|
|
|
+ qCDebug(lcVfsSuffix) << "setPinState" << folderPath << state;
|
|
|
+ return setPinStateInDb(folderPath, state);
|
|
|
+}
|
|
|
+
|
|
|
Vfs::AvailabilityResult VfsSuffix::availability(const QString &folderPath)
|
|
|
{
|
|
|
return availabilityInDb(folderPath);
|