diff options
| author | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-08-30 13:34:02 +0000 |
|---|---|---|
| committer | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-08-30 13:34:02 +0000 |
| commit | 0ef7c1d7471ce20fe54729c27858db864aedee91 (patch) | |
| tree | 3a71b713febdbea19fc7358af68d9f6cfa3c3158 /pica-client/contacts.h | |
| parent | bfd5528f28264772a245dc29f41d4bb5d29fb1eb (diff) | |
| download | pica-pica-0ef7c1d7471ce20fe54729c27858db864aedee91.tar.gz pica-pica-0ef7c1d7471ce20fe54729c27858db864aedee91.zip | |
updated pica-client to make it handle new id format. quint32 type for id is replaced with QByteArray in most places. Implemented verification callbacks in client and node that allow self-signed certificates
git-svn-id: svn://localhost/project_picapica/trunk@266 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'pica-client/contacts.h')
| -rw-r--r-- | pica-client/contacts.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pica-client/contacts.h b/pica-client/contacts.h index 47f6cd8..f3f7663 100644 --- a/pica-client/contacts.h +++ b/pica-client/contacts.h @@ -11,25 +11,25 @@ class Contacts public: struct ContactRecord { - quint32 id; + QByteArray id; QString name; }; - Contacts(QString storage, quint32 user_account_id); + Contacts(QString storage, QByteArray user_account_id); - void Add(quint32 id); - void Delete(quint32 id); + void Add(QByteArray id); + void Delete(QByteArray id); QList<ContactRecord> GetContacts(); - QString GetContactCert(quint32 id); - QString GetContactName(quint32 id); - void SetContactCert(quint32 id, QString &cert_pem); - void SetContactName(quint32 id, QString name); + 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; - quint32 account_id_; + QByteArray account_id_; }; #endif // CONTACTS_H |
