summaryrefslogtreecommitdiffstats
path: root/src/qlibwindowmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qlibwindowmanager.h')
-rw-r--r--src/qlibwindowmanager.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/qlibwindowmanager.h b/src/qlibwindowmanager.h
index 9e80abb..8fb653d 100644
--- a/src/qlibwindowmanager.h
+++ b/src/qlibwindowmanager.h
@@ -54,14 +54,22 @@ public:
// WM API
Q_INVOKABLE int requestSurface(const QString &label);
- Q_INVOKABLE int activateSurface(const QString &label);
- Q_INVOKABLE int activateSurface(const QString &label, const QString &drawing_area);
- Q_INVOKABLE int deactivateSurface(const QString &label);
+ Q_INVOKABLE int activateWindow(const QString &label);
+ Q_INVOKABLE int activateWindow(const QString &label, const QString &drawing_area);
+ Q_INVOKABLE int deactivateWindow(const QString &label);
Q_INVOKABLE int endDraw(const QString &label);
void set_event_handler(enum QEventType et, handler_fun f);
+ // These APIs are deprecated, please use new API
+ THIS_FUNCTION_IS_DEPRECATED(Q_INVOKABLE int activateSurface(const QString &label));
+ THIS_FUNCTION_IS_DEPRECATED(Q_INVOKABLE int activateSurface(const QString &label, const QString &drawing_area));
+ THIS_FUNCTION_IS_DEPRECATED(Q_INVOKABLE int deactivateSurface(const QString &label));
+
public slots:
- void slotActivateSurface();
+ void slotActivateWindow();
+
+ // This API is deprecated, please use new API
+ THIS_FUNCTION_IS_DEPRECATED(void slotActivateSurface());
private:
LibWindowmanager* wm;