/usr/include/ibus-qt/qibusbus.h is in libibus-qt-dev 1.3.2-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | #ifndef __Q_IBUS_BUS_H_
#define __Q_IBUS_BUS_H_
#include <QFileSystemWatcher>
#include <QDBusConnection>
#include "qibusobject.h"
#include "qibusserializable.h"
#include "qibusenginedesc.h"
#include "qibuscomponent.h"
#include "qibusengine.h"
class QDBusConnection;
class IBusProxy;
class DBusProxy;
namespace IBus {
class Bus;
typedef Pointer<Bus> BusPointer;
class Bus : public Object
{
Q_OBJECT;
protected:
public:
Bus (void);
~Bus (void);
bool isConnected (void);
const QDBusConnection &getConnection (void);
/* org.freedesktop.DBus methods */
QString hello (void);
void addMatch (const QString &rule);
void removeMatch (const QString &rule);
QString getId (void);
QString getNameOwner (const QString &name);
QStringList listNames (void);
bool nameHasOwner (const QString &name);
uint requestName (const QString &name, uint flag);
uint releaseName (const QString &name);
/* org.freedesktop.IBus methods */
QString createInputContext (const QString &name);
bool registerComponent (const ComponentPointer &component);
bool registerObject (const QString &path, QObject *obj);
QList<EngineDescPointer> listEngines (void);
QList<EngineDescPointer> listActiveEngines (void);
bool exit (bool restart = false);
SerializablePointer ping (const SerializablePointer &data);
private:
bool open (void);
void reset (void);
QString getSocketPath (void);
QString getAddress (void);
signals:
/**
* @brief Emited when bus is disconnected from ibus daemon.
*/
void disconnected (void);
/**
* @brief Emited when bus is connected to ibus daemon.
*/
void connected (void);
private slots:
void slotAddressChanged (const QString &path);
void slotIBusDisconnected (void);
private:
QFileSystemWatcher m_watcher;
QDBusConnection *m_connection;
DBusProxy *m_dbus;
IBusProxy *m_ibus;
};
};
#endif
|