~saviq/unity8/fix-frequent-app-ids

« back to all changes in this revision

Viewing changes to plugins/Unity/Indicators/indicatorsmodel.h

  • Committer: Tarmac
  • Author(s): Michał Sawicz
  • Date: 2013-10-04 06:42:53 UTC
  • mfrom: (229.3.17 drop-network-agent)
  • Revision ID: tarmac-20131004064253-6v8v1ghsb3yj2e8g
Drop network agents now that they're in indicator-network instead.

Approved by PS Jenkins bot, Nick Dedekind.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    Q_OBJECT
35
35
    Q_ENUMS(Roles)
36
36
    Q_PROPERTY(int count READ count NOTIFY countChanged)
37
 
    Q_PROPERTY(QVariant indicatorData READ indicatorData WRITE setIndicatorData NOTIFY indicatorDataChanged)
38
37
 
39
38
public:
40
39
 
53
52
    QModelIndex parent (const QModelIndex &index) const;
54
53
    int rowCount(const QModelIndex &parent = QModelIndex()) const;
55
54
 
56
 
    void setIndicatorData(const QVariant& data);
57
 
    QVariant indicatorData() const;
58
 
 
59
55
 
60
56
Q_SIGNALS:
61
57
    void countChanged();
71
67
    IndicatorsManager *m_manager;
72
68
 
73
69
    QList<Indicator::Ptr> m_indicators;
74
 
    QVariant m_indicator_data;
75
 
    QMap<QString, QVariantMap> m_parsed_indicator_data;
76
70
 
77
71
    void notifyDataChanged(QObject *sender, int role);
78
72
    int count() const;
79
 
    QVariant indicatorData(const Indicator::Ptr& indicator, int role) const;
80
 
    static QVariant defaultData(Indicator::Ptr indicator, int role);
81
73
};
82
74
 
83
75
#endif // INDICATORSMODEL_H