Changeset View
Changeset View
Standalone View
Standalone View
src/incidenceattachmentmodel.h
Show All 18 Lines | |||||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef CALENDARSUPPORT_INCIDENCEATTACHMENTMODEL_H | 21 | #ifndef CALENDARSUPPORT_INCIDENCEATTACHMENTMODEL_H | ||
22 | #define CALENDARSUPPORT_INCIDENCEATTACHMENTMODEL_H | 22 | #define CALENDARSUPPORT_INCIDENCEATTACHMENTMODEL_H | ||
23 | 23 | | |||
24 | #include <Attribute> | 24 | #include <Attribute> | ||
25 | #include <Item> | 25 | #include <Item> | ||
26 | 26 | | |||
27 | #include <KCalCore/Incidence> | 27 | #include <KCalendarCore/Incidence> | ||
28 | 28 | | |||
29 | #include <QAbstractListModel> | 29 | #include <QAbstractListModel> | ||
30 | 30 | | |||
31 | namespace Akonadi { | 31 | namespace Akonadi { | ||
32 | class Item; | 32 | class Item; | ||
33 | } | 33 | } | ||
34 | 34 | | |||
35 | namespace CalendarSupport { | 35 | namespace CalendarSupport { | ||
Show All 17 Lines | 52 | explicit IncidenceAttachmentModel(const QPersistentModelIndex &modelIndex, | |||
53 | QObject *parent = nullptr); | 53 | QObject *parent = nullptr); | ||
54 | 54 | | |||
55 | explicit IncidenceAttachmentModel(const Akonadi::Item &item, QObject *parent = nullptr); | 55 | explicit IncidenceAttachmentModel(const Akonadi::Item &item, QObject *parent = nullptr); | ||
56 | 56 | | |||
57 | explicit IncidenceAttachmentModel(QObject *parent = nullptr); | 57 | explicit IncidenceAttachmentModel(QObject *parent = nullptr); | ||
58 | 58 | | |||
59 | ~IncidenceAttachmentModel() override; | 59 | ~IncidenceAttachmentModel() override; | ||
60 | 60 | | |||
61 | KCalCore::Incidence::Ptr incidence() const; | 61 | KCalendarCore::Incidence::Ptr incidence() const; | ||
62 | 62 | | |||
63 | void setItem(const Akonadi::Item &item); | 63 | void setItem(const Akonadi::Item &item); | ||
64 | void setIndex(const QPersistentModelIndex &modelIndex); | 64 | void setIndex(const QPersistentModelIndex &modelIndex); | ||
65 | 65 | | |||
66 | int rowCount(const QModelIndex &parent = QModelIndex()) const override; | 66 | int rowCount(const QModelIndex &parent = QModelIndex()) const override; | ||
67 | 67 | | |||
68 | QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; | 68 | QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; | ||
69 | 69 | | |||
Show All 17 Lines |