玉兔远程控制 0.1.0-bate5
载入中...
搜索中...
未找到
Public 成员函数 | Private 成员函数 | Private 属性 | 所有成员列表
KeyInjector类 参考
类 KeyInjector 继承关系图:
Inheritance graph
[图例]
KeyInjector 的协作图:
Collaboration graph
[图例]

Public 成员函数

 KeyInjector (QObject *parent=nullptr)
 
bool init ()
 
bool sendKey (Qt::Key key)
 
bool sendKeyCombo (const QList< Qt::Key > &modifiers, Qt::Key key)
 
bool sendSuper ()
 
void cleanup ()
 

Private 成员函数

bool initX11 ()
 
bool initUInput ()
 
void cleanupX11 ()
 
void cleanupUInput ()
 
bool sendKeyX11 (Qt::Key key, bool press)
 
bool sendKeyUInput (int linux_keycode, int value)
 
int qtKeyToKeySym (Qt::Key key, bool *ok=nullptr)
 
int qtKeyToLinuxKey (Qt::Key key, bool *ok=nullptr)
 

Private 属性

bool useX11 = false
 
bool useUinput = false
 
void * x11Display = nullptr
 
int uinputFd = -1
 

详细描述

在文件 KeyInjector.h10 行定义.

构造及析构函数说明

◆ KeyInjector()

KeyInjector::KeyInjector ( QObject *  parent = nullptr)
explicit

在文件 KeyInjector.cpp24 行定义.

◆ ~KeyInjector()

KeyInjector::~KeyInjector ( )

在文件 KeyInjector.cpp29 行定义.

成员函数说明

◆ cleanup()

void KeyInjector::cleanup ( )

在文件 KeyInjector.cpp176 行定义.

◆ cleanupUInput()

void KeyInjector::cleanupUInput ( )
private

在文件 KeyInjector.cpp165 行定义.

◆ cleanupX11()

void KeyInjector::cleanupX11 ( )
private

在文件 KeyInjector.cpp102 行定义.

◆ init()

bool KeyInjector::init ( )

在文件 KeyInjector.cpp34 行定义.

◆ initUInput()

bool KeyInjector::initUInput ( )
private

在文件 KeyInjector.cpp112 行定义.

◆ initX11()

bool KeyInjector::initX11 ( )
private

在文件 KeyInjector.cpp70 行定义.

◆ qtKeyToKeySym()

int KeyInjector::qtKeyToKeySym ( Qt::Key  key,
bool *  ok = nullptr 
)
private

在文件 KeyInjector.cpp293 行定义.

◆ qtKeyToLinuxKey()

int KeyInjector::qtKeyToLinuxKey ( Qt::Key  key,
bool *  ok = nullptr 
)
private

在文件 KeyInjector.cpp333 行定义.

◆ sendKey()

bool KeyInjector::sendKey ( Qt::Key  key)

在文件 KeyInjector.cpp184 行定义.

◆ sendKeyCombo()

bool KeyInjector::sendKeyCombo ( const QList< Qt::Key > &  modifiers,
Qt::Key  key 
)

在文件 KeyInjector.cpp189 行定义.

◆ sendKeyUInput()

bool KeyInjector::sendKeyUInput ( int  linux_keycode,
int  value 
)
private

在文件 KeyInjector.cpp262 行定义.

◆ sendKeyX11()

bool KeyInjector::sendKeyX11 ( Qt::Key  key,
bool  press 
)
private

在文件 KeyInjector.cpp236 行定义.

◆ sendSuper()

bool KeyInjector::sendSuper ( )

在文件 KeyInjector.cpp231 行定义.

类成员变量说明

◆ uinputFd

int KeyInjector::uinputFd = -1
private

在文件 KeyInjector.h50 行定义.

◆ useUinput

bool KeyInjector::useUinput = false
private

在文件 KeyInjector.h48 行定义.

◆ useX11

bool KeyInjector::useX11 = false
private

在文件 KeyInjector.h47 行定义.

◆ x11Display

void* KeyInjector::x11Display = nullptr
private

在文件 KeyInjector.h49 行定义.


该类的文档由以下文件生成: