From c612123cc5dd074b46ec769950b14324e9221605 Mon Sep 17 00:00:00 2001 From: Frank Osterfeld Date: Fri, 6 Apr 2012 17:39:59 +0200 Subject: [PATCH] Implement dbus stub for async API. --- keychain_dbus.cpp | 34 ++++------------------------------ 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/keychain_dbus.cpp b/keychain_dbus.cpp index 6c67f7c..f5bef73 100644 --- a/keychain_dbus.cpp +++ b/keychain_dbus.cpp @@ -12,36 +12,10 @@ using namespace QKeychain; -QKeychain::Error Keychain::Private::readEntryImpl( QByteArray* pw, - const QString& key, - QString* err ) { - Q_UNUSED( key ) - Q_ASSERT( pw ); - Q_ASSERT( err ); - return NotImplemented; +void ReadPasswordJob::Private::doStart() { + q->emitFinishedWithError( NotImplemented, QString() ); } -QKeychain::Error Keychain::Private::writeEntryImpl( const QString& key, - const QByteArray& data_, - QString* err ) { - Q_ASSERT( err ); - return NotImplemented; -} - -QKeychain::Error Keychain::Private::deleteEntryImpl( const QString& key, - QString* err ) { - Q_ASSERT( err ); - err->clear(); - return NotImplemented; -} - - -QKeychain::Error Keychain::Private::entryExistsImpl( bool* exists, - const QString& key, - QString* err ) { - Q_ASSERT( exists ); - Q_ASSERT( err ); - err->clear(); - *exists = false; - return NotImplemented; +void WritePasswordJob::Private::doStart() { + q->emitFinishedWithError( NotImplemented, QString() ); }