QCA::TokenAsker Class Reference

User token handler. More...

#include <qca_core.h>

Inheritance diagram for QCA::TokenAsker:

QObject Collaboration diagram for QCA::TokenAsker:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TokenAsker (QObject *parent=0)
void ask (const KeyStoreInfo &keyStoreInfo, const KeyStoreEntry &keyStoreEntry, void *ptr)
void cancel ()
void waitForResponse ()
bool accepted () const

Public Attributes

Q_SIGNALS __pad0__: void responseReady()

Friends

class Private

Detailed Description

User token handler.

This class is used to request the user to insert a token.

Examples:

eventhandlerdemo.cpp.


Constructor & Destructor Documentation

QCA::TokenAsker::TokenAsker QObject parent = 0  ) 
 

Construct a new asker.

Parameters:
parent the parent object for this QObject


Member Function Documentation

void QCA::TokenAsker::ask const KeyStoreInfo keyStoreInfo,
const KeyStoreEntry keyStoreEntry,
void *  ptr
 

queue a token request associated with a key store

Parameters:
keyStoreInfo info of the key store that the information is required for
keyStoreEntry the item in the key store that the information is required for (if applicable)
ptr opaque data
Examples:
eventhandlerdemo.cpp.

void QCA::TokenAsker::cancel  ) 
 

Cancel the pending password / passphrase request.

void QCA::TokenAsker::waitForResponse  ) 
 

Block until the token request is completed.

You can use the responseReady signal instead of blocking, if appropriate.

Examples:
eventhandlerdemo.cpp.

bool QCA::TokenAsker::accepted  )  const
 

Test if the token request was accepted or not.

Returns:
true if the token request was accepted
Examples:
eventhandlerdemo.cpp.


The documentation for this class was generated from the following file:
Generated on Fri Jul 6 13:23:52 2007 for Qt Cryptographic Architecture by  doxygen 1.4.6