|
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 DevTokenTypeSession |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __DEVTOKENTYPESESSION_H__ |
|
21 #define __DEVTOKENTYPESESSION_H__ |
|
22 |
|
23 #include <ct/ccttokentype.h> |
|
24 #include "DevTokenClientSession.h" |
|
25 |
|
26 /** |
|
27 * Token type session. |
|
28 * It is owned and created by the CDevTokenType so is not released until |
|
29 * all references to the tokentype object are relinquished. It creates |
|
30 * RDevTokenClientSession, with which it communicates with the filetokens |
|
31 * server. |
|
32 * |
|
33 * @lib DevTokenClient.dll |
|
34 * @since S60 v3.2 |
|
35 */ |
|
36 class CDevTokenTypeSession : public CBase |
|
37 { |
|
38 public: |
|
39 |
|
40 virtual ~CDevTokenTypeSession(); |
|
41 |
|
42 public: |
|
43 |
|
44 static CDevTokenTypeSession* NewL(TUid aUid); |
|
45 |
|
46 public: |
|
47 |
|
48 void ListTokensL(RCPointerArray<HBufC>& aTokens); |
|
49 |
|
50 void OpenTokenL(const TDesC& aTokenInfo, MCTTokenType* aTokenType, MCTToken*& aToken); |
|
51 |
|
52 void OpenTokenL(TCTTokenHandle aHandle, MCTTokenType* aTokenType, MCTToken*& aToken); |
|
53 |
|
54 private: |
|
55 |
|
56 CDevTokenTypeSession(TUid aUid); |
|
57 |
|
58 void ConstructL(); |
|
59 |
|
60 private: |
|
61 |
|
62 RDevTokenClientSession iClientSession; |
|
63 |
|
64 TUid iUid; |
|
65 |
|
66 EDevTokenEnum iTokenId; |
|
67 }; |
|
68 |
|
69 #endif // __DEVTOKENTYPESESSION_H__ |
|
70 |
|
71 //EOF |
|
72 |