Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QIBusPlatformInputContextPrivate Class Reference
+ Collaboration diagram for QIBusPlatformInputContextPrivate:

Public Types

enum  PreeditFocusMode { PREEDIT_CLEAR = 0 , PREEDIT_COMMIT = 1 }
 

Public Member Functions

 QIBusPlatformInputContextPrivate ()
 
 ~QIBusPlatformInputContextPrivate ()
 
void createConnection ()
 
void initBus ()
 
void createBusProxy ()
 

Static Public Member Functions

static QString getSocketPath ()
 

Public Attributes

std::unique_ptr< QIBusProxybus
 
std::unique_ptr< QIBusProxyPortalportalBus
 
std::unique_ptr< QIBusInputContextProxycontext
 
QDBusServiceWatcher serviceWatcher
 
bool usePortal
 
bool valid
 
bool busConnected
 
QString predit
 
QList< QInputMethodEvent::Attributeattributes
 
bool needsSurroundingText
 
QLocale locale
 
PreeditFocusMode preeditFocusMode = PREEDIT_COMMIT
 

Detailed Description

Definition at line 50 of file qibusplatforminputcontext.cpp.

Member Enumeration Documentation

◆ PreeditFocusMode

Enumerator
PREEDIT_CLEAR 
PREEDIT_COMMIT 

Definition at line 56 of file qibusplatforminputcontext.cpp.

Constructor & Destructor Documentation

◆ QIBusPlatformInputContextPrivate()

QIBusPlatformInputContextPrivate::QIBusPlatformInputContextPrivate ( )

Definition at line 635 of file qibusplatforminputcontext.cpp.

References bus, debug, QStandardPaths::findExecutable(), QString::fromLocal8Bit(), initBus(), locale, qDebug, usePortal, and valid.

+ Here is the call graph for this function:

◆ ~QIBusPlatformInputContextPrivate()

QIBusPlatformInputContextPrivate::~QIBusPlatformInputContextPrivate ( )
inline

Definition at line 62 of file qibusplatforminputcontext.cpp.

References bus, context, QDBusConnection::disconnectFromBus(), portalBus, serviceWatcher, and QDBusServiceWatcher::setConnection().

+ Here is the call graph for this function:

Member Function Documentation

◆ createBusProxy()

void QIBusPlatformInputContextPrivate::createBusProxy ( )

Definition at line 665 of file qibusplatforminputcontext.cpp.

References QDBusServiceWatcher::addWatchedService(), bus, busConnected, connection, context, debug, portalBus, qDebug, qWarning, QDBusServiceWatcher::removeWatchedService(), serviceWatcher, QDBusServiceWatcher::setConnection(), and usePortal.

Referenced by initBus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createConnection()

void QIBusPlatformInputContextPrivate::createConnection ( )

Definition at line 768 of file qibusplatforminputcontext.cpp.

References QFileDevice::atEnd(), QDBusConnection::connectToBus(), debug, file, QString::fromLatin1(), getSocketPath(), line, QString::mid(), QFile::open(), qDebug, QIODevice::readLine(), QIODeviceBase::ReadOnly, QDBusConnection::SessionBus, QString::startsWith(), QString::toInt(), and usePortal.

Referenced by initBus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSocketPath()

QString QIBusPlatformInputContextPrivate::getSocketPath ( )
static

Definition at line 728 of file qibusplatforminputcontext.cpp.

References QStandardPaths::ConfigLocation, debug, QString::fromLocal8Bit(), QByteArray::indexOf(), QByteArray::left(), QDBusConnection::localMachineId(), pos, qDebug, qEnvironmentVariableIsSet(), qgetenv(), and QStandardPaths::writableLocation().

Referenced by QIBusPlatformInputContext::QIBusPlatformInputContext(), QIBusPlatformInputContext::connectToBus(), and createConnection().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initBus()

void QIBusPlatformInputContextPrivate::initBus ( )

Definition at line 658 of file qibusplatforminputcontext.cpp.

References busConnected, createBusProxy(), and createConnection().

Referenced by QIBusPlatformInputContextPrivate(), and QIBusPlatformInputContext::connectToBus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ attributes

◆ bus

◆ busConnected

◆ context

◆ locale

◆ needsSurroundingText

bool QIBusPlatformInputContextPrivate::needsSurroundingText

◆ portalBus

std::unique_ptr<QIBusProxyPortal> QIBusPlatformInputContextPrivate::portalBus

◆ predit

◆ preeditFocusMode

PreeditFocusMode QIBusPlatformInputContextPrivate::preeditFocusMode = PREEDIT_COMMIT

◆ serviceWatcher

◆ usePortal

◆ valid

bool QIBusPlatformInputContextPrivate::valid

The documentation for this class was generated from the following file: