Changeset View
Changeset View
Standalone View
Standalone View
libnotificationmanager/jobsmodel.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 39 | public: | |||
---|---|---|---|---|---|
52 | /** | 52 | /** | ||
53 | * Whether the notification service could be registered | 53 | * Whether the notification service could be registered | ||
54 | */ | 54 | */ | ||
55 | bool isValid() const; | 55 | bool isValid() const; | ||
56 | 56 | | |||
57 | QVariant data(const QModelIndex &index, int role) const override; | 57 | QVariant data(const QModelIndex &index, int role) const override; | ||
58 | bool setData(const QModelIndex &index, const QVariant &value, int role) override; | 58 | bool setData(const QModelIndex &index, const QVariant &value, int role) override; | ||
59 | int rowCount(const QModelIndex &parent = QModelIndex()) const override; | 59 | int rowCount(const QModelIndex &parent = QModelIndex()) const override; | ||
60 | QHash<int, QByteArray> roleNames() const override; | ||||
60 | 61 | | |||
61 | /** | 62 | /** | ||
62 | * @brief Close a job | 63 | * @brief Close a job | ||
63 | * | 64 | * | ||
64 | * This removes the job from the model. This will not cancel the job! | 65 | * This removes the job from the model. This will not cancel the job! | ||
65 | * Use @c kill if you want to cancel a job. | 66 | * Use @c kill if you want to cancel a job. | ||
66 | */ | 67 | */ | ||
67 | void close(const QModelIndex &idx); | 68 | void close(const QModelIndex &idx); | ||
Show All 31 Lines |