Switch to unified view

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.6 2006-04-12 10:41:39 dockes Exp $  (C) 2004 J.F.Dockes */
19
/* @(#$Id: idxthread.h,v 1.7 2008-01-17 11:15:43 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 indexing
25
// These two deal with starting / stopping the thread itself, not
26
// 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
extern DbIxStatus idxthread_idxStatus();
30
29
30
// Set these to to request action
31
extern int stopindexing;
31
extern int stopindexing;
32
extern int startindexing;
32
extern int startindexing;
33
extern int indexingdone;
33
34
// indexingstatus is NULL iff indexing is currently in progress.
34
enum IdxThreadStatus {IDXTS_NULL = 0, IDXTS_OK = 1, IDXTS_ERROR = 2};
35
enum IdxThreadStatus {IDXTS_NULL = 0, IDXTS_OK = 1, IDXTS_ERROR = 2};
35
extern IdxThreadStatus indexingstatus;
36
extern IdxThreadStatus indexingstatus;
37
// Final indexing status message
36
extern string indexingReason;
38
extern string indexingReason;
37
39
// Current status of running indexing (phase, file name etc.)
40
extern DbIxStatus idxthread_idxStatus();
41
// Did last op fail because of stop request ?
42
extern bool idxthread_idxInterrupted(); 
38
#endif /* _IDXTHREAD_H_INCLUDED_ */
43
#endif /* _IDXTHREAD_H_INCLUDED_ */