fe3f911db4
Still fleshing these out but ultimately senseApiMgr will manage sense apis, and the X11XcbApi is where we'll connect to Xcb and read the screen.
25 lines
568 B
C++
25 lines
568 B
C++
#ifndef X11_XCB_API_H
|
|
#define X11_XCB_API_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <memory>
|
|
|
|
class X11XcbApi
|
|
{
|
|
public:
|
|
X11XcbApi(const std::string& displayName);
|
|
~X11XcbApi();
|
|
|
|
void addDevice(const std::string& deviceSpec);
|
|
void removeDevice(const std::string& deviceSpec);
|
|
void addAllDevicesFromSpecs(const std::vector<std::string>& deviceSpecs);
|
|
|
|
private:
|
|
std::string displayName;
|
|
std::vector<std::shared_ptr<DeviceManager::SensorDeviceSpec>> deviceSpecs;
|
|
// Add other necessary members and methods
|
|
};
|
|
|
|
#endif // X11_XCB_API_H
|