filemanager/src/filemanager/src/fmdriverlistwidget.h
changeset 37 15bc28c9dd51
parent 14 1957042d8c7e
child 46 d58987eac7e8
equal deleted inserted replaced
16:ada7962b4308 37:15bc28c9dd51
    18 
    18 
    19 #ifndef FMDRIVERLISTWIDGET_H
    19 #ifndef FMDRIVERLISTWIDGET_H
    20 #define FMDRIVERLISTWIDGET_H
    20 #define FMDRIVERLISTWIDGET_H
    21 
    21 
    22 #include "fmcommon.h"
    22 #include "fmcommon.h"
    23 #include "fmoperationservice.h"
       
    24 #include <hbwidget.h>
    23 #include <hbwidget.h>
    25 
    24 
    26 class QFileSystemWatcher;
    25 class FmDriveModel;
    27 class HbListView;
    26 class HbListView;
    28 class HbAbstractViewItem;
    27 class HbAbstractViewItem;
    29 class HbSearchPanel;
    28 class HbSearchPanel;
    30 class FmDriveModel;
    29 class HbMenu;
       
    30 class QFileSystemWatcher;
    31 
    31 
    32 class QGraphicsLinearLayout;
    32 class QGraphicsLinearLayout;
    33 
    33 
    34 class FmDriverListWidget : public HbWidget
    34 class FmDriverListWidget : public HbWidget
    35 {
    35 {
    38     FmDriverListWidget( QGraphicsItem *parent = 0 );
    38     FmDriverListWidget( QGraphicsItem *parent = 0 );
    39     ~FmDriverListWidget();
    39     ~FmDriverListWidget();
    40 
    40 
    41 public:
    41 public:
    42     int updatePwd( const QString& oldPwd, const QString& pwd);
    42     int updatePwd( const QString& oldPwd, const QString& pwd);
    43     void refreshModel( const QString &path );
    43     void refreshDrive();
    44     void activeSearchPanel();
    44     void activeSearchPanel();
    45 
    45 
    46 signals:
    46 signals:
    47 	void activated( const QString &path );
    47 	void activated( const QString &path );
    48 	void startSearch( const QString &targetPath, const QString &criteria );
    48 	void startSearch( const QString &targetPath, const QString &criteria );
    49     
    49     
    50 private slots:
    50 private slots:
    51 	void on_list_activated( const QModelIndex &index );
    51 	void on_list_activated( const QModelIndex &index );
    52     void on_list_longPressed( HbAbstractViewItem *item, const QPointF &coords );
    52     void on_list_longPressed( HbAbstractViewItem *item, const QPointF &coords );
       
    53     void on_list_pressed( const QModelIndex &  index ) ;
    53 
    54 
    54     void on_viewAction_triggered();
    55     void on_viewAction_triggered();
    55     void on_renameAction_triggered();
    56     void on_renameAction_triggered();
    56     void on_nameAction_triggered();
    57     void on_nameAction_triggered();
    57     void on_changePwdAction_triggered();
    58     void on_changePwdAction_triggered();
    72     HbListView *mListView;
    73     HbListView *mListView;
    73 	FmDriveModel  *mModel;
    74 	FmDriveModel  *mModel;
    74     HbAbstractViewItem* mCurrentItem;
    75     HbAbstractViewItem* mCurrentItem;
    75     HbSearchPanel* mSearchPanel;
    76     HbSearchPanel* mSearchPanel;
    76     
    77     
    77     FmOperationService *mOperationService;
       
    78     QFileSystemWatcher *mFileSystemWatcher;
    78     QFileSystemWatcher *mFileSystemWatcher;
    79     
    79     
    80     QString mFindTargetPath;
    80     QString mFindTargetPath;
    81     QGraphicsLinearLayout *mLayout;
    81     QGraphicsLinearLayout *mLayout;
       
    82 	HbMenu *mContextMenu;
       
    83     
       
    84     //used to avoid activate when long press list.
       
    85     bool mListLongPressed;
    82 };
    86 };
    83 
    87 
    84 #endif
    88 #endif