mirror of
https://github.com/vicr123/the-libs.git
synced 2025-01-23 02:42:04 -05:00
35 lines
614 B
C++
35 lines
614 B
C++
#ifndef TVIRTUALKEYBOARD_H
|
|
#define TVIRTUALKEYBOARD_H
|
|
|
|
#include "the-libs_global.h"
|
|
#include <QObject>
|
|
|
|
#ifdef T_OS_UNIX_NOT_MAC
|
|
#include <QDBusInterface>
|
|
#include <QDBusConnectionInterface>
|
|
#endif
|
|
|
|
class tVirtualKeyboard : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
static tVirtualKeyboard* instance();
|
|
|
|
signals:
|
|
void keyboardVisibleChanged(bool isVisible);
|
|
|
|
public slots:
|
|
int height();
|
|
void showKeyboard();
|
|
void hideKeyboard();
|
|
bool isKeyboardRunning();
|
|
|
|
private:
|
|
tVirtualKeyboard();
|
|
|
|
#ifdef T_OS_UNIX_NOT_MAC
|
|
QDBusInterface* keyboardInterface;
|
|
#endif
|
|
};
|
|
|
|
#endif // TVIRTUALKEYBOARD_H
|