|
a/src/qtgui/idxthread.h |
|
b/src/qtgui/idxthread.h |
|
... |
|
... |
16 |
*/
|
16 |
*/
|
17 |
#ifndef _IDXTHREAD_H_INCLUDED_
|
17 |
#ifndef _IDXTHREAD_H_INCLUDED_
|
18 |
#define _IDXTHREAD_H_INCLUDED_
|
18 |
#define _IDXTHREAD_H_INCLUDED_
|
19 |
#include <string>
|
19 |
#include <string>
|
20 |
#include "indexer.h"
|
20 |
#include "indexer.h"
|
|
|
21 |
#include "rcldoc.h"
|
21 |
|
22 |
|
22 |
// These two deal with starting / stopping the thread itself, not
|
23 |
// These two deal with starting / stopping the thread itself, not
|
23 |
// indexing sessions.
|
24 |
// indexing sessions.
|
24 |
// cnf will be cloned each time we start an indexing pass. The pointer must
|
25 |
// cnf will be cloned each time we start an indexing pass. The pointer must
|
25 |
// stay valid for the whole program duration.
|
26 |
// stay valid for the whole program duration.
|
26 |
extern void start_idxthread();
|
27 |
extern void start_idxthread();
|
27 |
extern void stop_idxthread();
|
28 |
extern void stop_idxthread();
|
28 |
|
29 |
|
29 |
// Use these to to request action from thread
|
30 |
// Use these to to request action from thread
|
30 |
extern void start_indexing(bool rezero = false);
|
31 |
extern void start_indexing(bool rezero = false,
|
|
|
32 |
const vector<Rcl::Doc> docs = vector<Rcl::Doc>());
|
31 |
extern void stop_indexing();
|
33 |
extern void stop_indexing();
|
32 |
|
34 |
|
33 |
// Final status of indexing. indexingstatus is NULL iff indexing is
|
35 |
// Final status of indexing. indexingstatus is NULL iff indexing is
|
34 |
// currently in progress.
|
36 |
// currently in progress.
|
35 |
enum IdxThreadStatus {IDXTS_NULL = 0, IDXTS_OK = 1, IDXTS_ERROR = 2};
|
37 |
enum IdxThreadStatus {IDXTS_NULL = 0, IDXTS_OK = 1, IDXTS_ERROR = 2};
|