williamr@2
|
1 |
/*
|
williamr@2
|
2 |
* Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
3 |
* All rights reserved.
|
williamr@2
|
4 |
* This component and the accompanying materials are made available
|
williamr@2
|
5 |
* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
|
williamr@2
|
6 |
* which accompanies this distribution, and is available
|
williamr@2
|
7 |
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
8 |
*
|
williamr@2
|
9 |
* Initial Contributors:
|
williamr@2
|
10 |
* Nokia Corporation - initial contribution.
|
williamr@2
|
11 |
*
|
williamr@2
|
12 |
* Contributors:
|
williamr@2
|
13 |
*
|
williamr@2
|
14 |
* Description: Static class to call combined common file dialogs.
|
williamr@2
|
15 |
*
|
williamr@2
|
16 |
*/
|
williamr@2
|
17 |
|
williamr@2
|
18 |
|
williamr@2
|
19 |
#ifndef AKNCOMMONDIALOGS_H
|
williamr@2
|
20 |
#define AKNCOMMONDIALOGS_H
|
williamr@2
|
21 |
|
williamr@2
|
22 |
// INCLUDES
|
williamr@2
|
23 |
#include <CAknCommonDialogsBase.h>
|
williamr@2
|
24 |
|
williamr@2
|
25 |
// FORWARD DECLARATIONS
|
williamr@2
|
26 |
class MAknMemorySelectionObserver;
|
williamr@2
|
27 |
class MAknFileSelectionObserver;
|
williamr@2
|
28 |
class MAknFileFilter;
|
williamr@2
|
29 |
|
williamr@2
|
30 |
// CLASS DEFINITION
|
williamr@2
|
31 |
/**
|
williamr@2
|
32 |
* DEPRECATED: Use AknCommonDialogsDynMem instead. This class is only used as a
|
williamr@2
|
33 |
* proxy to the new implementation class to maintain backwards compatibility.
|
williamr@2
|
34 |
*
|
williamr@2
|
35 |
* A class that consists of static functions that launch UI components in a
|
williamr@2
|
36 |
* sequence. First, memory selection component is launched and then
|
williamr@2
|
37 |
* file/directory selection component. In save and move dialogs directory
|
williamr@2
|
38 |
* selection may not be shown if there are no subdirectories to choose from.
|
williamr@2
|
39 |
* In save dialog, finally filename prompt component is launched.
|
williamr@2
|
40 |
*
|
williamr@2
|
41 |
* All methods have an obligatory resource ID parameter for memory selection
|
williamr@2
|
42 |
* because it contains the paths for both memories (Phone&MMC) (LOCATION structs).
|
williamr@2
|
43 |
* If set, an observer is queried just before exiting the dialog.
|
williamr@2
|
44 |
* At this point the application can either reject or accept user's selection.
|
williamr@2
|
45 |
* Every dialog returns a boolean value which tells if user has selected something
|
williamr@2
|
46 |
* or not.
|
williamr@2
|
47 |
*
|
williamr@2
|
48 |
* @lib CommonDialogs.lib
|
williamr@2
|
49 |
* @since 1.2
|
williamr@2
|
50 |
*/
|
williamr@2
|
51 |
class AknCommonDialogs
|
williamr@2
|
52 |
{
|
williamr@2
|
53 |
|
williamr@2
|
54 |
public:
|
williamr@2
|
55 |
|
williamr@2
|
56 |
/**
|
williamr@2
|
57 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
58 |
*
|
williamr@2
|
59 |
* A static method that launches file selection dialog.
|
williamr@2
|
60 |
* @param aFileName Full path and filename of the file that user
|
williamr@2
|
61 |
* selects is stored to this descriptor.
|
williamr@2
|
62 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
63 |
* dialog.
|
williamr@2
|
64 |
* @param aObserver An observer which is asked, if set, to verify user's
|
williamr@2
|
65 |
* selection.
|
williamr@2
|
66 |
* @return Returns ETrue if user selects a file, otherwise EFalse.
|
williamr@2
|
67 |
*/
|
williamr@2
|
68 |
IMPORT_C static TBool RunSelectDlgLD(
|
williamr@2
|
69 |
TDes& aFileName,
|
williamr@2
|
70 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
71 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
72 |
|
williamr@2
|
73 |
/**
|
williamr@2
|
74 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
75 |
*
|
williamr@2
|
76 |
* A static method that launches file selection dialog.
|
williamr@2
|
77 |
* @param aFileName Full path and filename of the file that user
|
williamr@2
|
78 |
* selects is stored to this descriptor.
|
williamr@2
|
79 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
80 |
* dialog.
|
williamr@2
|
81 |
* @param aFilter Filter is asked if a directory entry can be shown in
|
williamr@2
|
82 |
* list. Ownership is not transferred.
|
williamr@2
|
83 |
* @param aObserver An observer which is asked, if set, to verify user's
|
williamr@2
|
84 |
* selection.
|
williamr@2
|
85 |
* @return Returns ETrue if user selects a file, otherwise EFalse.
|
williamr@2
|
86 |
*/
|
williamr@2
|
87 |
IMPORT_C static TBool RunSelectDlgLD(
|
williamr@2
|
88 |
TDes& aFileName,
|
williamr@2
|
89 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
90 |
MAknFileFilter* aFilter,
|
williamr@2
|
91 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
92 |
|
williamr@2
|
93 |
/**
|
williamr@2
|
94 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
95 |
*
|
williamr@2
|
96 |
* A static method that launches file selection dialog.
|
williamr@2
|
97 |
* @param aFileName Full path and filename of the file that user
|
williamr@2
|
98 |
* selects is stored to this descriptor.
|
williamr@2
|
99 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
100 |
* dialog.
|
williamr@2
|
101 |
* @param aFileSelectionTitle A custom title for file selection dialog.
|
williamr@2
|
102 |
* @param aObserver An observer which is asked, if set, to verify user's
|
williamr@2
|
103 |
* selection.
|
williamr@2
|
104 |
* @return Returns ETrue if user selects a file, otherwise EFalse.
|
williamr@2
|
105 |
*/
|
williamr@2
|
106 |
IMPORT_C static TBool RunSelectDlgLD(
|
williamr@2
|
107 |
TDes& aFileName,
|
williamr@2
|
108 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
109 |
const TDesC& aFileSelectionTitle,
|
williamr@2
|
110 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
111 |
|
williamr@2
|
112 |
/**
|
williamr@2
|
113 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
114 |
*
|
williamr@2
|
115 |
* A static method that launches file selection dialog.
|
williamr@2
|
116 |
* @param aFileName Full path and filename of the file that user
|
williamr@2
|
117 |
* selects is stored to this descriptor.
|
williamr@2
|
118 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
119 |
* dialog.
|
williamr@2
|
120 |
* @param aFileSelectionResourceId A resource id for file selection
|
williamr@2
|
121 |
* dialog.
|
williamr@2
|
122 |
* @param aObserver An observer which is asked, if set, to verify user's
|
williamr@2
|
123 |
* selection.
|
williamr@2
|
124 |
* @return Returns ETrue if user selects a file, otherwise EFalse.
|
williamr@2
|
125 |
*/
|
williamr@2
|
126 |
IMPORT_C static TBool RunSelectDlgLD(
|
williamr@2
|
127 |
TDes& aFileName,
|
williamr@2
|
128 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
129 |
TInt aFileSelectionResourceId,
|
williamr@2
|
130 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
131 |
|
williamr@2
|
132 |
/**
|
williamr@2
|
133 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
134 |
*
|
williamr@2
|
135 |
* A static method that launches move dialog.
|
williamr@2
|
136 |
* @param aDirectory Full path of the folder that user
|
williamr@2
|
137 |
* selects is stored to this descriptor.
|
williamr@2
|
138 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
139 |
* dialog.
|
williamr@2
|
140 |
* @param aObserver An observer which is asked, if set, to verify user's
|
williamr@2
|
141 |
* selection.
|
williamr@2
|
142 |
* @return Returns ETrue if user selects a folder, otherwise EFalse.
|
williamr@2
|
143 |
*/
|
williamr@2
|
144 |
IMPORT_C static TBool RunMoveDlgLD(
|
williamr@2
|
145 |
TDes& aDirectory,
|
williamr@2
|
146 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
147 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
148 |
|
williamr@2
|
149 |
/**
|
williamr@2
|
150 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
151 |
*
|
williamr@2
|
152 |
* A static method that launches move dialog.
|
williamr@2
|
153 |
* @param aDirectory Full path of the folder that user
|
williamr@2
|
154 |
* selects is stored to this descriptor.
|
williamr@2
|
155 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
156 |
* dialog.
|
williamr@2
|
157 |
* @param aFilter Filter is asked if a directory entry can be shown in
|
williamr@2
|
158 |
* list. Ownership is not transferred.
|
williamr@2
|
159 |
* @param aObserver An observer which is asked, if set, to verify user's
|
williamr@2
|
160 |
* selection.
|
williamr@2
|
161 |
* @return Returns ETrue if user selects a folder, otherwise EFalse.
|
williamr@2
|
162 |
*/
|
williamr@2
|
163 |
IMPORT_C static TBool RunMoveDlgLD(
|
williamr@2
|
164 |
TDes& aDirectory,
|
williamr@2
|
165 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
166 |
MAknFileFilter* aFilter,
|
williamr@2
|
167 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
168 |
|
williamr@2
|
169 |
/**
|
williamr@2
|
170 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
171 |
*
|
williamr@2
|
172 |
* A static method that launches move dialog.
|
williamr@2
|
173 |
* @param aDirectory Full path of the folder that user
|
williamr@2
|
174 |
* selects is stored to this descriptor.
|
williamr@2
|
175 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
176 |
* dialog.
|
williamr@2
|
177 |
* @param aFileSelectionTitle A custom title for directory selection
|
williamr@2
|
178 |
* dialog.
|
williamr@2
|
179 |
* @param aObserver An observer which is asked, if set, to verify user's
|
williamr@2
|
180 |
* selection.
|
williamr@2
|
181 |
* @return Returns ETrue if user selects a folder, otherwise EFalse
|
williamr@2
|
182 |
*/
|
williamr@2
|
183 |
IMPORT_C static TBool RunMoveDlgLD(
|
williamr@2
|
184 |
TDes& aDirectory,
|
williamr@2
|
185 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
186 |
const TDesC& aFileSelectionTitle,
|
williamr@2
|
187 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
188 |
|
williamr@2
|
189 |
/**
|
williamr@2
|
190 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
191 |
*
|
williamr@2
|
192 |
* A static method that launches move dialog.
|
williamr@2
|
193 |
* @param aDirectory Full path of the folder that user
|
williamr@2
|
194 |
* selects is stored to this descriptor.
|
williamr@2
|
195 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
196 |
* dialog
|
williamr@2
|
197 |
* @param aFileSelectionResourceId A resource id for file selection
|
williamr@2
|
198 |
* dialog
|
williamr@2
|
199 |
* @param aObserver An observer which is asked, if set, to verify user's
|
williamr@2
|
200 |
* selection.
|
williamr@2
|
201 |
* @return Returns ETrue if user selects a folder, otherwise EFalse
|
williamr@2
|
202 |
*/
|
williamr@2
|
203 |
IMPORT_C static TBool RunMoveDlgLD(
|
williamr@2
|
204 |
TDes& aDirectory,
|
williamr@2
|
205 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
206 |
TInt aFileSelectionResourceId,
|
williamr@2
|
207 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
208 |
|
williamr@2
|
209 |
/**
|
williamr@2
|
210 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
211 |
*
|
williamr@2
|
212 |
* A static method that launches save dialog which does not run folder
|
williamr@2
|
213 |
* selection dialog at all. Instead the resulting path will be
|
williamr@2
|
214 |
* constructed from the root and default folder read from resources and
|
williamr@2
|
215 |
* from the file name given by the user.
|
williamr@2
|
216 |
* @param aDefaultFileName Full path + the filename that user enters
|
williamr@2
|
217 |
* is stored to this descriptor. The descriptor may contain text
|
williamr@2
|
218 |
* that is used as default filename, for example "Attachment".
|
williamr@2
|
219 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
220 |
* dialog.
|
williamr@2
|
221 |
* @param aObserver An observer which is asked, if set, to verify the
|
williamr@2
|
222 |
* filename that user types.
|
williamr@2
|
223 |
* @return Returns ETrue if user accepts or enters a filename, otherwise
|
williamr@2
|
224 |
* EFalse.
|
williamr@2
|
225 |
*/
|
williamr@2
|
226 |
IMPORT_C static TBool RunSaveDlgLD(
|
williamr@2
|
227 |
TDes& aDefaultFileName,
|
williamr@2
|
228 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
229 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
230 |
|
williamr@2
|
231 |
/**
|
williamr@2
|
232 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
233 |
*
|
williamr@2
|
234 |
* A static method that launches save dialog.
|
williamr@2
|
235 |
* @param aDefaultFileName Full path + the filename that user enters
|
williamr@2
|
236 |
* is stored to this descriptor. The descriptor may contain text
|
williamr@2
|
237 |
* that is used as default filename, for example "Attachment".
|
williamr@2
|
238 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
239 |
* dialog.
|
williamr@2
|
240 |
* @param aFilter Filter is asked if a directory entry can be shown in
|
williamr@2
|
241 |
* list. Ownership is not transferred.
|
williamr@2
|
242 |
* @param aObserver An observer which is asked, if set, to verify the
|
williamr@2
|
243 |
* filename that user types.
|
williamr@2
|
244 |
* @return Returns ETrue if user accepts or enters a filename, otherwise
|
williamr@2
|
245 |
* EFalse.
|
williamr@2
|
246 |
*/
|
williamr@2
|
247 |
IMPORT_C static TBool RunSaveDlgLD(
|
williamr@2
|
248 |
TDes& aDefaultFileName,
|
williamr@2
|
249 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
250 |
MAknFileFilter* aFilter,
|
williamr@2
|
251 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
252 |
|
williamr@2
|
253 |
/**
|
williamr@2
|
254 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
255 |
*
|
williamr@2
|
256 |
* A static method that launches save dialog.
|
williamr@2
|
257 |
* @param aDefaultFileName Full path + the filename that user enters
|
williamr@2
|
258 |
* is stored to this descriptor. The descriptor may contain text
|
williamr@2
|
259 |
* that is used as default filename, for example "Attachment".
|
williamr@2
|
260 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
261 |
* dialog.
|
williamr@2
|
262 |
* @param aFileSelectionTitle Custom title for file selection dialog.
|
williamr@2
|
263 |
* @param aFileNamePromptTitle Custom title for filename prompt dialog.
|
williamr@2
|
264 |
* @param aObserver An observer which is asked, if set, to verify the
|
williamr@2
|
265 |
* filename that user types.
|
williamr@2
|
266 |
* @return Returns ETrue if user accepts or enters a filename, otherwise
|
williamr@2
|
267 |
* EFalse.
|
williamr@2
|
268 |
*/
|
williamr@2
|
269 |
IMPORT_C static TBool RunSaveDlgLD(
|
williamr@2
|
270 |
TDes& aDefaultFileName,
|
williamr@2
|
271 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
272 |
const TDesC& aFileSelectionTitle,
|
williamr@2
|
273 |
const TDesC& aFileNamePromptTitle,
|
williamr@2
|
274 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
275 |
|
williamr@2
|
276 |
/**
|
williamr@2
|
277 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
278 |
*
|
williamr@2
|
279 |
* A static method that launches save dialog.
|
williamr@2
|
280 |
* @param aDefaultFileName Full path + the filename that user enters
|
williamr@2
|
281 |
* is stored to this descriptor. The descriptor may contain text
|
williamr@2
|
282 |
* that is used as default filename, for example "Attachment".
|
williamr@2
|
283 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
284 |
* dialog.
|
williamr@2
|
285 |
* @param aFileSelectionResourceId A resource id for file selection
|
williamr@2
|
286 |
* dialog.
|
williamr@2
|
287 |
* @param aObserver An observer which is asked, if set, to verify the
|
williamr@2
|
288 |
* filename that user types.
|
williamr@2
|
289 |
* @return Returns ETrue if user accepts or enters a filename, otherwise
|
williamr@2
|
290 |
* EFalse.
|
williamr@2
|
291 |
*/
|
williamr@2
|
292 |
IMPORT_C static TBool RunSaveDlgLD(
|
williamr@2
|
293 |
TDes& aDefaultFileName,
|
williamr@2
|
294 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
295 |
TInt aFileSelectionResourceId,
|
williamr@2
|
296 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
297 |
|
williamr@2
|
298 |
/**
|
williamr@2
|
299 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
300 |
*
|
williamr@2
|
301 |
* A static method that launches save dialog.
|
williamr@2
|
302 |
* @param aDefaultFileName Full path + the filename that user enters
|
williamr@2
|
303 |
* is stored to this descriptor. The descriptor may contain text
|
williamr@2
|
304 |
* that is used as default filename, for example "Attachment".
|
williamr@2
|
305 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
306 |
* dialog.
|
williamr@2
|
307 |
* @param aFileSelectionResourceId A resource id for file selection
|
williamr@2
|
308 |
* dialog.
|
williamr@2
|
309 |
* @param aFileNamePromptTitle Custom title for filename prompt dialog.
|
williamr@2
|
310 |
* @param aObserver An observer which is asked, if set, to verify the
|
williamr@2
|
311 |
* filename that user types.
|
williamr@2
|
312 |
* @return Returns ETrue if user accepts or enters a filename, otherwise
|
williamr@2
|
313 |
* EFalse.
|
williamr@2
|
314 |
*/
|
williamr@2
|
315 |
IMPORT_C static TBool RunSaveDlgLD(
|
williamr@2
|
316 |
TDes& aDefaultFileName,
|
williamr@2
|
317 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
318 |
TInt aFileSelectionResourceId,
|
williamr@2
|
319 |
const TDesC& aFileNamePromptTitle,
|
williamr@2
|
320 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
321 |
|
williamr@2
|
322 |
/**
|
williamr@2
|
323 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
324 |
*
|
williamr@2
|
325 |
* A static method that launches save dialog. No file selection dialog
|
williamr@2
|
326 |
* for directory selection is displayed.
|
williamr@2
|
327 |
* @param aDefaultFileName Full path + the filename that user enters
|
williamr@2
|
328 |
* is stored to this descriptor. The descriptor may contain text
|
williamr@2
|
329 |
* that is used as default filename, for example "Attachment".
|
williamr@2
|
330 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
331 |
* dialog. The folders in which the file will be saved should be
|
williamr@2
|
332 |
* given in this resource.
|
williamr@2
|
333 |
* @param aObserver An observer which is asked, if set, to verify the
|
williamr@2
|
334 |
* filename that user types.
|
williamr@2
|
335 |
* @return Returns ETrue if user accepts or enters a filename, otherwise
|
williamr@2
|
336 |
* EFalse.
|
williamr@2
|
337 |
*/
|
williamr@2
|
338 |
IMPORT_C static TBool RunSaveDlgNoDirectorySelectionLD(
|
williamr@2
|
339 |
TDes& aDefaultFileName,
|
williamr@2
|
340 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
341 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
342 |
|
williamr@2
|
343 |
/**
|
williamr@2
|
344 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
345 |
*
|
williamr@2
|
346 |
* A static method that launches save dialog. No file selection dialog
|
williamr@2
|
347 |
* for directory selection is displayed.
|
williamr@2
|
348 |
* @param aDefaultFileName Full path + the filename that user enters
|
williamr@2
|
349 |
* is stored to this descriptor. The descriptor may contain text
|
williamr@2
|
350 |
* that is used as default filename, for example "Attachment".
|
williamr@2
|
351 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
352 |
* dialog. The folders in which the file will be saved should be
|
williamr@2
|
353 |
* given in this resource.
|
williamr@2
|
354 |
* @param aFileNamePromptTitle Custom title for filename prompt dialog.
|
williamr@2
|
355 |
* @param aObserver An observer which is asked, if set, to verify the
|
williamr@2
|
356 |
* filename that user types.
|
williamr@2
|
357 |
* @return Returns ETrue if user accepts or enters a filename, otherwise
|
williamr@2
|
358 |
* EFalse.
|
williamr@2
|
359 |
*/
|
williamr@2
|
360 |
IMPORT_C static TBool RunSaveDlgNoDirectorySelectionLD(
|
williamr@2
|
361 |
TDes& aDefaultFileName,
|
williamr@2
|
362 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
363 |
const TDesC& aFileNamePromptTitle,
|
williamr@2
|
364 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
365 |
|
williamr@2
|
366 |
/**
|
williamr@2
|
367 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
368 |
*
|
williamr@2
|
369 |
* A static method that launches copy dialog.
|
williamr@2
|
370 |
* @param aDirectory Full path of the folder that user
|
williamr@2
|
371 |
* selects is stored to this descriptor.
|
williamr@2
|
372 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
373 |
* dialog.
|
williamr@2
|
374 |
* @param aObserver An observer which is asked, if set, to verify user's
|
williamr@2
|
375 |
* selection.
|
williamr@2
|
376 |
* @return Returns ETrue if user selects a folder, otherwise EFalse.
|
williamr@2
|
377 |
*/
|
williamr@2
|
378 |
IMPORT_C static TBool RunCopyDlgLD(
|
williamr@2
|
379 |
TDes& aDirectory,
|
williamr@2
|
380 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
381 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
382 |
|
williamr@2
|
383 |
/**
|
williamr@2
|
384 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
385 |
*
|
williamr@2
|
386 |
* A static method that launches copy dialog.
|
williamr@2
|
387 |
* @param aDirectory Full path of the folder that user
|
williamr@2
|
388 |
* selects is stored to this descriptor.
|
williamr@2
|
389 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
390 |
* dialog.
|
williamr@2
|
391 |
* @param aFilter Filter is asked if a directory entry can be shown in
|
williamr@2
|
392 |
* list. Ownership is not transferred.
|
williamr@2
|
393 |
* @param aObserver An observer which is asked, if set, to verify user's
|
williamr@2
|
394 |
* selection.
|
williamr@2
|
395 |
* @return Returns ETrue if user selects a folder, otherwise EFalse.
|
williamr@2
|
396 |
*/
|
williamr@2
|
397 |
IMPORT_C static TBool RunCopyDlgLD(
|
williamr@2
|
398 |
TDes& aDirectory,
|
williamr@2
|
399 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
400 |
MAknFileFilter* aFilter,
|
williamr@2
|
401 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
402 |
|
williamr@2
|
403 |
/**
|
williamr@2
|
404 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
405 |
*
|
williamr@2
|
406 |
* A static method that launches copy dialog.
|
williamr@2
|
407 |
* @param aDirectory Full path of the folder that user
|
williamr@2
|
408 |
* selects is stored to this descriptor.
|
williamr@2
|
409 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
410 |
* dialog
|
williamr@2
|
411 |
* @param aFileSelectionResourceId A resource id for file selection
|
williamr@2
|
412 |
* dialog
|
williamr@2
|
413 |
* @param aObserver An observer which is asked, if set, to verify user's
|
williamr@2
|
414 |
* selection.
|
williamr@2
|
415 |
* @return Returns ETrue if user selects a folder, otherwise EFalse
|
williamr@2
|
416 |
*/
|
williamr@2
|
417 |
IMPORT_C static TBool RunCopyDlgLD(
|
williamr@2
|
418 |
TDes& aDirectory,
|
williamr@2
|
419 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
420 |
TInt aFileSelectionResourceId,
|
williamr@2
|
421 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
422 |
|
williamr@2
|
423 |
/**
|
williamr@2
|
424 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
425 |
*
|
williamr@2
|
426 |
* A static method that launches file selection dialog.
|
williamr@2
|
427 |
* @param aFileName Full path and filename of the file that user
|
williamr@2
|
428 |
* selects is stored to this descriptor.
|
williamr@2
|
429 |
* @param aStartFolder User defined folder to start browsing in file selection
|
williamr@2
|
430 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
431 |
* dialog.
|
williamr@2
|
432 |
* @param aObserver An observer which is asked, if set, to verify user's
|
williamr@2
|
433 |
* selection.
|
williamr@2
|
434 |
* @return Returns ETrue if user selects a file, otherwise EFalse.
|
williamr@2
|
435 |
* @since 2.6
|
williamr@2
|
436 |
*/
|
williamr@2
|
437 |
IMPORT_C static TBool RunSelectDlgLD(
|
williamr@2
|
438 |
TDes& aFileName,
|
williamr@2
|
439 |
const TDesC& aStartFolder,
|
williamr@2
|
440 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
441 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
442 |
|
williamr@2
|
443 |
/**
|
williamr@2
|
444 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
445 |
*
|
williamr@2
|
446 |
* A static method that launches file selection dialog.
|
williamr@2
|
447 |
* @param aFileName Full path and filename of the file that user
|
williamr@2
|
448 |
* selects is stored to this descriptor.
|
williamr@2
|
449 |
* @param aStartFolder User defined folder to start browsing in file selection
|
williamr@2
|
450 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
451 |
* dialog.
|
williamr@2
|
452 |
* @param aFilter Filter is asked if a directory entry can be shown in
|
williamr@2
|
453 |
* list. Ownership is not transferred.
|
williamr@2
|
454 |
* @param aObserver An observer which is asked, if set, to verify user's
|
williamr@2
|
455 |
* selection.
|
williamr@2
|
456 |
* @return Returns ETrue if user selects a file, otherwise EFalse.
|
williamr@2
|
457 |
* @since 2.6
|
williamr@2
|
458 |
*/
|
williamr@2
|
459 |
IMPORT_C static TBool RunSelectDlgLD(
|
williamr@2
|
460 |
TDes& aFileName,
|
williamr@2
|
461 |
const TDesC& aStartFolder,
|
williamr@2
|
462 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
463 |
MAknFileFilter* aFilter,
|
williamr@2
|
464 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
465 |
|
williamr@2
|
466 |
/**
|
williamr@2
|
467 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
468 |
*
|
williamr@2
|
469 |
* A static method that launches file selection dialog.
|
williamr@2
|
470 |
* @param aFileName Full path and filename of the file that user
|
williamr@2
|
471 |
* selects is stored to this descriptor.
|
williamr@2
|
472 |
* @param aStartFolder User defined folder to start browsing in file selection
|
williamr@2
|
473 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
474 |
* dialog.
|
williamr@2
|
475 |
* @param aFileSelectionTitle A custom title for file selection dialog.
|
williamr@2
|
476 |
* @param aObserver An observer which is asked, if set, to verify user's
|
williamr@2
|
477 |
* selection.
|
williamr@2
|
478 |
* @return Returns ETrue if user selects a file, otherwise EFalse.
|
williamr@2
|
479 |
* @since 2.6
|
williamr@2
|
480 |
*/
|
williamr@2
|
481 |
IMPORT_C static TBool RunSelectDlgLD(
|
williamr@2
|
482 |
TDes& aFileName,
|
williamr@2
|
483 |
const TDesC& aStartFolder,
|
williamr@2
|
484 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
485 |
const TDesC& aFileSelectionTitle,
|
williamr@2
|
486 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
487 |
|
williamr@2
|
488 |
/**
|
williamr@2
|
489 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
490 |
*
|
williamr@2
|
491 |
* A static method that launches file selection dialog.
|
williamr@2
|
492 |
* @param aFileName Full path and filename of the file that user
|
williamr@2
|
493 |
* selects is stored to this descriptor.
|
williamr@2
|
494 |
* @param aStartFolder User defined folder to start browsing in file selection
|
williamr@2
|
495 |
* @param aMemorySelectionResourceId A resource id for memory selection
|
williamr@2
|
496 |
* dialog.
|
williamr@2
|
497 |
* @param aFileSelectionResourceId A resource id for file selection
|
williamr@2
|
498 |
* dialog.
|
williamr@2
|
499 |
* @param aObserver An observer which is asked, if set, to verify user's
|
williamr@2
|
500 |
* selection.
|
williamr@2
|
501 |
* @return Returns ETrue if user selects a file, otherwise EFalse.
|
williamr@2
|
502 |
* @since 2.6
|
williamr@2
|
503 |
*/
|
williamr@2
|
504 |
IMPORT_C static TBool RunSelectDlgLD(
|
williamr@2
|
505 |
TDes& aFileName,
|
williamr@2
|
506 |
const TDesC& aStartFolder,
|
williamr@2
|
507 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
508 |
TInt aFileSelectionResourceId,
|
williamr@2
|
509 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
510 |
|
williamr@2
|
511 |
/**
|
williamr@2
|
512 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
513 |
*
|
williamr@2
|
514 |
* A static method that launches file selection dialog.
|
williamr@2
|
515 |
* @param aFileName Full path and filename of the file that user selects is
|
williamr@2
|
516 |
* stored to this descriptor.
|
williamr@2
|
517 |
* @param aStartFolder User defined folder to start browsing in file selection.
|
williamr@2
|
518 |
* @param aMemorySelectionResourceId A resource id for memory selection dialog.
|
williamr@2
|
519 |
* @param aFileSelectionResourceId A resource id for file selection dialog.
|
williamr@2
|
520 |
* @param aFileSelectionTitle Custom title for file selection dialog.
|
williamr@2
|
521 |
* @param aFilter Filter asked if a directory entry can be shown in list.
|
williamr@2
|
522 |
* @param aObserver An observer which is asked to verify user's selection.
|
williamr@2
|
523 |
* @return Returns ETrue if user selects a file, otherwise EFalse
|
williamr@2
|
524 |
* @since 3.1
|
williamr@2
|
525 |
*/
|
williamr@2
|
526 |
IMPORT_C static TBool RunSelectDlgLD(
|
williamr@2
|
527 |
TDes& aFileName,
|
williamr@2
|
528 |
const TDesC& aStartFolder,
|
williamr@2
|
529 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
530 |
TInt aFileSelectionResourceId,
|
williamr@2
|
531 |
const TDesC& aFileSelectionTitle,
|
williamr@2
|
532 |
MAknFileFilter* aFilter = NULL,
|
williamr@2
|
533 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
534 |
|
williamr@2
|
535 |
/**
|
williamr@2
|
536 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
537 |
*
|
williamr@2
|
538 |
* A static method that launches save dialog.
|
williamr@2
|
539 |
* @param aDefaultFileName Full path + the filename that user enters
|
williamr@2
|
540 |
* is stored to this descriptor. The descriptor may contain text
|
williamr@2
|
541 |
* that is used as default filename, for example "Attachment".
|
williamr@2
|
542 |
* @param aStartFolder User defined folder to start browsing in file selection.
|
williamr@2
|
543 |
* @param aMemorySelectionResourceId A resource id for memory selection dialog.
|
williamr@2
|
544 |
* @param aFileSelectionResourceId A resource id for file selection dialog.
|
williamr@2
|
545 |
* @param aFileSelectionTitle Custom title for file selection dialog.
|
williamr@2
|
546 |
* @param aFilter Filter asked if a directory entry can be shown in list.
|
williamr@2
|
547 |
* @param aObserver An observer which is asked, if set, to verify the
|
williamr@2
|
548 |
* filename that user types.
|
williamr@2
|
549 |
* @return Returns ETrue if user accepts or enters a filename, otherwise
|
williamr@2
|
550 |
* EFalse.
|
williamr@2
|
551 |
* @since 3.1
|
williamr@2
|
552 |
*/
|
williamr@2
|
553 |
IMPORT_C static TBool RunSaveDlgLD(
|
williamr@2
|
554 |
TDes& aDefaultFileName,
|
williamr@2
|
555 |
const TDesC& aStartFolder,
|
williamr@2
|
556 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
557 |
TInt aFileSelectionResourceId,
|
williamr@2
|
558 |
const TDesC& aFileSelectionTitle,
|
williamr@2
|
559 |
MAknFileFilter* aFilter = NULL,
|
williamr@2
|
560 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
561 |
|
williamr@2
|
562 |
/**
|
williamr@2
|
563 |
* DEPRECATED: Use AknCommonDialogsDynMem funcions instead.
|
williamr@2
|
564 |
*
|
williamr@2
|
565 |
* A static method that launches folder selection dialog.
|
williamr@2
|
566 |
* @param aFolder Full path of the folder that user selects is stored to this
|
williamr@2
|
567 |
* descriptor.
|
williamr@2
|
568 |
* @param aStartFolder User defined folder to start browsing in file selection.
|
williamr@2
|
569 |
* @param aMemorySelectionResourceId A resource id for memory selection dialog.
|
williamr@2
|
570 |
* @param aFileSelectionResourceId A resource id for file selection dialog.
|
williamr@2
|
571 |
* @param aFileSelectionTitle Custom title for file selection dialog.
|
williamr@2
|
572 |
* @param aFilter Filter is asked if a directory entry can be shown in list.
|
williamr@2
|
573 |
* @param aObserver An observer which is asked to verify user's selection.
|
williamr@2
|
574 |
* @return Returns ETrue if user selects a folder, otherwise EFalse
|
williamr@2
|
575 |
* @since 3.1
|
williamr@2
|
576 |
*/
|
williamr@2
|
577 |
IMPORT_C static TBool RunFolderSelectDlgLD(
|
williamr@2
|
578 |
TDes& aFolder,
|
williamr@2
|
579 |
const TDesC& aStartFolder,
|
williamr@2
|
580 |
TInt aMemorySelectionResourceId,
|
williamr@2
|
581 |
TInt aFileSelectionResourceId,
|
williamr@2
|
582 |
const TDesC& aFileSelectionTitle,
|
williamr@2
|
583 |
MAknFileFilter* aFilter = NULL,
|
williamr@2
|
584 |
MAknFileSelectionObserver* aObserver = NULL );
|
williamr@2
|
585 |
|
williamr@2
|
586 |
};
|
williamr@2
|
587 |
|
williamr@2
|
588 |
#endif // AKNCOMMONDIALOGS_H
|
williamr@2
|
589 |
|
williamr@2
|
590 |
// End of File
|