filemanager/src/filemanager/src/fmdriverlistwidget.h
changeset 37 15bc28c9dd51
parent 14 1957042d8c7e
child 46 d58987eac7e8
--- a/filemanager/src/filemanager/src/fmdriverlistwidget.h	Mon May 03 12:24:39 2010 +0300
+++ b/filemanager/src/filemanager/src/fmdriverlistwidget.h	Tue Aug 24 10:24:14 2010 +0800
@@ -20,14 +20,14 @@
 #define FMDRIVERLISTWIDGET_H
 
 #include "fmcommon.h"
-#include "fmoperationservice.h"
 #include <hbwidget.h>
 
-class QFileSystemWatcher;
+class FmDriveModel;
 class HbListView;
 class HbAbstractViewItem;
 class HbSearchPanel;
-class FmDriveModel;
+class HbMenu;
+class QFileSystemWatcher;
 
 class QGraphicsLinearLayout;
 
@@ -40,7 +40,7 @@
 
 public:
     int updatePwd( const QString& oldPwd, const QString& pwd);
-    void refreshModel( const QString &path );
+    void refreshDrive();
     void activeSearchPanel();
 
 signals:
@@ -50,6 +50,7 @@
 private slots:
 	void on_list_activated( const QModelIndex &index );
     void on_list_longPressed( HbAbstractViewItem *item, const QPointF &coords );
+    void on_list_pressed( const QModelIndex &  index ) ;
 
     void on_viewAction_triggered();
     void on_renameAction_triggered();
@@ -74,11 +75,14 @@
     HbAbstractViewItem* mCurrentItem;
     HbSearchPanel* mSearchPanel;
     
-    FmOperationService *mOperationService;
     QFileSystemWatcher *mFileSystemWatcher;
     
     QString mFindTargetPath;
     QGraphicsLinearLayout *mLayout;
+	HbMenu *mContextMenu;
+    
+    //used to avoid activate when long press list.
+    bool mListLongPressed;
 };
 
 #endif