KShare/src/platformspecifics/mac/macbackend.hpp

22 lines
433 B
C++
Raw Permalink Normal View History

2017-05-13 11:03:46 +02:00
#ifndef MACBACKEND_HPP
#define MACBACKEND_HPP
#include <QPixmap>
#define PLATFORM_CAPABILITY_PID
#define PLATFORM_CAPABILITY_CURRENT_USER
2017-05-13 11:03:46 +02:00
class PlatformBackend {
public:
std::tuple<QPoint, QPixmap> getCursor();
pid_t pid();
2017-05-13 11:03:46 +02:00
static PlatformBackend &inst() {
static PlatformBackend inst;
return inst;
}
bool filenameValid(QString name);
QString getCurrentUser();
2017-05-13 11:03:46 +02:00
};
#endif // MACBACKEND_HPP