ibus-qt  1.3.3
Signals | Public Member Functions | List of all members
IBus::Bus Class Reference
Inheritance diagram for IBus::Bus:
IBus::Object

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< EngineDescPointerlistEngines (void)
 Asks ibus daemon to return a list of engines. More...
 
QList< EngineDescPointerlistActiveEngines (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...
 
- Public Member Functions inherited from IBus::Object
virtual ~Object ()
 Destructor of Object. More...
 
virtual void destroy ()
 Destroy the object. More...
 

Constructor & Destructor Documentation

◆ Bus()

IBus::Bus::Bus ( void  )

Constructor of Bus object.

Returns

◆ ~Bus()

IBus::Bus::~Bus ( void  )

Destructor of Bus object.

Returns

Member Function Documentation

◆ addMatch()

void IBus::Bus::addMatch ( const QString &  rule)

Adds a match rule to match message going through the bus.

Parameters
[in]ruleMatch rule
Returns

◆ createInputContext()

QString IBus::Bus::createInputContext ( const QString &  name)

Asks ibus daemon to create an input context.

Parameters
[in]nameClient name
Returns
Object path of the input context

◆ exit()

bool IBus::Bus::exit ( bool  restart = false)

Asks ibus daemon to exit.

Parameters
[in]restartWhether restart ibus daemon after exiting
Returns
true if suceeded, false otherwise.

◆ getConnection()

const QDBusConnection & IBus::Bus::getConnection ( void  )

Gets the QDBusConnection object.

Returns
QDBusConnection object in Bus.

◆ getId()

QString IBus::Bus::getId ( void  )

Asks ibus daemon to return its globally unique ID.

Returns
the bus ID or Null

◆ getNameOwner()

QString IBus::Bus::getNameOwner ( const QString &  name)

Asks ibus daemon to return the owner of a bus name.

Returns
name owner or Null

◆ hello()

QString IBus::Bus::hello ( void  )

Says hello to ibus daemon, and gets a unique name from the daemon.

Returns
unique name from ibus daemon

◆ isConnected()

bool IBus::Bus::isConnected ( void  )

Gets whether the bus is connected to ibus daemon.

Returns
true if @object is connected to ibus daemon, otherwise false.

◆ listActiveEngines()

QList< EngineDescPointer > IBus::Bus::listActiveEngines ( void  )

Asks ibus daemon to return a list of active engines.

Returns
A List of active engines

◆ listEngines()

QList< EngineDescPointer > IBus::Bus::listEngines ( void  )

Asks ibus daemon to return a list of engines.

Returns
A List of engines

◆ listNames()

QStringList IBus::Bus::listNames ( void  )

Asks ibus daemon to return all client names.

Returns
List of names

◆ nameHasOwner()

bool IBus::Bus::nameHasOwner ( const QString &  name)

Gets whether name has an owner.

Parameters
[in]nameBus name
Returns
true if the name has owner, false otherwise.

◆ ping()

SerializablePointer IBus::Bus::ping ( const SerializablePointer data)

Pings ibus daemon with a serializable object.

Parameters
[in]dataThe data will be sent to ibus daemon.
Returns
The data from ibus daemon.

◆ registerComponent()

bool IBus::Bus::registerComponent ( const ComponentPointer component)

Registers a components with ibus daemon.

Parameters
[in]componentA Component
Returns
true if suceeded, false otherwise.

◆ registerObject()

bool IBus::Bus::registerObject ( const QString &  path,
QObject *  obj 
)

Registers an object with the connection.

Parameters
[in]pathThe object path.
[in]objThe object pointer.
Returns
true if suceeded, false otherwise.

◆ releaseName()

uint IBus::Bus::releaseName ( const QString &  name)

Asks ibus daemon to release the given name of this connection.

Parameters
[in]nameBus name
Returns
0 if error happens

◆ removeMatch()

void IBus::Bus::removeMatch ( const QString &  rule)

Removes a match rule to match message going through the bus.

Parameters
[in]ruleMatch rule
Returns

◆ requestName()

uint IBus::Bus::requestName ( const QString &  name,
uint  flag 
)

Asks ibus daemon to assign the given name to this connection.

Parameters
[in]nameBus name
[in]flagUnused
Returns
0 if error happens

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