equal
deleted
inserted
replaced
24 #include <QDir> |
24 #include <QDir> |
25 #include <QString> |
25 #include <QString> |
26 |
26 |
27 class QDirModel; |
27 class QDirModel; |
28 class FmDriveModel; |
28 class FmDriveModel; |
|
29 class FmDriveWatcher; |
29 class HbListView; |
30 class HbListView; |
30 class QGraphicsLinearLayout; |
31 class QGraphicsLinearLayout; |
31 |
32 |
32 class FmFileWidget : public HbWidget |
33 class FmFileWidget : public HbWidget |
33 { |
34 { |
53 void pathChanged( const QString &path ); |
54 void pathChanged( const QString &path ); |
54 void fileActivated( const QString &path ); |
55 void fileActivated( const QString &path ); |
55 |
56 |
56 private slots: |
57 private slots: |
57 void on_list_activated( const QModelIndex &index ); |
58 void on_list_activated( const QModelIndex &index ); |
|
59 void on_driveWatcher_driveAddedOrChanged(); |
58 |
60 |
59 private: |
61 private: |
60 void init(); |
62 void init(); |
61 void changeRootIndex( const QModelIndex &index ); |
63 void changeRootIndex( const QModelIndex &index ); |
62 void setModel( QAbstractItemModel *model ); |
64 void setModel( QAbstractItemModel *model ); |
66 QGraphicsLinearLayout *mLayout; |
68 QGraphicsLinearLayout *mLayout; |
67 QDirModel *mDirModel; |
69 QDirModel *mDirModel; |
68 FmDriveModel *mDriveModel; |
70 FmDriveModel *mDriveModel; |
69 |
71 |
70 QAbstractItemModel *mCurrentModel; |
72 QAbstractItemModel *mCurrentModel; |
|
73 FmDriveWatcher *mDriveWatcher; |
71 |
74 |
72 }; |
75 }; |
73 |
76 |
74 #endif |
77 #endif |