#include <ct/tcttokenhandle.h>
class TCTTokenHandle |
Public Attributes | |
---|---|
TInt | iTokenId |
TUid | iTokenTypeUid |
Public Member Functions | |
---|---|
TCTTokenHandle() | |
TCTTokenHandle(TUid, TInt) | |
TCTTokenHandle(const TCTTokenHandle &) | |
TBool | operator!=(const TCTTokenHandle &) |
IMPORT_C TBool | operator==(const TCTTokenHandle &) |
Defines a handle to a subclass of the MCTToken class.
The handle identifies the class, not a particular instance of that class. It is guaranteed to be unique within the context of a specific device (e.g. mobile phone, etc.).
The handle is especially useful for communication across process boundaries. For example: a process (A) can open a token (T), get a handle to it and then give the handle to another process (B). This process (B) can then try to open the token (T) using that handle.
TInt | iTokenId |
The identity of the Token.
This Id is unique within the context of a TokenType.
TUid | iTokenTypeUid |
The UID of the TokenType.
This identifies to which TokenType the Token belongs.
IMPORT_C | TCTTokenHandle | ( | ) |
Creates an invalid handle for the token.
An invalid handle has a iTokenTypeUid and a iTokenId equal to 0.
IMPORT_C | TCTTokenHandle | ( | const TCTTokenHandle & | aTokenHandle | ) |
The copy constructor.
Parameter | Description |
---|---|
aTokenHandle | The Token Handle object to copy |
TBool | operator!= | ( | const TCTTokenHandle & | aTokenHandle | ) | const [inline] |
Inequality operator.
Tests whether this Token Handle object is not equal to the specified Token Handle object.
Parameter | Description |
---|---|
aTokenHandle | The Token Handle object to be compared. |
Returns: ETrue, if this Token Handle object is not equal to the specified Token Handle object; EFalse, otherwise.
IMPORT_C TBool | operator== | ( | const TCTTokenHandle & | aTokenHandle | ) | const |
Equality operator.
Tests whether this Token Handle object is equal to the specified Token Handle object.
Parameter | Description |
---|---|
aTokenHandle | The Token Handle object to be compared. |
Returns: ETrue, if this Token Handle object is equal to the specified Token Handle object; EFalse otherwise.