summaryrefslogtreecommitdiffstats
path: root/pica-client/accounts.h
diff options
context:
space:
mode:
authorAnton <anton@picapica>2017-12-01 22:16:24 +0400
committerAnton <anton@picapica>2017-12-01 22:16:24 +0400
commit0f726c30f5f11990d325bc5e55015c42c80cd9d2 (patch)
treef8c9b83cc440dd3a2f43285dc35199435f6e2701 /pica-client/accounts.h
parentac041927bc0c82e33acaa9e15fd46ecca0b77172 (diff)
downloadpica-pica-0f726c30f5f11990d325bc5e55015c42c80cd9d2.tar.gz
pica-pica-0f726c30f5f11990d325bc5e55015c42c80cd9d2.zip
fixed code style on all source files (*.c *.cpp *.h) using astyle --style=allman --lineend=linux --indent=tab --pad-oper
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;
};