Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/creds/dummycredentials.cpp')
-rw-r--r--src/creds/dummycredentials.cpp56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/creds/dummycredentials.cpp b/src/creds/dummycredentials.cpp
new file mode 100644
index 000000000..6857d3218
--- /dev/null
+++ b/src/creds/dummycredentials.cpp
@@ -0,0 +1,56 @@
+/*
+ * Copyright (C) by Krzesimir Nowak <krzesimir@endocode.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; version 2 of the License.
+ *
+ * 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 "creds/dummycredentials.h"
+#include "mirall/mirallaccessmanager.h"
+
+namespace Mirall
+{
+
+void DummyCredentials::syncContextPreInit(CSYNC*)
+{}
+
+void DummyCredentials::syncContextPreStart(CSYNC*)
+{}
+
+bool DummyCredentials::changed(AbstractCredentials* credentials) const
+{
+ DummyCredentials* dummy(dynamic_cast< DummyCredentials* >(credentials));
+
+ return dummy == 0;
+}
+
+QString DummyCredentials::authType() const
+{
+ return QString::fromLatin1("dummy");
+}
+
+QNetworkAccessManager* DummyCredentials::getQNAM() const
+{
+ return new MirallAccessManager;
+}
+
+bool DummyCredentials::ready() const
+{
+ return true;
+}
+
+void DummyCredentials::fetch()
+{
+ Q_EMIT(fetched());
+}
+
+void DummyCredentials::persistForUrl(const QString&)
+{}
+
+} // ns Mirall