filemanager/src/inc/fmdrivemodel.h
changeset 30 6e96d2143d46
parent 29 b3155376f2b4
child 41 fc4654ce4fcb
equal deleted inserted replaced
29:b3155376f2b4 30:6e96d2143d46
    18 #ifndef FMDRIVEMODEL_H
    18 #ifndef FMDRIVEMODEL_H
    19 #define FMDRIVEMODEL_H
    19 #define FMDRIVEMODEL_H
    20 
    20 
    21 #include <QAbstractItemModel>
    21 #include <QAbstractItemModel>
    22 #include <QStringList>
    22 #include <QStringList>
    23 #include <QFileIconProvider>
       
    24 #include <QModelIndex>
    23 #include <QModelIndex>
       
    24 
       
    25 class FmFileIconProvider;
    25 
    26 
    26 /*!
    27 /*!
    27     \class FmDriveListProvider
    28     \class FmDriveListProvider
    28     \brief The class FmDriveListProvider provide drive list which is used in FmDriveModel
    29     \brief The class FmDriveListProvider provide drive list which is used in FmDriveModel
    29  */
    30  */
    69     QString driveName( const QModelIndex &index ) const;
    70     QString driveName( const QModelIndex &index ) const;
    70     QString displayString( const QModelIndex &index ) const;
    71     QString displayString( const QModelIndex &index ) const;
    71     
    72     
    72 private:
    73 private:
    73     QStringList         mFindResult;
    74     QStringList         mFindResult;
    74     QFileIconProvider   *mIconProvider;
    75     FmFileIconProvider  *mIconProvider;
    75     QStringList         mDriveList;
    76     QStringList         mDriveList;
    76     Options             mOptions;
    77     Options             mOptions;
    77     
    78     
    78     // DriveListProvider will ignore HideUnAvailableDrive option.
    79     // DriveListProvider will ignore HideUnAvailableDrive option.
    79     // DriveListProvide can be set by others to provide special drive list
    80     // DriveListProvide can be set by others to provide special drive list