homescreensrv_plat/contentstorage_api/caitemmodel.h
changeset 66 32469d7d46ff
parent 60 f62f87b200ec
child 83 156f692b1687
equal deleted inserted replaced
61:8e5041d13c84 66:32469d7d46ff
    45     {
    45     {
    46         IdRole = Qt::UserRole + 1,
    46         IdRole = Qt::UserRole + 1,
    47         ParentIdRole,
    47         ParentIdRole,
    48         TypeRole,
    48         TypeRole,
    49         FlagsRole,
    49         FlagsRole,
    50         TextRole//contains title represented as QString,
    50         TextRole,//contains title represented as QString,
    51                 //convinient for operations such as search
    51         FullTextRole //'title description' convinient for operations such as search
    52     };
    52     };
    53 
    53 
    54     // Function declarations
    54     // Function declarations
    55     CaItemModel(const CaQuery &query, QObject *parent = 0);
    55     CaItemModel(const CaQuery &query, QObject *parent = 0);
    56     ~CaItemModel();
    56     ~CaItemModel();
    73     QSize getIconSize() const;
    73     QSize getIconSize() const;
    74     void updateModel();
    74     void updateModel();
    75     void setParentId(int parentId);
    75     void setParentId(int parentId);
    76     void setFlagsOn(const EntryFlags &onFlags);
    76     void setFlagsOn(const EntryFlags &onFlags);
    77     void setFlagsOff(const EntryFlags &offFlags);
    77     void setFlagsOff(const EntryFlags &offFlags);
    78     CaEntry* entry(const QModelIndex &index) const;
    78     QSharedPointer<CaEntry> entry(const QModelIndex &index) const;
    79 
    79 
    80     signals:
    80     signals:
    81 
    81 
    82     void scrollTo(int row, QAbstractItemView::ScrollHint hint =
    82     void scrollTo(int row, QAbstractItemView::ScrollHint hint =
    83         QAbstractItemView::EnsureVisible);
    83         QAbstractItemView::EnsureVisible);