summaryrefslogtreecommitdiffstats
path: root/pica-client/contacts.h
diff options
context:
space:
mode:
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