|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 // Including the SIM1 folders is optional as we don't support SIM Access |
|
17 #ifdef __INCLUDE_SIM1_FOLDERS__ |
|
18 |
|
19 #include "pbapfoldersim.h" |
|
20 #include "pbapappheader.h" |
|
21 |
|
22 #include "btaccesshostlog.h" |
|
23 |
|
24 |
|
25 _LIT(KFolderSIM, "SIM1"); |
|
26 _LIT(KFolderSIMTelecom, "telecom"); |
|
27 _LIT(KFolderSIMPb, "pb"); |
|
28 _LIT(KFolderSIMIch, "ich"); |
|
29 _LIT(KFolderSIMOch, "och"); |
|
30 _LIT(KFolderSIMMch, "mch"); |
|
31 _LIT(KFolderSIMCch, "cch"); |
|
32 |
|
33 // |
|
34 // CFolderSIM1Base |
|
35 // |
|
36 CFolderSIM1Base::CFolderSIM1Base(MVirtualFolderClient& aClient, const TDesC& aFolderName) |
|
37 : CFolderBase(aClient, aFolderName) |
|
38 { |
|
39 LOG_FUNC |
|
40 } |
|
41 |
|
42 TInt CFolderSIM1Base::Get(const TDesC& /*aObjectName*/, CPbapAppHeader* aGetData) |
|
43 { |
|
44 LOG_FUNC |
|
45 |
|
46 // we need to take ownership of aGetData but don't require it |
|
47 delete aGetData; |
|
48 |
|
49 // SIM repository support not implemented |
|
50 return KErrNotSupported; |
|
51 } |
|
52 |
|
53 void CFolderSIM1Base::CancelGet() |
|
54 { |
|
55 LOG_FUNC |
|
56 } |
|
57 |
|
58 |
|
59 // |
|
60 // CFolderSIM1 |
|
61 // |
|
62 CFolderSIM1* CFolderSIM1::NewL(MVirtualFolderClient& aClient) |
|
63 { |
|
64 LOG_STATIC_FUNC |
|
65 |
|
66 CFolderSIM1* self = new(ELeave) CFolderSIM1(aClient); |
|
67 return self; |
|
68 } |
|
69 |
|
70 CFolderSIM1::CFolderSIM1(MVirtualFolderClient& aClient) |
|
71 : CFolderSIM1Base(aClient, KFolderSIM()) |
|
72 { |
|
73 LOG_FUNC |
|
74 } |
|
75 |
|
76 // |
|
77 // CFolderSIM1Telecom |
|
78 // |
|
79 CFolderSIM1Telecom* CFolderSIM1Telecom::NewL(MVirtualFolderClient& aClient) |
|
80 { |
|
81 LOG_STATIC_FUNC |
|
82 |
|
83 CFolderSIM1Telecom* self = new(ELeave) CFolderSIM1Telecom(aClient); |
|
84 return self; |
|
85 } |
|
86 |
|
87 CFolderSIM1Telecom::CFolderSIM1Telecom(MVirtualFolderClient& aClient) |
|
88 : CFolderSIM1Base(aClient, KFolderSIMTelecom()) |
|
89 { |
|
90 LOG_FUNC |
|
91 } |
|
92 |
|
93 // |
|
94 // CFolderSIM1NodePb |
|
95 // |
|
96 CFolderSIM1NodePb* CFolderSIM1NodePb::NewL(MVirtualFolderClient& aClient) |
|
97 { |
|
98 LOG_STATIC_FUNC |
|
99 |
|
100 CFolderSIM1NodePb* self = new(ELeave) CFolderSIM1NodePb(aClient); |
|
101 return self; |
|
102 } |
|
103 |
|
104 CFolderSIM1NodePb::CFolderSIM1NodePb(MVirtualFolderClient& aClient) |
|
105 : CFolderSIM1Base(aClient, KFolderSIMPb()) |
|
106 { |
|
107 LOG_FUNC |
|
108 } |
|
109 |
|
110 // |
|
111 // CFolderSIM1NodeIch |
|
112 // |
|
113 CFolderSIM1NodeIch* CFolderSIM1NodeIch::NewL(MVirtualFolderClient& aClient) |
|
114 { |
|
115 LOG_STATIC_FUNC |
|
116 |
|
117 CFolderSIM1NodeIch* self = new(ELeave) CFolderSIM1NodeIch(aClient); |
|
118 return self; |
|
119 } |
|
120 |
|
121 CFolderSIM1NodeIch::CFolderSIM1NodeIch(MVirtualFolderClient& aClient) |
|
122 : CFolderSIM1Base(aClient, KFolderSIMIch()) |
|
123 { |
|
124 LOG_FUNC |
|
125 } |
|
126 |
|
127 // |
|
128 // CFolderSIM1NodeOch |
|
129 // |
|
130 CFolderSIM1NodeOch* CFolderSIM1NodeOch::NewL(MVirtualFolderClient& aClient) |
|
131 { |
|
132 LOG_STATIC_FUNC |
|
133 |
|
134 CFolderSIM1NodeOch* self = new(ELeave) CFolderSIM1NodeOch(aClient); |
|
135 return self; |
|
136 } |
|
137 |
|
138 CFolderSIM1NodeOch::CFolderSIM1NodeOch(MVirtualFolderClient& aClient) |
|
139 : CFolderSIM1Base(aClient, KFolderSIMOch()) |
|
140 { |
|
141 LOG_FUNC |
|
142 } |
|
143 |
|
144 // |
|
145 // CFolderSIM1NodeMch |
|
146 // |
|
147 CFolderSIM1NodeMch* CFolderSIM1NodeMch::NewL(MVirtualFolderClient& aClient) |
|
148 { |
|
149 LOG_STATIC_FUNC |
|
150 |
|
151 CFolderSIM1NodeMch* self = new(ELeave) CFolderSIM1NodeMch(aClient); |
|
152 return self; |
|
153 } |
|
154 |
|
155 CFolderSIM1NodeMch::CFolderSIM1NodeMch(MVirtualFolderClient& aClient) |
|
156 : CFolderSIM1Base(aClient, KFolderSIMMch()) |
|
157 { |
|
158 LOG_FUNC |
|
159 } |
|
160 |
|
161 // |
|
162 // CFolderSIM1NodeCch |
|
163 // |
|
164 CFolderSIM1NodeCch* CFolderSIM1NodeCch::NewL(MVirtualFolderClient& aClient) |
|
165 { |
|
166 LOG_STATIC_FUNC |
|
167 |
|
168 CFolderSIM1NodeCch* self = new(ELeave) CFolderSIM1NodeCch(aClient); |
|
169 return self; |
|
170 } |
|
171 |
|
172 CFolderSIM1NodeCch::CFolderSIM1NodeCch(MVirtualFolderClient& aClient) |
|
173 : CFolderSIM1Base(aClient, KFolderSIMCch()) |
|
174 { |
|
175 LOG_FUNC |
|
176 } |
|
177 |
|
178 #endif // __INCLUDE_SIM1_FOLDERS__ |