filebrowser/ui/inc/fbdrivemodel.h
changeset 51 b048e15729d6
parent 31 e7a04a6385be
equal deleted inserted replaced
44:5db69f4c3d06 51:b048e15729d6
    16 */
    16 */
    17 
    17 
    18 #ifndef FBDRIVEMODELH_H_
    18 #ifndef FBDRIVEMODELH_H_
    19 #define FBDRIVEMODELH_H_
    19 #define FBDRIVEMODELH_H_
    20 
    20 
    21 #include "driveentry.h"
    21 #include "fbdriveentry.h"
    22 
    22 
    23 #include <QAbstractListModel>
    23 #include <QAbstractListModel>
    24 #include <QVariant>
    24 #include <QVariant>
    25 
    25 
    26 // Forward declarations
    26 // Forward declarations
    39 
    39 
    40     int rowCount(const QModelIndex &parent = QModelIndex()) const;
    40     int rowCount(const QModelIndex &parent = QModelIndex()) const;
    41     QVariant data(const QModelIndex &index, int role) const;
    41     QVariant data(const QModelIndex &index, int role) const;
    42     QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
    42     QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
    43 
    43 
    44     DriveEntry driveEntry(const QModelIndex &index) const;
    44     FbDriveEntry driveEntry(const QModelIndex &index) const;
    45     QString driveLetter( const QModelIndex &index ) const;
    45     QString driveLetter( const QModelIndex &index ) const;
    46     QString mediaTypeString(const QModelIndex &index) const;
    46     QString mediaTypeString(const QModelIndex &index) const;
    47 
    47 
    48 private:
    48 private:
    49     EngineWrapper *mEngineWrapper;
    49     EngineWrapper *mEngineWrapper;