Switch to unified view

a/src/rcldb/searchdata.h b/src/rcldb/searchdata.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 _SEARCHDATA_H_INCLUDED_
17
#ifndef _SEARCHDATA_H_INCLUDED_
18
#define _SEARCHDATA_H_INCLUDED_
18
#define _SEARCHDATA_H_INCLUDED_
19
/* @(#$Id: searchdata.h,v 1.6 2006-11-17 10:06:34 dockes Exp $  (C) 2004 J.F.Dockes */
19
/* @(#$Id: searchdata.h,v 1.7 2006-12-05 15:17:13 dockes Exp $  (C) 2004 J.F.Dockes */
20
20
21
/** 
21
/** 
22
 * Structures to hold data coming almost directly from the gui
22
 * Structures to hold data coming almost directly from the gui
23
 * search fields and handle its translation to Xapian queries. 
23
 * search fields and handle its translation to Xapian queries. 
24
 * This is not generic code, it reflects the choices made for the user 
24
 * This is not generic code, it reflects the choices made for the user 
...
...
86
    string getDescription() {return m_description;}
86
    string getDescription() {return m_description;}
87
    void setDescription(const string& d) {m_description = d;}
87
    void setDescription(const string& d) {m_description = d;}
88
    string getTopdir() {return m_topdir;}
88
    string getTopdir() {return m_topdir;}
89
    void setTopdir(const string& t) {m_topdir = t;}
89
    void setTopdir(const string& t) {m_topdir = t;}
90
    void addFiletype(const string& ft) {m_filetypes.push_back(ft);}
90
    void addFiletype(const string& ft) {m_filetypes.push_back(ft);}
91
    int  clauseCount() {return m_query.size();}
92
91
private:
93
private:
92
    SClType                    m_tp; // Only SCLT_AND or SCLT_OR here
94
    SClType                    m_tp; // Only SCLT_AND or SCLT_OR here
93
    vector<SearchDataClause *> m_query;
95
    vector<SearchDataClause *> m_query;
94
    vector<string>             m_filetypes; // Restrict to filetypes if set.
96
    vector<string>             m_filetypes; // Restrict to filetypes if set.
95
    string                     m_topdir; // Restrict to subtree.
97
    string                     m_topdir; // Restrict to subtree.