summaryrefslogtreecommitdiffstats
path: root/pica-client/contacts.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/contacts.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/contacts.h')
-rw-r--r--pica-client/contacts.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/pica-client/contacts.h b/pica-client/contacts.h
index 34c7742..f8ea807 100644
--- a/pica-client/contacts.h
+++ b/pica-client/contacts.h
@@ -10,38 +10,38 @@ class Contacts
{
public:
- enum ContactType
- {
- temporary = 0,
- regular = 1,
- blacklisted = 2
- };
-
- struct ContactRecord
- {
- QByteArray id;
- QString name;
-
- ContactType type;
- };
-
- Contacts(QString storage, QByteArray user_account_id);
-
- bool Exists(QByteArray id);
- void Add(QByteArray id, ContactType type = regular);
- void Delete(QByteArray id);
- QList<ContactRecord> GetContacts(ContactType type = regular);
- QString GetContactCert(QByteArray id);
- QString GetContactName(QByteArray id);
- void SetContactCert(QByteArray id, QString &cert_pem);
- void SetContactName(QByteArray id, QString name);
- QString GetLastError();
- bool isOK();
+ enum ContactType
+ {
+ temporary = 0,
+ regular = 1,
+ blacklisted = 2
+ };
+
+ struct ContactRecord
+ {
+ QByteArray id;
+ QString name;
+
+ ContactType type;
+ };
+
+ Contacts(QString storage, QByteArray user_account_id);
+
+ bool Exists(QByteArray id);
+ void Add(QByteArray id, ContactType type = regular);
+ void Delete(QByteArray id);
+ QList<ContactRecord> GetContacts(ContactType type = regular);
+ QString GetContactCert(QByteArray id);
+ QString GetContactName(QByteArray id);
+ void SetContactCert(QByteArray id, QString &cert_pem);
+ void SetContactName(QByteArray id, QString name);
+ QString GetLastError();
+ bool isOK();
private:
- QSqlDatabase dbconn;
- QSqlError lasterr;
- QByteArray account_id_;
+ QSqlDatabase dbconn;
+ QSqlError lasterr;
+ QByteArray account_id_;
};
#endif // CONTACTS_H