|
1 /* |
|
2 * Copyright (c) 2010 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 #ifndef FBFOLDERSELECTIONDIALOG_H_ |
|
19 #define FBFOLDERSELECTIONDIALOG_H_ |
|
20 |
|
21 #include <HbDialog> |
|
22 |
|
23 // forward declarations |
|
24 class FbFolderSelectorWrapper; |
|
25 class HbListWidget; |
|
26 class HbListWidgetItem; |
|
27 class HbLabel; |
|
28 class QFileIconProvider; |
|
29 |
|
30 class FbFolderSelectionDialog : public HbDialog |
|
31 { |
|
32 Q_OBJECT |
|
33 |
|
34 public: |
|
35 explicit FbFolderSelectionDialog(QGraphicsItem *parent = 0); |
|
36 virtual ~FbFolderSelectionDialog(); |
|
37 |
|
38 QString selectedFolder(); |
|
39 |
|
40 private: |
|
41 void init(); |
|
42 void createHeading(); |
|
43 void createList(); |
|
44 void createToolBar(); |
|
45 |
|
46 private slots: |
|
47 void activated(HbListWidgetItem *); |
|
48 void refreshView(); |
|
49 void moveUpPressed(); |
|
50 |
|
51 protected: |
|
52 HbLabel *mTitle; |
|
53 |
|
54 private: |
|
55 HbListWidget *mFolderList; |
|
56 FbFolderSelectorWrapper *mFolderSelectorWrapper; |
|
57 QFileIconProvider *mFileIconProvider; |
|
58 }; |
|
59 |
|
60 class FbCopyToFolderSelectionDialog : public FbFolderSelectionDialog |
|
61 { |
|
62 Q_OBJECT |
|
63 |
|
64 public: |
|
65 explicit FbCopyToFolderSelectionDialog(QGraphicsItem *parent = 0); |
|
66 }; |
|
67 |
|
68 class FbMoveToFolderSelectionDialog : public FbFolderSelectionDialog |
|
69 { |
|
70 Q_OBJECT |
|
71 |
|
72 public: |
|
73 explicit FbMoveToFolderSelectionDialog(QGraphicsItem *parent = 0); |
|
74 }; |
|
75 |
|
76 #endif // FBFOLDERSELECTIONDIALOG_H_ |