From 0f726c30f5f11990d325bc5e55015c42c80cd9d2 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 1 Dec 2017 22:16:24 +0400 Subject: fixed code style on all source files (*.c *.cpp *.h) using astyle --style=allman --lineend=linux --indent=tab --pad-oper --- pica-client/accounts.h | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'pica-client/accounts.h') 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 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 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; }; -- cgit v1.2.1