introduce QKeychain namespace

This commit is contained in:
Frank Osterfeld 2011-10-27 21:17:54 +02:00
parent aaa04dbb49
commit 8d590e0729
5 changed files with 11 additions and 0 deletions

View File

@ -9,6 +9,8 @@
#include "keychain.h"
#include "keychain_p.h"
using namespace QKeychain;
Keychain::Keychain( const QString& service )
: d( new Private( service ) )
{

View File

@ -11,6 +11,7 @@
#include <QtCore/QString>
namespace QKeychain {
/**
*
*/
@ -99,4 +100,6 @@ private:
Q_DISABLE_COPY(Keychain)
};
}
#endif

View File

@ -12,6 +12,8 @@
#include <Security/Security.h>
#include <QDebug>
using namespace QKeychain;
template <typename T>
struct Releaser {
explicit Releaser( const T& v ) : value( v ) {}

View File

@ -13,6 +13,7 @@
#include "keychain.h"
namespace QKeychain {
class Keychain::Private {
Q_DECLARE_TR_FUNCTIONS(Keychain::Private)
public:
@ -33,4 +34,6 @@ public:
QString errorString;
};
}
#endif // KEYCHAIN_P_H

View File

@ -12,6 +12,7 @@
#include "keychain.h"
#include <iostream>
using namespace QKeychain;
int printUsage() {
std::cerr << "testclient store <account> <password>" << std::endl;