keystore asynchronous mode stubs

svn path=/trunk/kdesupport/qca/; revision=649644
This commit is contained in:
Justin Karneges 2007-04-02 22:41:46 +00:00
parent 07ec80a503
commit fe37f70f89
2 changed files with 27 additions and 0 deletions

View File

@ -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;

View File

@ -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)