18 |
18 |
19 #ifndef FMVIEWDETAILSDIALOG_H |
19 #ifndef FMVIEWDETAILSDIALOG_H |
20 #define FMVIEWDETAILSDIALOG_H |
20 #define FMVIEWDETAILSDIALOG_H |
21 |
21 |
22 #include "fmcommon.h" |
22 #include "fmcommon.h" |
|
23 #include "fmdialog.h" |
23 |
24 |
24 #include <hbdialog.h> |
25 class QStandardItemModel; |
25 |
|
26 class FmDataListModel; |
|
27 class QDirModel; |
|
28 class HbListView; |
26 class HbListView; |
29 class HbLabel; |
27 class HbLabel; |
30 class HbAction; |
28 class HbAction; |
31 class FmDriveDetailsSize; |
29 class FmDriveDetailsSize; |
32 |
30 |
33 class FmViewDetailsDialog : public HbDialog |
31 class FmViewDetailsDialog : public FmDialog |
34 { |
32 { |
35 Q_OBJECT |
33 Q_OBJECT |
36 |
34 |
37 public: |
35 public: |
38 enum driveDetailEntry{ |
36 enum driveDetailEntry{ |
88 void setFolderDetails( const QString &folderPath ); |
87 void setFolderDetails( const QString &folderPath ); |
89 void setFileDetails( const QString &filePath ); |
88 void setFileDetails( const QString &filePath ); |
90 void setNumofSubfolders( int numofSubFolders, int numofFiles, quint64 sizeofFolder ); |
89 void setNumofSubfolders( int numofSubFolders, int numofFiles, quint64 sizeofFolder ); |
91 void setSizeofContent( QList<FmDriveDetailsSize*> detailsSizeList ); |
90 void setSizeofContent( QList<FmDriveDetailsSize*> detailsSizeList ); |
92 |
91 |
93 static HbAction *executeDialog( HbDialog *dialog, const QString &associatedDrives ); |
92 static HbAction *executeDialog( FmDialog *dialog, const QString &associatedDrives ); |
94 private: |
93 private: |
95 HbListView *mListView; |
94 HbListView *mListView; |
96 HbLabel *mHeaderLabel; |
95 HbLabel *mHeaderLabel; |
97 HbAction *mOkAction; |
96 HbAction *mOkAction; |
98 |
97 |
99 FmDataListModel *mDataListModel; |
98 QStandardItemModel *mDataListModel; |
100 QDirModel *mDirModel; |
|
101 QString mDrive; |
99 QString mDrive; |
102 |
100 |
103 int mNumofSubFolers; |
101 int mNumofSubFolers; |
104 int mNumofFiles; |
102 int mNumofFiles; |
105 int mSizeofFolder; |
103 quint64 mSizeofFolder; |
106 int mSizeofImage; |
104 quint64 mSizeofImage; |
107 int mSizeofSounds; |
105 quint64 mSizeofSounds; |
108 int mSizeofVideo; |
106 quint64 mSizeofVideo; |
109 int mSizeofJava; |
107 quint64 mSizeofJava; |
110 int mSizeofNativeFiles; |
108 quint64 mSizeofNativeFiles; |
111 int mSizeofDocument; |
109 quint64 mSizeofDocument; |
112 int mSizeofCalendar; |
110 quint64 mSizeofCalendar; |
|
111 quint64 mSizeofContacts; |
113 }; |
112 }; |
114 |
113 |
115 #endif /* FMVIEWDETAILSDIALOG_H_ */ |
114 #endif /* FMVIEWDETAILSDIALOG_H_ */ |