mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-27 20:14:32 +00:00
keystore asynchronous mode stubs
svn path=/trunk/kdesupport/qca/; revision=649644
This commit is contained in:
parent
07ec80a503
commit
fe37f70f89
@ -279,6 +279,21 @@ namespace QCA
|
||||
*/
|
||||
bool isReadOnly() const;
|
||||
|
||||
/**
|
||||
Turns on asynchronous mode for this KeyStore instance.
|
||||
|
||||
Normally, entryList() and writeEntry() are blocking
|
||||
calls. However, if startAsynchronousMode() is called,
|
||||
then these functions will return immediately. entryList()
|
||||
will return with the latest known entries, or an empty
|
||||
list if none are known yet (in this mode, updated() will
|
||||
be emitted once the initial entries are known, even if the
|
||||
store has not actually been altered). writeEntry() will
|
||||
always return true, and the entryWritten() signal
|
||||
indicates the result of a write.
|
||||
*/
|
||||
void startAsynchronousMode();
|
||||
|
||||
/**
|
||||
A list of the KeyStoreEntry objects in this store
|
||||
*/
|
||||
@ -347,6 +362,13 @@ namespace QCA
|
||||
*/
|
||||
void unavailable();
|
||||
|
||||
/**
|
||||
Emitted when an entry has been written, in asynchronous
|
||||
mode. entryId is the newly written entry id on success,
|
||||
or an empty string if the write failed.
|
||||
*/
|
||||
void entryWritten(const QString &entryId);
|
||||
|
||||
private:
|
||||
friend class KeyStorePrivate;
|
||||
KeyStorePrivate *d;
|
||||
|
@ -744,6 +744,11 @@ bool KeyStore::isReadOnly() const
|
||||
return d->item.isReadOnly;
|
||||
}
|
||||
|
||||
void KeyStore::startAsynchronousMode()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
QList<KeyStoreEntry> KeyStore::entryList() const
|
||||
{
|
||||
if(d->trackerId == -1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user