tsdevicedialog/tsdevicedialogplugin/inc/tsmodel.h
changeset 107 b34d53f6acdf
parent 106 e78d6e055a5b
child 112 dbfb5e38438b
equal deleted inserted replaced
106:e78d6e055a5b 107:b34d53f6acdf
    34 class TsModel : public QAbstractListModel
    34 class TsModel : public QAbstractListModel
    35 {
    35 {
    36     Q_OBJECT
    36     Q_OBJECT
    37 
    37 
    38 public:
    38 public:
    39     explicit TsModel(TsTaskMonitor &applicationSrv,
    39     TsModel(TsTaskMonitor &applicationSrv,
    40                      QObject &activitySrv,
    40             QObject &activitySrv,
    41                      QObject *parent = 0);
    41             QObject *parent = 0);
    42     ~TsModel();
    42     ~TsModel();
    43 
    43 
    44     int rowCount(const QModelIndex &parent = QModelIndex()) const;
    44     int rowCount(const QModelIndex &parent = QModelIndex()) const;
    45     QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
    45     QVariant data(const QModelIndex &index, 
       
    46                   int role = Qt::DisplayRole) const;
    46     int maxRowCount()const;
    47     int maxRowCount()const;
    47 
    48 
    48 public slots:
    49 public slots:
    49     void openApplication(const QModelIndex &index);
    50     void openApplication(const QModelIndex &index);
    50     void closeApplication(const QModelIndex &index);
    51     void closeApplication(const QModelIndex &index);
    73 #ifdef Q_OS_SYMBIAN
    74 #ifdef Q_OS_SYMBIAN
    74     RApaLsSession iAppArcSession;
    75     RApaLsSession iAppArcSession;
    75 #endif
    76 #endif
    76 
    77 
    77     /*
    78     /*
    78      * Icon size in model
       
    79      */
       
    80     QSize mSize;
       
    81     
       
    82     /*
       
    83      * Maximum number of items (only for running apps + activities)
    79      * Maximum number of items (only for running apps + activities)
    84      */ 
    80      */ 
    85     int mMaxItems;
    81     int mMaxItems;
       
    82     
       
    83     Q_DISABLE_COPY(TsModel)
    86 };
    84 };
    87 
    85 
    88 #endif // TSMODEL_H
    86 #endif // TSMODEL_H