|
1 /******************************************************************************* |
|
2 * Copyright (c) 2005, 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. This program and the accompanying materials |
|
4 * are made available under the terms of the Eclipse Public License v1.0 |
|
5 * which accompanies this distribution, and is available at |
|
6 * http://www.eclipse.org/legal/epl-v10.html |
|
7 * |
|
8 * Contributors: |
|
9 * Nokia Corporation - S60 implementation |
|
10 *******************************************************************************/ |
|
11 |
|
12 |
|
13 #ifndef SWTDIRECTORYDIALOG_H |
|
14 #define SWTDIRECTORYDIALOG_H |
|
15 |
|
16 |
|
17 #include "eswtwidgetsexpanded.h" |
|
18 |
|
19 |
|
20 /** |
|
21 * CSwtDirectoryDialog |
|
22 * @lib eswt |
|
23 */ |
|
24 NONSHARABLE_CLASS(CSwtDirectoryDialog) |
|
25 : public CBase |
|
26 , public MSwtDirectoryDialog |
|
27 { |
|
28 public: |
|
29 /** |
|
30 * Two phase constructor. |
|
31 * @param aInitPath full path of the directory that will be selected by |
|
32 * default when the dialog opens. |
|
33 * @param aTitle title of the dialog. |
|
34 * @return CSwtDirectoryDialog pointer |
|
35 */ |
|
36 static CSwtDirectoryDialog* NewL(const TDesC& aInitPath, |
|
37 const TDesC& aTitle); |
|
38 |
|
39 protected: |
|
40 /** |
|
41 * Second phase constructor. |
|
42 * @param aInitPath full path of the directory that will be selected by |
|
43 * default when the dialog opens. |
|
44 * @param aTitle title of the dialog. |
|
45 * @return CSwtDirectoryDialog pointer |
|
46 */ |
|
47 void ConstructL(const TDesC& aInitPath, const TDesC& aTitle); |
|
48 |
|
49 /** |
|
50 * First phase constructor. |
|
51 */ |
|
52 CSwtDirectoryDialog(); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 ~CSwtDirectoryDialog(); |
|
58 |
|
59 // From MSwtDirectoryDialog |
|
60 public: |
|
61 HBufC* OpenLD(); |
|
62 |
|
63 // From MSwtDirectoryDialog unused in S60 |
|
64 public: |
|
65 void Dispose(); |
|
66 void SetTitleFilterPathAndMessage(const TDesC* aTitle, |
|
67 const TDesC* aFilterPath, const TDesC* aMessage); |
|
68 TBool OpenL(); |
|
69 const TDesC* GetFilterPath() const; |
|
70 // Data |
|
71 private: |
|
72 /** |
|
73 * Path to the selected directory. |
|
74 * Own |
|
75 */ |
|
76 HBufC* iPath; |
|
77 |
|
78 /** |
|
79 * The title of the directory selection dialog. |
|
80 * Own |
|
81 */ |
|
82 HBufC* iTitle; |
|
83 }; |
|
84 |
|
85 #endif // SWTDIRECTORYDIALOG_H |