qtkeychain/keychain_p.h

41 lines
1.6 KiB
C
Raw Normal View History

2011-10-27 16:15:46 +00:00
/******************************************************************************
* 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'. *
*****************************************************************************/
2011-10-27 16:14:37 +00:00
#ifndef KEYCHAIN_P_H
#define KEYCHAIN_P_H
2011-10-27 16:15:46 +00:00
#include <QCoreApplication>
2011-10-27 16:14:37 +00:00
#include "keychain.h"
2011-10-27 19:17:54 +00:00
namespace QKeychain {
2011-10-27 16:14:37 +00:00
class Keychain::Private {
2011-10-27 16:15:46 +00:00
Q_DECLARE_TR_FUNCTIONS(Keychain::Private)
2011-10-27 16:14:37 +00:00
public:
2011-10-28 23:21:07 +00:00
explicit Private( const QString& s ) : service( s ), error( NoError ) {}
2011-10-27 16:14:37 +00:00
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 );
2011-10-28 07:38:02 +00:00
Keychain::Error entryExistsImpl( bool* exists,
const QString& key,
QString* errorString );
2011-10-27 16:14:37 +00:00
const QString service;
2011-10-27 16:15:46 +00:00
Keychain::Error error;
QString errorString;
2011-10-27 16:14:37 +00:00
};
2011-10-27 19:17:54 +00:00
}
2011-10-27 16:14:37 +00:00
#endif // KEYCHAIN_P_H