summaryrefslogtreecommitdiffstats
path: root/pica-client/accounts.h
diff options
context:
space:
mode:
Diffstat (limited to 'pica-client/accounts.h')
-rw-r--r--pica-client/accounts.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/pica-client/accounts.h b/pica-client/accounts.h
index 8cb6592..f147888 100644
--- a/pica-client/accounts.h
+++ b/pica-client/accounts.h
@@ -9,32 +9,32 @@
class Accounts
{
public:
- struct AccountRecord
- {
- QByteArray id;
- QString name;
- QString cert_file;
- QString pkey_file;
- QString CA_file;
- };
-
- Accounts(QString storage);
- void Add(AccountRecord& acc);
- void Delete(QByteArray id);
- QList<AccountRecord> GetAccounts();
- QString GetName(QByteArray id);
- bool isOK();
- QString GetLastError();
-
- static bool CheckFiles(AccountRecord& acc, QString &error_string);
-
- static AccountRecord &GetCurrentAccount();
- static void SetCurrentAccount(AccountRecord &rec);
+ struct AccountRecord
+ {
+ QByteArray id;
+ QString name;
+ QString cert_file;
+ QString pkey_file;
+ QString CA_file;
+ };
+
+ Accounts(QString storage);
+ void Add(AccountRecord& acc);
+ void Delete(QByteArray id);
+ QList<AccountRecord> GetAccounts();
+ QString GetName(QByteArray id);
+ bool isOK();
+ QString GetLastError();
+
+ static bool CheckFiles(AccountRecord& acc, QString &error_string);
+
+ static AccountRecord &GetCurrentAccount();
+ static void SetCurrentAccount(AccountRecord &rec);
private:
- static AccountRecord current_account;
- QSqlDatabase dbconn;
- QSqlError lasterr;
+ static AccountRecord current_account;
+ QSqlDatabase dbconn;
+ QSqlError lasterr;
};