Signals | |
void | disconnected (void) |
Emited when bus is disconnected from ibus daemon. | |
void | connected (void) |
Emited when bus is connected to ibus daemon. | |
Public Member Functions | |
Bus (void) | |
Constructor of Bus object. More... | |
~Bus (void) | |
Destructor of Bus object. More... | |
bool | isConnected (void) |
Gets whether the bus is connected to ibus daemon. More... | |
const QDBusConnection & | getConnection (void) |
Gets the QDBusConnection object. More... | |
QString | hello (void) |
Says hello to ibus daemon, and gets a unique name from the daemon. More... | |
void | addMatch (const QString &rule) |
Adds a match rule to match message going through the bus. More... | |
void | removeMatch (const QString &rule) |
Removes a match rule to match message going through the bus. More... | |
QString | getId (void) |
Asks ibus daemon to return its globally unique ID. More... | |
QString | getNameOwner (const QString &name) |
Asks ibus daemon to return the owner of a bus name. More... | |
QStringList | listNames (void) |
Asks ibus daemon to return all client names. More... | |
bool | nameHasOwner (const QString &name) |
Gets whether name has an owner. More... | |
uint | requestName (const QString &name, uint flag) |
Asks ibus daemon to assign the given name to this connection. More... | |
uint | releaseName (const QString &name) |
Asks ibus daemon to release the given name of this connection. More... | |
QString | createInputContext (const QString &name) |
Asks ibus daemon to create an input context. More... | |
bool | registerComponent (const ComponentPointer &component) |
Registers a components with ibus daemon. More... | |
bool | registerObject (const QString &path, QObject *obj) |
Registers an object with the connection. More... | |
QList< EngineDescPointer > | listEngines (void) |
Asks ibus daemon to return a list of engines. More... | |
QList< EngineDescPointer > | listActiveEngines (void) |
Asks ibus daemon to return a list of active engines. More... | |
bool | exit (bool restart=false) |
Asks ibus daemon to exit. More... | |
SerializablePointer | ping (const SerializablePointer &data) |
Pings ibus daemon with a serializable object. More... | |
![]() | |
virtual | ~Object () |
Destructor of Object. More... | |
virtual void | destroy () |
Destroy the object. More... | |
IBus::Bus::Bus | ( | void | ) |
Constructor of Bus object.
IBus::Bus::~Bus | ( | void | ) |
Destructor of Bus object.
void IBus::Bus::addMatch | ( | const QString & | rule | ) |
Adds a match rule to match message going through the bus.
[in] | rule | Match rule |
QString IBus::Bus::createInputContext | ( | const QString & | name | ) |
Asks ibus daemon to create an input context.
[in] | name | Client name |
bool IBus::Bus::exit | ( | bool | restart = false | ) |
Asks ibus daemon to exit.
[in] | restart | Whether restart ibus daemon after exiting |
const QDBusConnection & IBus::Bus::getConnection | ( | void | ) |
Gets the QDBusConnection object.
QString IBus::Bus::getId | ( | void | ) |
Asks ibus daemon to return its globally unique ID.
QString IBus::Bus::getNameOwner | ( | const QString & | name | ) |
Asks ibus daemon to return the owner of a bus name.
QString IBus::Bus::hello | ( | void | ) |
Says hello to ibus daemon, and gets a unique name from the daemon.
bool IBus::Bus::isConnected | ( | void | ) |
Gets whether the bus is connected to ibus daemon.
QList< EngineDescPointer > IBus::Bus::listActiveEngines | ( | void | ) |
Asks ibus daemon to return a list of active engines.
QList< EngineDescPointer > IBus::Bus::listEngines | ( | void | ) |
Asks ibus daemon to return a list of engines.
QStringList IBus::Bus::listNames | ( | void | ) |
Asks ibus daemon to return all client names.
bool IBus::Bus::nameHasOwner | ( | const QString & | name | ) |
Gets whether name has an owner.
[in] | name | Bus name |
SerializablePointer IBus::Bus::ping | ( | const SerializablePointer & | data | ) |
Pings ibus daemon with a serializable object.
[in] | data | The data will be sent to ibus daemon. |
bool IBus::Bus::registerComponent | ( | const ComponentPointer & | component | ) |
Registers a components with ibus daemon.
[in] | component | A Component |
bool IBus::Bus::registerObject | ( | const QString & | path, |
QObject * | obj | ||
) |
Registers an object with the connection.
[in] | path | The object path. |
[in] | obj | The object pointer. |
uint IBus::Bus::releaseName | ( | const QString & | name | ) |
Asks ibus daemon to release the given name of this connection.
[in] | name | Bus name |
void IBus::Bus::removeMatch | ( | const QString & | rule | ) |
Removes a match rule to match message going through the bus.
[in] | rule | Match rule |
uint IBus::Bus::requestName | ( | const QString & | name, |
uint | flag | ||
) |
Asks ibus daemon to assign the given name to this connection.
[in] | name | Bus name |
[in] | flag | Unused |