Switch to unified view

a/src/aspell/rclaspell.h b/src/aspell/rclaspell.h
1
#ifndef _RCLASPELL_H_INCLUDED_
1
#ifndef _RCLASPELL_H_INCLUDED_
2
#define _RCLASPELL_H_INCLUDED_
2
#define _RCLASPELL_H_INCLUDED_
3
/* @(#$Id: rclaspell.h,v 1.2 2006-10-09 16:37:08 dockes Exp $  (C) 2006 J.F.Dockes */
3
/* @(#$Id: rclaspell.h,v 1.3 2006-10-11 14:16:25 dockes Exp $  (C) 2006 J.F.Dockes */
4
5
/* autoconfig.h must be included before this file */
6
#ifdef RCL_USE_ASPELL
4
7
5
/**
8
/**
6
 * Aspell speller interface class.
9
 * Aspell speller interface class.
7
 *
10
 *
8
 * Aspell is used to let the user find about spelling variations that may 
11
 * Aspell is used to let the user find about spelling variations that may 
...
...
26
29
27
class AspellData;
30
class AspellData;
28
31
29
class Aspell {
32
class Aspell {
30
 public:
33
 public:
31
    Aspell(RclConfig *cnf, const string &lang) 
34
    Aspell(RclConfig *cnf)
32
    : m_conf(cnf), m_lang(lang), m_data(0) {};
35
    : m_config(cnf), m_data(0) {};
33
    ~Aspell();
36
    ~Aspell();
34
37
35
    /** Check health */
38
    /** Check health */
36
    bool ok();
39
    bool ok();
37
40
38
    /** Find the aspell command and shared library, init function pointers */
41
    /** Find the aspell command and shared library, init function pointers */
39
    bool init(const string &basedir, string &reason); 
42
    bool init(string &reason); 
40
43
41
    /**  Build dictionary out of index term list. This is done at the end
44
    /**  Build dictionary out of index term list. This is done at the end
42
     * of an indexing pass. */
45
     * of an indexing pass. */
43
    bool buildDict(Rcl::Db &db, string &reason);
46
    bool buildDict(Rcl::Db &db, string &reason);
44
47
...
...
46
    bool suggest(Rcl::Db &db, string &term, list<string> &suggestions, 
49
    bool suggest(Rcl::Db &db, string &term, list<string> &suggestions, 
47
         string &reason);
50
         string &reason);
48
51
49
 private:
52
 private:
50
    string dicPath();
53
    string dicPath();
51
    RclConfig  *m_conf;
54
    RclConfig  *m_config;
52
    string      m_lang;
55
    string      m_lang;
53
    AspellData *m_data;
56
    AspellData *m_data;
54
};
57
};
55
58
59
#endif /* RCL_USE_ASPELL */
56
#endif /* _RCLASPELL_H_INCLUDED_ */
60
#endif /* _RCLASPELL_H_INCLUDED_ */