2 * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full tWlExt of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
10 //==========================================================================
12 * @file CicoSCWlInputMgrIF.cpp
14 * @brief This file is definition of CicoSCInputDevConf class
16 //==========================================================================
17 #ifndef __CICO_SC_WL_INPUT_MGR_IF_H__
18 #define __CICO_SC_WL_INPUT_MGR_IF_H__
21 #include "CicoSCWaylandIF.h"
23 //--------------------------------------------------------------------------
25 * @brief This class is wayland interface of multi input manager
27 //--------------------------------------------------------------------------
28 class CicoSCWlInputMgrIF : public CicoSCWaylandIF
31 // initialize interface
32 void initInterface(void *data,
33 struct wl_registry *registry,
35 const char *interface,
38 // capabilities callback function
39 void capabilitiesCB(void *data,
47 // code callback function
48 void codeCB(void *data,
54 // input callback function
55 void inputCB(void *data,
62 // region callback function
63 void regionCB(void *data,
64 struct wl_array *region);
67 // default constructor
71 virtual ~CicoSCWlInputMgrIF();
73 // assignment operator
74 CicoSCWlInputMgrIF& operator=(const CicoSCWlInputMgrIF &object);
77 CicoSCWlInputMgrIF(const CicoSCWlInputMgrIF &object);
79 // wrapper function add_input_app
80 void addInputApp(const std::string &appid,
81 const std::string &device,
86 // wrapper function del_input_app
87 void delInputApp(const std::string &appid,
88 const std::string &device,
91 // wrapper function input_region
92 void setInputRegion(const std::string &target,
105 // wrapper function unset_input_region
106 void unsetInputRegion(const std::string &target,
113 // wayland capabilities callback function
114 static void wlCapabilitiesCB(void *data,
119 const char *codename,
122 // wayland code callback function
123 static void wlCodeCB(void *data,
126 const char *codename,
129 // wayland input callback function
130 static void wlInputCB(void *data,
137 // wayland region callback function
138 static void wlRegionCB(void *data,
139 struct wl_array *region);
146 #endif // __CICO_SC_WL_INPUT_MGR_IF_H__
147 // vim:set expandtab ts=4 sw=4: