67 void clearSelection(); |
69 void clearSelection(); |
68 |
70 |
69 bool rename( const QString &oldName, const QString &newName ); |
71 bool rename( const QString &oldName, const QString &newName ); |
70 void setModelFilter( QDir::Filters filters ); |
72 void setModelFilter( QDir::Filters filters ); |
71 |
73 |
72 bool checkPathAndSetStyle( const QString& path ); |
74 int checkPathAndSetStyle( const QString& path ); |
73 void refreshModel( const QString& path ); |
|
74 void sortFiles( TSortType sortType ); |
75 void sortFiles( TSortType sortType ); |
75 void activeSearchPanel(); |
76 void activeSearchPanel(); |
76 |
77 |
77 public slots: |
78 public slots: |
78 bool cdUp(); |
79 bool cdUp(); |
79 void setRootPath( const QString &pathName ); |
80 void setRootPath( const QString &pathName ); |
80 |
81 |
|
82 // triggered when drive is ejected/inserted |
|
83 void on_driveChanged(); |
|
84 |
81 void on_searchPanel_searchOptionsClicked(); |
85 void on_searchPanel_searchOptionsClicked(); |
82 void on_searchPanel_criteriaChanged( const QString &criteria ); |
86 void on_searchPanel_criteriaChanged( const QString &criteria ); |
83 void on_searchPanel_exitClicked(); |
87 void on_searchPanel_exitClicked(); |
84 |
88 |
85 signals: |
89 signals: |
86 void currentPathChanged( QString& ); |
90 void currentPathChanged( const QString& ); |
87 void startSearch( const QString &targetPath, const QString &criteria ); |
91 void startSearch( const QString &targetPath, const QString &criteria ); |
88 void setEmptyMenu( bool isMenuEmpty ); |
92 void setEmptyMenu( bool isMenuEmpty ); |
89 void setTitle( const QString &title ); |
93 void setTitle( const QString &title ); |
|
94 void listActivated(); |
90 |
95 |
91 private slots: |
96 private slots: |
92 void on_list_activated( const QModelIndex &index ); |
97 void on_list_activated( const QModelIndex &index ); |
|
98 void on_listActivated(); |
93 void on_tree_activated( const QModelIndex &index ); |
99 void on_tree_activated( const QModelIndex &index ); |
94 void on_list_longPressed( HbAbstractViewItem *item, const QPointF &coords ); |
100 void on_list_longPressed( HbAbstractViewItem *item, const QPointF &coords ); |
95 void on_tree_longPressed( HbAbstractViewItem *item, const QPointF &coords ); |
101 void on_list_pressed( const QModelIndex & index ) ; |
|
102 void on_tree_longPressed( HbAbstractViewItem *item, const QPointF &coords ); |
96 |
103 |
97 void on_viewAction_triggered(); |
104 void on_viewAction_triggered(); |
98 void on_copyAction_triggered(); |
105 void on_copyAction_triggered(); |
99 void on_moveAction_triggered(); |
106 void on_moveAction_triggered(); |
100 void on_deleteAction_triggered(); |
107 void on_deleteAction_triggered(); |
114 bool isFolder(const QModelIndex &index) const; |
121 bool isFolder(const QModelIndex &index) const; |
115 |
122 |
116 HbTreeView *mTreeView; |
123 HbTreeView *mTreeView; |
117 HbListView *mListView; |
124 HbListView *mListView; |
118 QGraphicsLinearLayout *mLayout; |
125 QGraphicsLinearLayout *mLayout; |
119 QDirModel *mModel; |
126 QFileSystemModel *mModel; |
120 |
127 |
121 bool mSelectable; |
128 bool mSelectable; |
122 |
129 |
123 //currentStyle |
130 //currentStyle |
124 Style mStyle; |
131 Style mStyle; |
125 //used to store orignal tree/list style |
132 //used to store original tree/list style |
126 Style mFileBrowseStyle; |
133 Style mFileBrowseStyle; |
127 |
134 |
128 HbAbstractViewItem* mCurrentItem; |
135 HbAbstractViewItem* mCurrentItem; |
129 FmOperationService *mOperationService; |
136 FmOperationService *mOperationService; |
130 |
137 |
131 QString mFindTargetPath; |
138 QString mFindTargetPath; |
132 HbSearchPanel *mSearchPanel; |
139 HbSearchPanel *mSearchPanel; |
133 HbLabel *mEmptyTipLabel; |
140 HbLabel *mEmptyTipLabel; |
134 |
141 |
135 QString mCurrentDrive; |
142 QString mCurrentDrive; |
|
143 |
|
144 //used to avoid activate when long press list. |
|
145 bool mListLongPressed; |
|
146 QModelIndex mActivatedModelIndex; |
|
147 |
|
148 // provide icon from filemanger |
|
149 FmFileIconProvider *mFileIconProvider; |
136 }; |
150 }; |
137 |
151 |
138 #endif |
152 #endif |