32 #ifndef ARNMONITOR_HPP 33 #define ARNMONITOR_HPP 38 #include <QStringList> 42 class ArnMonitorPrivate;
71 explicit ArnMonitor( QObject* parent = arnNullptr);
78 ArnMonitor(
const QString& path, QObject* parent = arnNullptr);
90 void setClient(
const QString&
id);
96 QString clientId()
const;
113 void setMonitorPath(
const QString& path,
ArnClient* client = arnNullptr);
122 bool start(
const QString& path,
ArnClient* client);
130 bool start(
const QString& path);
136 QString monitorPath()
const;
165 void monitorClosed();
173 void arnItemCreated(
const QString& path);
188 void arnChildFound(
const QString& path);
201 void arnChildFoundFolder(
const QString& path);
213 void arnChildFoundLeaf(
const QString& path);
221 void arnItemDeleted(
const QString& path);
235 void arnChildDeleted(
const QString& path);
243 void arnItemModeChanged(
const QString& path,
int mode);
255 void arnChildModeChanged(
const QString& path,
int mode);
266 void foundChildDeleted(
const QString& path);
270 virtual QString outPathConvert(
const QString& path);
271 virtual QString inPathConvert(
const QString& path);
273 virtual void customEvent( QEvent* ev);
275 QString toLocalPath(
const QString& remotePath)
const;
277 ArnMonitor( ArnMonitorPrivate& dd, QObject* parent);
278 ArnMonitorPrivate*
const d_ptr;
282 void dispatchArnMonEvent(
int type,
const QByteArray& data,
bool isLocal);
283 void sendArnMonEvent(
int type,
const QByteArray& data = QByteArray());
284 void setupLocalMonitorItem();
288 void doEventItemFoundCreated(
int type,
const QByteArray& data,
bool isLocal);
289 void doEventItemDeleted(
const QByteArray& data,
bool isLocal);
290 void doEventItemModeChg(
const QByteArray& data,
bool isLocal);
294 #endif // ARNMONITOR_HPP void setReference(void *reference)
Set an associated external reference.
void * reference() const
Get the stored external reference.
Class for connecting to an Arn Server.
Base class handle for an Arn Data Object.
#define ARNLIBSHARED_EXPORT
A client remote monitor to detect changes at server.