diff options
author | 2018-06-04 11:17:44 +0900 | |
---|---|---|
committer | 2018-06-04 11:18:05 +0900 | |
commit | 3739aeb76b1f150ddd7b49dc2e9bd033ae09ea0d (patch) | |
tree | 3d694537f358658c94ef7b0ad701e3447880490e /src/qlibwindowmanager.h | |
parent | 02f58b0b3f13b51395fc55d03afdbb445ba58b8d (diff) |
Rename APIssandbox/yuta-d/rename
init -> registerMyApplication
activateSurface -> allocateWindowResource
deactivateSurface -> releaseWindowResource
Change-Id: I0540014289ebb67bf1aeb59a30a24b5e642f1d86
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'src/qlibwindowmanager.h')
-rw-r--r-- | src/qlibwindowmanager.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/qlibwindowmanager.h b/src/qlibwindowmanager.h index 6b796f6..3064df0 100644 --- a/src/qlibwindowmanager.h +++ b/src/qlibwindowmanager.h @@ -44,18 +44,27 @@ public: Event_FlushDraw, }; - int init(int port, const QString &token); + int registerMyApplication(int port, const QString &token); // 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 allocateWindowResource(const QString &label); + Q_INVOKABLE int allocateWindowResource(const QString &label, const QString &drawing_area); + Q_INVOKABLE int releaseWindowResource(const QString &label); Q_INVOKABLE int endDraw(const QString &label); void set_event_handler(enum QEventType et, handler_fun f); + // This API is old, please use new API. + THIS_FUNCTION_IS_DEPRECATED(int init(int port, const QString &token)); + 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 slotAllocateWindowResource(); + + // This API is old, please use new API. + THIS_FUNCTION_IS_DEPRECATED(void slotActivateSurface()); private: LibWindowmanager* wm; |