[Pkg-owncloud-commits] [qtkeychain] 15/115: add stub for unix
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Mar 15 19:25:42 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository qtkeychain.
commit b2a8efae5db55d836af26498a693e46815192e30
Author: Frank Osterfeld <frank.osterfeld at kdab.com>
Date: Mon Nov 14 10:56:55 2011 +0100
add stub for unix
---
keychain.h | 1 +
keychain_dbus.cpp | 47 +++++++++++++++++++++++++++++++++++++++++++++++
lib.pro | 5 +++++
3 files changed, 53 insertions(+)
diff --git a/keychain.h b/keychain.h
index 8c205c8..03895b5 100644
--- a/keychain.h
+++ b/keychain.h
@@ -49,6 +49,7 @@ public:
AccessDeniedByUser, /**< User denied access to keychain */
AccessDenied, /**< Access denied for other reasons */
EntryAlreadyExists, /**< There is already an entry for the given key and overwriting was not enforced */
+ NotImplemented, /**< Not implemented on platform */
OtherError /**< Something else went wrong (errorString() might provide details) */
};
diff --git a/keychain_dbus.cpp b/keychain_dbus.cpp
new file mode 100644
index 0000000..3c1fde7
--- /dev/null
+++ b/keychain_dbus.cpp
@@ -0,0 +1,47 @@
+/******************************************************************************
+ * Copyright (C) 2011 Frank Osterfeld <frank.osterfeld at gmail.com> *
+ * *
+ * 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. For licensing and distribution *
+ * details, check the accompanying file 'COPYING'. *
+ *****************************************************************************/
+#include "keychain_p.h"
+
+#include <QSettings>
+
+using namespace QKeychain;
+
+Keychain::Error Keychain::Private::readEntryImpl( QByteArray* pw,
+ const QString& key,
+ QString* err ) {
+ Q_UNUSED( key )
+ Q_ASSERT( pw );
+ Q_ASSERT( err );
+ return NotImplemented;
+}
+
+Keychain::Error Keychain::Private::writeEntryImpl( const QString& key,
+ const QByteArray& data_,
+ QString* err ) {
+ Q_ASSERT( err );
+ return NotImplemented;
+}
+
+Keychain::Error Keychain::Private::deleteEntryImpl( const QString& key,
+ QString* err ) {
+ Q_ASSERT( err );
+ err->clear();
+ return NotImplemented;
+}
+
+
+Keychain::Error Keychain::Private::entryExistsImpl( bool* exists,
+ const QString& key,
+ QString* err ) {
+ Q_ASSERT( exists );
+ Q_ASSERT( err );
+ err->clear();
+ *exists = false;
+ return NotImplemented;
+}
diff --git a/lib.pro b/lib.pro
index 4adc2df..3ae9b72 100644
--- a/lib.pro
+++ b/lib.pro
@@ -13,6 +13,11 @@ macx {
LIBS += -framework Security -framework CoreFoundation
SOURCES += keychain_mac.cpp
}
+
+unix:!macx {
+ SOURCES += keychain_dbus.cpp
+}
+
win32 {
DESTDIR = lib
DLLDESTDIR = lib
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/qtkeychain.git
More information about the Pkg-owncloud-commits
mailing list