class 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.
Public Member Functions | |
---|---|
TCTTokenHandle() | |
TCTTokenHandle(TUid, TInt) | |
TCTTokenHandle(const TCTTokenHandle &) | |
TBool | operator!=(const TCTTokenHandle &) |
IMPORT_C TBool | operator==(const TCTTokenHandle &) |
Public Attributes | |
---|---|
TInt | iTokenId |
TUid | iTokenTypeUid |
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 | ( | TUid | aTokenTypeUid, |
TInt | aTokenId | |||
) |
Creates a handle for the token.
IMPORT_C | TCTTokenHandle | ( | const TCTTokenHandle & | aTokenHandle | ) |
The copy constructor.
const TCTTokenHandle & 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.
const TCTTokenHandle & aTokenHandle | The Token Handle object to be compared. |
IMPORT_C TBool | operator== | ( | const TCTTokenHandle & | aTokenHandle | ) | const |
Equality operator.
Tests whether this Token Handle object is equal to the specified Token Handle object.
const TCTTokenHandle & aTokenHandle | The Token Handle object to be compared. |
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.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.