SenseApis: New senseApiManager and X11XcbApi
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.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user