|
1 /* |
|
2 * Copyright (c) 2008 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CSTSSLOTMANAGER_H |
|
20 #define CSTSSLOTMANAGER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <string> |
|
25 |
|
26 namespace java |
|
27 { |
|
28 namespace satsa |
|
29 { |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CSTSCardOperationsFacade; |
|
33 class CSTSSlotInfo; |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * Handels the slot(=reader) related operations of connection. |
|
39 * Used for gettings slots from the card and checking is some |
|
40 * slot existing one. |
|
41 * |
|
42 * @since 3.0 |
|
43 */ |
|
44 NONSHARABLE_CLASS(CSTSSlotManager): public CBase |
|
45 { |
|
46 public: // Constructors and destructor |
|
47 |
|
48 /** |
|
49 * Two-phased constructor. |
|
50 */ |
|
51 static CSTSSlotManager* NewL(CSTSCardOperationsFacade* aCOFacade); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 virtual ~CSTSSlotManager(); |
|
57 |
|
58 public: // New functions |
|
59 |
|
60 /** |
|
61 * Gets all slots of the phone |
|
62 * @since 3.0 |
|
63 * @param aSlotString Slot string on return value |
|
64 */ |
|
65 std::wstring GetSlotsL(); |
|
66 |
|
67 /** |
|
68 * Checks is the gived slot existing one |
|
69 * @since 3.0 |
|
70 * @param aSlot Slot number whic will be checked |
|
71 * @return ETrue if slot is existing one, else returns EFalse. |
|
72 */ |
|
73 TBool DoesExistL(TInt aSlot); |
|
74 |
|
75 private: |
|
76 |
|
77 /** |
|
78 * C++ default constructor. |
|
79 */ |
|
80 CSTSSlotManager(CSTSCardOperationsFacade* aCOFacade); |
|
81 |
|
82 /** |
|
83 * By default Symbian 2nd phase constructor is private. |
|
84 */ |
|
85 void ConstructL(); |
|
86 |
|
87 private: // Data |
|
88 |
|
89 // not owned |
|
90 CSTSCardOperationsFacade* iCOFacade; |
|
91 // array of slot information, owned |
|
92 CArrayPtr<CSTSSlotInfo>* iSlotArray; |
|
93 // slot string, owned |
|
94 HBufC* iSlotString; |
|
95 // is slot information got or not |
|
96 TBool iGetPerformed; |
|
97 |
|
98 }; |
|
99 |
|
100 } // namespace satsa |
|
101 } // namespace java |
|
102 #endif // CSTSSLOTMANAGER_H |
|
103 // End of File |