|
a/src/query/history.h |
|
b/src/query/history.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 _HISTORY_H_INCLUDED_
|
17 |
#ifndef _HISTORY_H_INCLUDED_
|
18 |
#define _HISTORY_H_INCLUDED_
|
18 |
#define _HISTORY_H_INCLUDED_
|
19 |
/* @(#$Id: history.h,v 1.4 2006-09-11 09:08:44 dockes Exp $ (C) 2004 J.F.Dockes */
|
19 |
/* @(#$Id: history.h,v 1.5 2006-09-11 12:05:39 dockes Exp $ (C) 2004 J.F.Dockes */
|
20 |
|
20 |
|
21 |
/**
|
21 |
/**
|
22 |
* Dynamic configuration storage
|
22 |
* Dynamic configuration storage
|
23 |
*
|
23 |
*
|
24 |
* The term "history" is a misnomer as this code is now used to save
|
24 |
* The term "history" is a misnomer as this code is now used to save
|
|
... |
|
... |
99 |
|
99 |
|
100 |
// Generic methods used for string lists, designated by the subkey value
|
100 |
// Generic methods used for string lists, designated by the subkey value
|
101 |
bool enterString(const string sk, const string value);
|
101 |
bool enterString(const string sk, const string value);
|
102 |
list<string> getStringList(const string sk);
|
102 |
list<string> getStringList(const string sk);
|
103 |
bool eraseAll(const string& sk);
|
103 |
bool eraseAll(const string& sk);
|
|
|
104 |
bool truncate(const string& sk, unsigned int n);
|
104 |
|
105 |
|
105 |
private:
|
106 |
private:
|
106 |
unsigned int m_mlen;
|
107 |
unsigned int m_mlen;
|
107 |
ConfSimple m_data;
|
108 |
ConfSimple m_data;
|
108 |
bool insertNew(const string& sk, HistoryEntry &n, HistoryEntry &s);
|
109 |
bool insertNew(const string& sk, HistoryEntry &n, HistoryEntry &s);
|