|
a/src/qtgui/idxthread.h |
|
b/src/qtgui/idxthread.h |
|
... |
|
... |
14 |
* Free Software Foundation, Inc.,
|
14 |
* Free Software Foundation, Inc.,
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
*/
|
16 |
*/
|
17 |
#ifndef _IDXTHREAD_H_INCLUDED_
|
17 |
#ifndef _IDXTHREAD_H_INCLUDED_
|
18 |
#define _IDXTHREAD_H_INCLUDED_
|
18 |
#define _IDXTHREAD_H_INCLUDED_
|
19 |
/* @(#$Id: idxthread.h,v 1.7 2008-01-17 11:15:43 dockes Exp $ (C) 2004 J.F.Dockes */
|
19 |
/* @(#$Id: idxthread.h,v 1.8 2008-09-30 12:38:29 dockes Exp $ (C) 2004 J.F.Dockes */
|
20 |
#include <string>
|
20 |
#include <string>
|
21 |
#include "indexer.h"
|
21 |
#include "indexer.h"
|
22 |
|
22 |
|
23 |
class RclConfig;
|
23 |
class RclConfig;
|
24 |
|
24 |
|
25 |
// These two deal with starting / stopping the thread itself, not
|
25 |
// These two deal with starting / stopping the thread itself, not
|
26 |
// indexing sessions.
|
26 |
// indexing sessions.
|
27 |
extern void start_idxthread(const RclConfig& cnf);
|
27 |
extern void start_idxthread(const RclConfig& cnf);
|
28 |
extern void stop_idxthread();
|
28 |
extern void stop_idxthread();
|
29 |
|
29 |
|
30 |
// Set these to to request action
|
30 |
// Use these to to request action from thread
|
|
|
31 |
extern void start_indexing(bool rezero = false);
|
31 |
extern int stopindexing;
|
32 |
extern void stop_indexing();
|
32 |
extern int startindexing;
|
|
|
33 |
|
33 |
|
34 |
// indexingstatus is NULL iff indexing is currently in progress.
|
34 |
// Final status of indexing. indexingstatus is NULL iff indexing is
|
|
|
35 |
// currently in progress.
|
35 |
enum IdxThreadStatus {IDXTS_NULL = 0, IDXTS_OK = 1, IDXTS_ERROR = 2};
|
36 |
enum IdxThreadStatus {IDXTS_NULL = 0, IDXTS_OK = 1, IDXTS_ERROR = 2};
|
36 |
extern IdxThreadStatus indexingstatus;
|
37 |
extern IdxThreadStatus idxthread_getStatus();
|
37 |
// Final indexing status message
|
|
|
38 |
extern string indexingReason;
|
38 |
extern string idxthread_getReason();
|
|
|
39 |
|
39 |
// Current status of running indexing (phase, file name etc.)
|
40 |
// Current status of running indexing (phase, file name etc.)
|
40 |
extern DbIxStatus idxthread_idxStatus();
|
41 |
extern DbIxStatus idxthread_idxStatus();
|
41 |
// Did last op fail because of stop request ?
|
42 |
// Did last op fail because of stop request ?
|
42 |
extern bool idxthread_idxInterrupted();
|
43 |
extern bool idxthread_idxInterrupted();
|
43 |
#endif /* _IDXTHREAD_H_INCLUDED_ */
|
44 |
#endif /* _IDXTHREAD_H_INCLUDED_ */
|