/usr/include/ibus-qt/qibuscomponent.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 85 86 87 88 89 90 91 92 93 94 | #ifndef __Q_IBUS_COMPONENT_H_
#define __Q_IBUS_COMPONENT_H_
#include <QFile>
#include <QDebug>
#include <QVector>
#include <QProcess>
#include <QXmlStreamWriter>
#include <QtXml/QDomNode>
#include "qibusserializable.h"
#include "qibusenginedesc.h"
#include "qibusobservedpath.h"
namespace IBus {
class Component;
typedef Pointer<Component> ComponentPointer;
class Component : public Serializable
{
Q_OBJECT;
public:
Component () {}
Component (const QString & name,
const QString & desc,
const QString & vers,
const QString & lics,
const QString & auth,
const QString & hmpg,
const QString & exec,
const QString & textdomain):
m_name(name),
m_description(desc),
m_version(vers),
m_license(lics),
m_author(auth),
m_homepage(hmpg),
m_exec(exec),
m_textdomain(textdomain) {}
virtual ~Component () {}
public:
virtual bool serialize (QDBusArgument &argument);
virtual bool deserialize (const QDBusArgument &argument);
void output (QString &output) const;
bool parseXmlNode (const QDomNode &node);
// bool parseEnginesNode (QDomNode &node);
// bool parseObservedPaths (const QDomNode &node);
void addObservedPath (const ObservedPathPointer &obsPath);
void addEngine (const EngineDescPointer &edp);
QVector<ObservedPathPointer> observedPaths () const;
const QVector<EngineDescPointer> & engines () const;
#if 0
bool start (bool verbose) const;
bool stop () const;
bool isRunning () const;
bool isComponentModified () const;
const ComponentPointer getComponentFromEngine (EngineDescPointer edp) const;
friend bool newComponentFromFile (Component &obj, const QString & filename);
private:
const QDomDocument * parseXmlFile (const QString & filename) const;
const QDomDocument * parseXmlBuffer (const QByteArray & buf);
#endif
private:
QString m_name;
QString m_description;
QString m_version;
QString m_license;
QString m_author;
QString m_homepage;
QString m_exec;
QString m_textdomain;
QVector<ObservedPathPointer> m_observedPaths;
QVector<EngineDescPointer> m_engines;
IBUS_SERIALIZABLE
};
};
#endif
|