Changeset View
Changeset View
Standalone View
Standalone View
src/server/resource.h
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | |||||
76 | 76 | | |||
77 | Q_SIGNALS: | 77 | Q_SIGNALS: | ||
78 | /** | 78 | /** | ||
79 | * This signal is emitted when the client unbound this Resource. | 79 | * This signal is emitted when the client unbound this Resource. | ||
80 | * The Resource will be deleted in the next event cycle after this event. | 80 | * The Resource will be deleted in the next event cycle after this event. | ||
81 | * @since 5.24 | 81 | * @since 5.24 | ||
82 | **/ | 82 | **/ | ||
83 | void unbound(); | 83 | void unbound(); | ||
84 | /** | ||||
85 | * This signal is emitted when the client is in the process of unbinding the Resource. | ||||
86 | * In opposite to @link{unbound} the @link{resource} is still valid and allows to perform | ||||
87 | * cleanup tasks. Example: send a keyboard leave for the Surface which is in the process of | ||||
88 | * getting destroyed. | ||||
89 | * | ||||
90 | * @see unbound | ||||
91 | * @since 5.37 | ||||
92 | **/ | ||||
93 | void aboutToBeUnbound(); | ||||
84 | 94 | | |||
85 | protected: | 95 | protected: | ||
86 | class Private; | 96 | class Private; | ||
87 | explicit Resource(Private *d, QObject *parent = nullptr); | 97 | explicit Resource(Private *d, QObject *parent = nullptr); | ||
88 | QScopedPointer<Private> d; | 98 | QScopedPointer<Private> d; | ||
89 | 99 | | |||
90 | }; | 100 | }; | ||
91 | 101 | | |||
92 | } | 102 | } | ||
93 | } | 103 | } | ||
94 | #endif | 104 | #endif |