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/accounts.cpp | |
| 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/accounts.cpp')
| -rw-r--r-- | pica-client/accounts.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pica-client/accounts.cpp b/pica-client/accounts.cpp index eb7b035..4b70b47 100644 --- a/pica-client/accounts.cpp +++ b/pica-client/accounts.cpp @@ -34,7 +34,7 @@ void Accounts::Add(AccountRecord &acc) lasterr=query.lastError(); } -void Accounts::Delete(quint32 id) +void Accounts::Delete(QByteArray id) { QSqlQuery query; @@ -61,7 +61,7 @@ QList<Accounts::AccountRecord> Accounts::GetAccounts() while(query.next()) { - r.id = query.value(0).toUInt(); + r.id = query.value(0).toByteArray(); r.name = query.value(1).toString(); r.cert_file = query.value(2).toString(); r.pkey_file = query.value(3).toString(); @@ -73,7 +73,7 @@ QList<Accounts::AccountRecord> Accounts::GetAccounts() return L; } -QString Accounts::GetName(quint32 id) +QString Accounts::GetName(QByteArray id) { QSqlQuery query; |
