add stub for unix
This commit is contained in:
parent
d6ecb94c8f
commit
b2a8efae5d
|
@ -49,6 +49,7 @@ public:
|
||||||
AccessDeniedByUser, /**< User denied access to keychain */
|
AccessDeniedByUser, /**< User denied access to keychain */
|
||||||
AccessDenied, /**< Access denied for other reasons */
|
AccessDenied, /**< Access denied for other reasons */
|
||||||
EntryAlreadyExists, /**< There is already an entry for the given key and overwriting was not enforced */
|
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) */
|
OtherError /**< Something else went wrong (errorString() might provide details) */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,47 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Copyright (C) 2011 Frank Osterfeld <frank.osterfeld@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;
|
||||||
|
}
|
5
lib.pro
5
lib.pro
|
@ -13,6 +13,11 @@ macx {
|
||||||
LIBS += -framework Security -framework CoreFoundation
|
LIBS += -framework Security -framework CoreFoundation
|
||||||
SOURCES += keychain_mac.cpp
|
SOURCES += keychain_mac.cpp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unix:!macx {
|
||||||
|
SOURCES += keychain_dbus.cpp
|
||||||
|
}
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
DESTDIR = lib
|
DESTDIR = lib
|
||||||
DLLDESTDIR = lib
|
DLLDESTDIR = lib
|
||||||
|
|
Loading…
Reference in New Issue