Changeset View
Changeset View
Standalone View
Standalone View
src/acbf/AcbfSequence.h
Context not available. | |||||
37 | class ACBF_EXPORT Sequence : public QObject | 37 | class ACBF_EXPORT Sequence : public QObject | ||
---|---|---|---|---|---|
38 | { | 38 | { | ||
39 | Q_OBJECT | 39 | Q_OBJECT | ||
40 | Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged) | ||||
41 | Q_PROPERTY(int volume READ volume WRITE setVolume NOTIFY volumeChanged) | ||||
42 | Q_PROPERTY(int number READ number WRITE setNumber NOTIFY numberChanged) | ||||
40 | public: | 43 | public: | ||
41 | explicit Sequence(BookInfo * parent = nullptr); | 44 | explicit Sequence(BookInfo * parent = nullptr); | ||
42 | ~Sequence() override; | 45 | ~Sequence() override; | ||
Context not available. | |||||
61 | */ | 64 | */ | ||
62 | void setTitle(const QString& title); | 65 | void setTitle(const QString& title); | ||
63 | 66 | | |||
67 | Q_SIGNAL void titleChanged(); | ||||
68 | | ||||
64 | /** | 69 | /** | ||
65 | * @returns the volume number. | 70 | * @returns the volume number. | ||
66 | */ | 71 | */ | ||
Context not available. | |||||
72 | */ | 77 | */ | ||
73 | void setVolume(int volume = 0); | 78 | void setVolume(int volume = 0); | ||
74 | 79 | | |||
80 | Q_SIGNAL void volumeChanged(); | ||||
81 | | ||||
75 | /** | 82 | /** | ||
76 | * @return the number that this work takes up in the sequence. | 83 | * @return the number that this work takes up in the sequence. | ||
77 | */ | 84 | */ | ||
Context not available. | |||||
82 | * part of the series. | 89 | * part of the series. | ||
83 | */ | 90 | */ | ||
84 | void setNumber(int number); | 91 | void setNumber(int number); | ||
92 | | ||||
93 | Q_SIGNAL void numberChanged(); | ||||
85 | private: | 94 | private: | ||
86 | class Private; | 95 | class Private; | ||
87 | std::unique_ptr<Private> d; | 96 | std::unique_ptr<Private> d; | ||
Context not available. |