|
a/src/index/rclmon.h |
|
b/src/index/rclmon.h |
1 |
#ifndef _RCLMON_H_INCLUDED_
|
1 |
#ifndef _RCLMON_H_INCLUDED_
|
2 |
#define _RCLMON_H_INCLUDED_
|
2 |
#define _RCLMON_H_INCLUDED_
|
3 |
#include "autoconfig.h"
|
3 |
#include "autoconfig.h"
|
4 |
#ifdef RCL_MONITOR
|
4 |
#ifdef RCL_MONITOR
|
5 |
/* @(#$Id: rclmon.h,v 1.5 2006-10-24 14:28:38 dockes Exp $ (C) 2006 J.F.Dockes */
|
5 |
/* @(#$Id: rclmon.h,v 1.6 2006-10-25 10:52:02 dockes Exp $ (C) 2006 J.F.Dockes */
|
6 |
/**
|
6 |
/**
|
7 |
* Definitions for the real-time monitoring recoll.
|
7 |
* Definitions for the real-time monitoring recoll.
|
8 |
* We're interested in file modifications, deletions and renaming.
|
8 |
* We're interested in file modifications, deletions and renaming.
|
9 |
* We use two threads, one to receive events from the source, the
|
9 |
* We use two threads, one to receive events from the source, the
|
10 |
* other to perform adequate processing.
|
10 |
* other to perform adequate processing.
|
|
... |
|
... |
28 |
* Monitoring event: something changed in the filesystem
|
28 |
* Monitoring event: something changed in the filesystem
|
29 |
*/
|
29 |
*/
|
30 |
class RclMonEvent {
|
30 |
class RclMonEvent {
|
31 |
public:
|
31 |
public:
|
32 |
enum EvType {RCLEVT_NONE, RCLEVT_MODIFY, RCLEVT_DELETE,
|
32 |
enum EvType {RCLEVT_NONE, RCLEVT_MODIFY, RCLEVT_DELETE,
|
33 |
RCLEVT_DIRCREATE, RCLEVT_RENAME};
|
33 |
RCLEVT_DIRCREATE};
|
34 |
string m_path;
|
34 |
string m_path;
|
35 |
string m_opath;
|
35 |
string m_opath;
|
36 |
EvType m_etyp;
|
36 |
EvType m_etyp;
|
37 |
RclMonEvent() : m_etyp(RCLEVT_NONE) {}
|
37 |
RclMonEvent() : m_etyp(RCLEVT_NONE) {}
|
38 |
};
|
38 |
};
|