filemanager/src/filemanager/src/fmfilebrowsewidget.h
changeset 30 6e96d2143d46
parent 18 edd66bde63a4
child 35 060d0b1ab845
--- a/filemanager/src/filemanager/src/fmfilebrowsewidget.h	Wed Jun 23 18:03:11 2010 +0300
+++ b/filemanager/src/filemanager/src/fmfilebrowsewidget.h	Tue Jul 06 14:06:28 2010 +0300
@@ -28,7 +28,7 @@
 #include <hbwidget.h>
 #include <QDir>
 
-class QDirModel;
+class QFileSystemModel;
 class QGraphicsLinearLayout;
 class HbListView;
 class HbTreeView;
@@ -36,6 +36,8 @@
 class HbSearchPanel;
 class HbLabel;
 
+class FmFileIconProvider;
+
 class FmFileBrowseWidget : public HbWidget
 {
     Q_OBJECT
@@ -69,7 +71,7 @@
     bool rename( const QString &oldName, const QString &newName );
     void setModelFilter( QDir::Filters filters );
     
-    bool checkPathAndSetStyle( const QString& path );
+    int checkPathAndSetStyle( const QString& path );
     void refreshModel( const QString& path );
     void sortFiles( TSortType sortType );
     void activeSearchPanel();
@@ -83,7 +85,7 @@
     void on_searchPanel_exitClicked();
 
 signals:
-    void currentPathChanged( QString& );
+    void currentPathChanged( const QString& );
     void startSearch( const QString &targetPath, const QString &criteria );
     void setEmptyMenu( bool isMenuEmpty );
     void setTitle( const QString &title );
@@ -119,7 +121,7 @@
 	HbTreeView *mTreeView;
     HbListView *mListView;
     QGraphicsLinearLayout *mLayout;
-    QDirModel *mModel;
+    QFileSystemModel *mModel;
     
     bool mSelectable;
     
@@ -140,6 +142,9 @@
     //used to avoid activate when long press list.
     bool mListLongPressed;
     QModelIndex mActivatedModelIndex;
+    
+    // provide iocn from filemanger
+    FmFileIconProvider *mFileIconProvider;
 };
 
 #endif