/usr/include/ibus-qt/qibusenginedesc.h is in libibus-qt-dev 1.3.2-2.
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 | #ifndef __Q_IBUS_ENGINE_DESC_H_
#define __Q_IBUS_ENGINE_DESC_H_
#include <QDebug>
#include <QXmlStreamWriter>
#include <QtXml/QDomNode>
#include "qibusserializable.h"
namespace IBus {
class EngineDesc;
typedef Pointer<EngineDesc> EngineDescPointer;
class EngineDesc : public Serializable
{
Q_OBJECT;
public:
EngineDesc () : m_rank (0)
{}
EngineDesc (const QString & name,
const QString & lname,
const QString & desc,
const QString & lang,
const QString & lics,
const QString & auth,
const QString & icon,
const QString & layout,
const QString & hotkeys = "",
uint rank = 0):
m_name(name),
m_longname(lname),
m_description(desc),
m_language(lang),
m_license(lics),
m_author(auth),
m_icon(icon),
m_layout(layout),
m_hotkeys(hotkeys),
m_rank(rank)
{
m_engineInfo.insert ("name", m_name);
m_engineInfo.insert ("longname", m_longname);
m_engineInfo.insert ("description", m_description);
m_engineInfo.insert ("language", m_language);
m_engineInfo.insert ("license", m_license);
m_engineInfo.insert ("author", m_author);
m_engineInfo.insert ("icon", m_icon);
m_engineInfo.insert ("layout", m_layout);
m_engineInfo.insert ("hotkeys", m_hotkeys);
QString stringRank;
stringRank = stringRank.number (m_rank);
m_engineInfo.insert ("rank", stringRank);
}
virtual ~EngineDesc () {}
public :
virtual bool serialize (QDBusArgument & argument);
virtual bool deserialize (const QDBusArgument & argument);
void output (QString & output) const;
bool parseXmlNode (const QDomNode & node);
const QMap<QString, QString> & getEngineInfo () const
{
return m_engineInfo;
}
private :
QString m_name;
QString m_longname;
QString m_description;
QString m_language;
QString m_license;
QString m_author;
QString m_icon;
QString m_layout;
QString m_hotkeys;
uint m_rank;
QMap<QString, QString> m_engineInfo;
IBUS_SERIALIZABLE
};
};
#endif
|