1 /* |
|
2 * Copyright (c) 2009 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 * |
|
15 * Description: |
|
16 * The header file of backup drive query of of file manager |
|
17 */ |
|
18 #ifndef FMDRIVEQUERY_H |
|
19 #define FMDRIVEQUERY_H |
|
20 |
|
21 #include "fmcommon.h" |
|
22 #include "fmdialog.h" |
|
23 #include "fmdrivemodel.h" |
|
24 |
|
25 #include <QString> |
|
26 #include <QMap> |
|
27 #include <QStringList> |
|
28 #include <QGraphicsItem> |
|
29 |
|
30 class HbListView; |
|
31 class QGraphicsWidget; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 /** |
|
35 * This class is used for drive select query dialog |
|
36 * |
|
37 */ |
|
38 class FmDriveQuery : public FmDialog, public FmDriveListProvider |
|
39 { |
|
40 Q_OBJECT |
|
41 public: |
|
42 FmDriveQuery( QGraphicsItem *parent = 0 ); |
|
43 ~FmDriveQuery(); |
|
44 QString selectedDrive() const; |
|
45 |
|
46 // from FmDriveListProvider |
|
47 virtual void getDriveList( QStringList &driveList ); |
|
48 |
|
49 public slots: |
|
50 void activated(const QModelIndex &index); |
|
51 void refreshModel( QString path ); |
|
52 private: |
|
53 QGraphicsWidget *mContentWidget; /// Content widget of popup dialog |
|
54 HbListView *mListView; /// list view |
|
55 FmDriveModel *mDriveModel; /// drive model |
|
56 |
|
57 QString mSelectedDrive; |
|
58 }; |
|
59 |
|
60 #endif //FMDRIVEQUERY_H |
|