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"
|
|
|
|
|
|
|
|
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:
|
|
|
|
explicit Private( const QString& s ) : service( s ) {}
|
|
|
|
|
2011-10-27 16:15:46 +00:00
|
|
|
Keychain::Error writePasswordImpl( const QString& account,
|
|
|
|
const QString& password,
|
|
|
|
Keychain::OverwriteMode,
|
|
|
|
QString* errorString );
|
|
|
|
Keychain::Error deletePasswordImpl( const QString& account,
|
|
|
|
QString* errorString );
|
|
|
|
Keychain::Error readPasswordImpl( QString* password,
|
|
|
|
const QString& account,
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
#endif // KEYCHAIN_P_H
|