class CCTTokenType : protected CBase |
A token type.
This abstract class is instantiated using the ECom plug-in architecture for a particular token type. This adds a delayed destruction behaviour to MCTTokenType , which defines the majority of the interface.
This class uses protected inheritance from CBase so that clients cannot inadvertantly call delete on instances of it - they should call the Release() method instead.
Public Member Functions | |
---|---|
RFs & | Fs () |
IMPORT_C const TDesC & | Label () |
IMPORT_C CCTTokenType * | NewL (const CCTTokenTypeInfo &, RFs ) |
IMPORT_C CCTTokenType * | NewL ( TUid , RFs ) |
IMPORT_C void | Release () |
IMPORT_C TUid | Type () |
Protected Member Functions | |
---|---|
CCTTokenType () | |
~CCTTokenType () | |
IMPORT_C void | ConstructL ( TUid , const TDesC &, RFs ) |
IMPORT_C void | IncReferenceCount () |
Private Member Functions | |
---|---|
CCTTokenType * | CreateTokenTypeLC ( TUid ) |
Private Attributes | |
---|---|
TInt | iCount |
CCTTokenTypeDeleteHandler * | iDeleteHandler |
RFs | iFs |
HBufC * | iLabel |
TUid | iUID |
IMPORT_C void | ConstructL | ( | TUid | aUID, |
const TDesC & | aLabel, | |||
RFs | aFs | |||
) | [protected] |
For 2 phase construction.
This function must be called by derived NewL() functions if and only if the class is being constructed without using ECom.
CCTTokenType * | CreateTokenTypeLC | ( | TUid | aUid | ) | [private, static] |
TUid aUid |
IMPORT_C void | IncReferenceCount | ( | ) | [protected] |
Increments the reference count.
Must be called for every token created from this interface
IMPORT_C CCTTokenType * | NewL | ( | const CCTTokenTypeInfo & | aInfo, |
RFs | aFs | |||
) | [static] |
Creates a CCTTokenType given its CCTTokenTypeInfo .
Static constructor function that uses the ECom plug-in architecture to load the actual implementation.
const CCTTokenTypeInfo & aInfo | Information about the token type. |
RFs aFs | An open file server session. |
IMPORT_C CCTTokenType * | NewL | ( | TUid | aUID, |
RFs | aFs | |||
) | [static] |
Creates a CCTTokenType given the UID of the token type.
Static constructor function that uses the ECom plug-in architecture to load the actual implementation.
IMPORT_C void | Release | ( | ) | [virtual] |
Releases the token type object.
To be called when you have finished with the object.
The API does not allow the destructor to be directly called as this object could remain in existence for longer to hold onto the ECom handle on the DLL; for instance it may not be deleted until all tokens and interfaces have also been released.
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.