/usr/include/ibus-qt/qibusobservedpath.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 | #ifndef _Q_IBUS_OBSERVED_PATH_H_
#define _Q_IBUS_OBSERVED_PATH_H_
#include <QDir>
#include <QDebug>
#include <QDateTime>
#include <QXmlStreamWriter>
#include <QtXml/QDomNode>
#include "qibusserializable.h"
namespace IBus {
class ObservedPath;
typedef Pointer<ObservedPath> ObservedPathPointer;
class ObservedPath : public Serializable
{
Q_OBJECT;
public:
ObservedPath () {}
ObservedPath (QString path): m_path(path) {}
~ObservedPath () {}
public:
virtual bool serialize (QDBusArgument &argument);
virtual bool deserialize (const QDBusArgument &argument);
public:
bool parseXmlNode (const QDomNode & node);
const QString & path() const { return m_path; }
int mtime() const { return m_mtime; }
#if 0
bool isObservedPathModified () const;
void setObservedPathStat ();
void traverseObservedPath (QVector<ObservedPathPointer> & observedPathVec) const;
bool isRegularFile() const
{
QFileInfo fi(m_path);
return fi.isFile();
}
bool isDirFile() const
{
QFileInfo fi(m_path);
return fi.isDir();
}
#endif
private:
QString m_path;
uint m_mtime;
bool m_isDir;
bool m_isExist;
IBUS_SERIALIZABLE
};
};
#endif
|