/****************************************************************************** * Copyright (C) 2011 Frank Osterfeld * * * * 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'. * *****************************************************************************/ #ifndef KEYCHAIN_P_H #define KEYCHAIN_P_H #include #include #include #include "keychain.h" namespace QKeychain { class Keychain::Private { Q_DECLARE_TR_FUNCTIONS(Keychain::Private) public: explicit Private( const QString& service_, QSettings* settings_ ) : service( service_ ), settings( settings_ ), error( NoError ) {} Keychain::Error writeEntryImpl( const QString& account, const QByteArray& data, QString* errorString ); Keychain::Error deleteEntryImpl( const QString& account, QString* errorString ); Keychain::Error readEntryImpl( QByteArray* password, const QString& account, QString* errorString ); Keychain::Error entryExistsImpl( bool* exists, const QString& key, QString* errorString ); const QString service; QPointer settings; Keychain::Error error; QString errorString; }; } #endif // KEYCHAIN_P_H