Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/menu.h
Show All 40 Lines | 34 | public: | |||
---|---|---|---|---|---|
41 | AlternativesModel* model() const; | 41 | AlternativesModel* model() const; | ||
42 | 42 | | |||
43 | /** | 43 | /** | ||
44 | * Forces a reload of the menu in case something changed in the model | 44 | * Forces a reload of the menu in case something changed in the model | ||
45 | */ | 45 | */ | ||
46 | void reload(); | 46 | void reload(); | ||
47 | 47 | | |||
48 | Q_SIGNALS: | 48 | Q_SIGNALS: | ||
49 | void finished(const QJsonObject &output, int error, const QString &message); | 49 | /** | ||
50 | * Emitted when a triggered job finishes | ||||
51 | * | ||||
52 | * @p output contains the information offered by the plugin. The information offered will depend on the plugin type. | ||||
53 | * @p error will be 0 if the execution was successful, otherwise it will provide an error message | ||||
54 | * @p errorMessage the error message | ||||
55 | * | ||||
56 | * @see Purpose::Job | ||||
57 | */ | ||||
58 | void finished(const QJsonObject &output, int error, const QString &errorMessage); | ||||
50 | 59 | | |||
51 | private: | 60 | private: | ||
52 | Q_DECLARE_PRIVATE(Menu) | 61 | Q_DECLARE_PRIVATE(Menu) | ||
53 | MenuPrivate *const d_ptr; | 62 | MenuPrivate *const d_ptr; | ||
54 | }; | 63 | }; | ||
55 | 64 | | |||
56 | } | 65 | } | ||
57 | 66 | | |||
58 | #endif | 67 | #endif |