KShare/platformspecifics/x11/x11backend.hpp
2017-07-05 12:05:55 +02:00

23 lines
462 B
C++

#ifndef X11BACKEND_HPP
#define X11BACKEND_HPP
#include <QPixmap>
#define PLATFORM_CAPABILITY_PID
#define PLATFORM_CAPABILITY_ACTIVEWINDOW
#define PLATFORM_CAPABILITY_CURSOR
class PlatformBackend {
public:
std::tuple<QPoint, QPixmap> getCursor();
pid_t pid();
static PlatformBackend &inst() {
static PlatformBackend inst;
return inst;
}
WId getActiveWID();
bool filenameValid(QString name);
};
#endif // X11BACKEND_HPP