pkiutilities/DeviceToken/Inc/DevTokenType.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   The header file of DevTokenType
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CDEVTOKENTYPE_H__
       
    21 #define __CDEVTOKENTYPE_H__
       
    22 
       
    23 #include <ct/ccttokentype.h>
       
    24 
       
    25 class CDevTokenTypeSession; 
       
    26 
       
    27 /**
       
    28  * DevToken Type
       
    29  * Derived from CCTTokenType to represent devicetoken type
       
    30  * 
       
    31  *  @lib DevTokenClient.dll
       
    32  *  @since S60 v3.2
       
    33  */
       
    34 class CDevTokenType :  public CCTTokenType
       
    35     {
       
    36     public:
       
    37     
       
    38         /** 
       
    39         * Creates a client side representation of the CCTTokenType represented by the UID parameter
       
    40         * Called by ECom or directly accessible.  Initiates a session with the filetokens server, and
       
    41         * corresponding token type access server-side
       
    42         *
       
    43         *  @param aUid The UID of the appropriate token type (devcertstore, devkeystore)
       
    44         *  @return
       
    45         */
       
    46         IMPORT_C static CCTTokenType* NewL(TUid aUid);
       
    47     
       
    48     public:
       
    49     
       
    50         virtual ~CDevTokenType();
       
    51     
       
    52     public: 
       
    53          
       
    54         //  From MCTTokenType
       
    55         virtual void List(RCPointerArray<HBufC>& aTokens, TRequestStatus& aStatus);
       
    56         
       
    57         virtual void CancelList();
       
    58         
       
    59         virtual void OpenToken(const TDesC& aTokenInfo, MCTToken*& aToken, TRequestStatus& aStatus);
       
    60         
       
    61         virtual void OpenToken(TCTTokenHandle aHandle, MCTToken*& aToken, TRequestStatus& aStatus);
       
    62         
       
    63         virtual void CancelOpenToken();
       
    64     
       
    65     private:
       
    66     
       
    67         void OpenToken(MCTTokenType* aTokenType);
       
    68     
       
    69     private:
       
    70     
       
    71         CDevTokenType();
       
    72     
       
    73         void ConstructL(TUid aUid);
       
    74     
       
    75     public:
       
    76     
       
    77         TUid iUid;    
       
    78     
       
    79     private:
       
    80     
       
    81         CDevTokenTypeSession* iTokenTypeSession;
       
    82     };
       
    83 
       
    84 #endif  //  __CDTTOKENTYPE_H__
       
    85 
       
    86 //EOF
       
    87