/usr/include/ibus-qt/qibusinputcontext.h is in libibus-qt-dev 1.3.3-1build2.
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 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | #ifndef __Q_IBUS_INPUT_CONTEXT_H_
#define __Q_IBUS_INPUT_CONTEXT_H_
#include "qibusbus.h"
#include "qibustext.h"
#include "qibusproperty.h"
#include "qibusproplist.h"
#include "qibuslookuptable.h"
class IBusInputContextProxy;
namespace IBus {
class Bus;
typedef Pointer<Bus> BusPointer;
class InputContext;
typedef Pointer<InputContext> InputContextPointer;
class InputContext : public Object
{
Q_OBJECT;
public:
InputContext (const BusPointer &bus, const QString &path);
~InputContext (void);
void reset (void);
void destroy (void);
void enable (void);
void disable (void);
void focusIn (void);
void focusOut (void);
void getEngine (void);
bool isEnabled (void);
bool processKeyEvent (uint keyval, uint keycode, uint state);
void setCapabilities (uint caps);
void setCursorLocation (int x, int y, int w, int h);
void setEngine (const QString &name);
void setSurroundingText (const TextPointer &text, uint cursor_pos, uint anchor_pos);
public:
static InputContextPointer create (const BusPointer &bus, const QString &name);
Q_SIGNALS:
void commitText (const TextPointer &text);
void updatePreeditText (const TextPointer &text, uint cursor_pos, bool visible);
void showPreeditText (void);
void hidePreeditText (void);
void updateAuxiliaryText (const TextPointer &text, bool visible);
void showAuxiliaryText (void);
void hideAuxiliaryText (void);
void updateLookupTable (const LookupTablePointer &table, bool visible);
void showLookupTable (void);
void hideLookupTable (void);
void cursorUpLookupTable (void);
void cursorDownLookupTable (void);
void pageUpLookupTable (void);
void pageDownLookupTable (void);
void registerProperties (const PropListPointer &props);
void updateProperty (const PropertyPointer &property);
void enabled (void);
void disabled (void);
void forwardKeyEvent (uint keyval, uint keycode, uint state);
void deleteSurroundingText (int offset, uint nchars);
void requireSurroundingText (void);
private Q_SLOTS:
void slotCommitText (const QDBusVariant &text);
void slotUpdatePreeditText(const QDBusVariant &text, uint cursor_pos, bool visible);
void slotHidePreeditText();
void slotShowPreeditText();
void slotUpdateAuxiliaryText(const QDBusVariant &text, bool visible);
void slotShowAuxiliaryText();
void slotHideAuxiliaryText();
void slotUpdateLookupTable(const QDBusVariant &table, bool visible);
void slotShowLookupTable();
void slotHideLookupTable();
void slotCursorUpLookupTable();
void slotCursorDownLookupTable();
void slotPageUpLookupTable();
void slotPageDownLookupTable();
void slotRegisterProperties(const QDBusVariant &props);
void slotUpdateProperty(const QDBusVariant &prop);
void slotEnabled();
void slotDisabled();
void slotForwardKeyEvent(uint keyval, uint keycode, uint state);
void slotDeleteSurroundingText(int offset, uint nchars);
void slotRequireSurroundingText();
/*
signals:
void disconnected (void);
void connected (void);
private slots:
void slotAddressChanged (const QString &path);
void slotIBusDisconnected (void);
*/
private:
BusPointer m_bus;
IBusInputContextProxy *m_context;
};
};
#endif
|