/usr/include/ibus-qt/qibustext.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 | #ifndef __Q_IBUS_TEXT_H_
#define __Q_IBUS_TEXT_H_
#include "qibusserializable.h"
#include "qibusattribute.h"
#include "qibusattrlist.h"
namespace IBus {
class Text;
typedef Pointer<Text> TextPointer;
class Text : public Serializable
{
Q_OBJECT;
protected:
public:
Text () {}
Text (const QString &text) : m_text (text), m_attrs(0) {}
Text (const QChar &ch) : m_text (ch), m_attrs(0) {}
public:
virtual bool serialize (QDBusArgument &argument);
virtual bool deserialize (const QDBusArgument &argument);
const QString &text (void) const { return m_text; }
const AttrListPointer &attrs (void) const { return m_attrs; }
const uint getLength (void) const { return m_text.length(); }
void appendAttribute (uint type, uint value, uint startIndex, int endIndex);
private:
QString m_text;
AttrListPointer m_attrs;
IBUS_SERIALIZABLE
};
};
#endif
|