mirror of
https://github.com/vicr123/the-libs.git
synced 2025-01-22 10:22:03 -05:00
b910575d7f
GNOME
43 lines
908 B
C++
43 lines
908 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 THELIBSSHARED_EXPORT tVirtualKeyboard : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
static tVirtualKeyboard* instance();
|
|
|
|
Q_SIGNALS:
|
|
void keyboardVisibleChanged(bool isVisible);
|
|
|
|
public Q_SLOTS:
|
|
int height();
|
|
void showKeyboard();
|
|
void hideKeyboard();
|
|
bool isKeyboardRunning();
|
|
|
|
bool keyboardVisible();
|
|
void setKeyboardType(QString type);
|
|
void setPredictive(bool predictive);
|
|
void setHidden(bool hidden);
|
|
void setSensitive(bool sensitive);
|
|
void setAutoUppercase(bool autoUpperCase);
|
|
void setEnterKeyType(QString type);
|
|
|
|
private:
|
|
tVirtualKeyboard();
|
|
|
|
#ifdef T_OS_UNIX_NOT_MAC
|
|
QDBusInterface* keyboardInterface;
|
|
#endif
|
|
};
|
|
|
|
#endif // TVIRTUALKEYBOARD_H
|