Import of original sources
[qcomicbook-oblomov] / src / history.h
1 /*
2  * This file is a part of QComicBook.
3  *
4  * Copyright (C) 2005-2006 Pawel Stolowski <yogin@linux.bydg.org>
5  *
6  * QComicBook is free software; you can redestribute it and/or modify it
7  * under terms of GNU General Public License by Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY. See GPL for more details.
11  */
12
13 #ifndef __HISTORY_H
14 #define __HISTORY_H
15
16 #include <qstringlist.h>
17
18 namespace Utility
19 {
20         class History
21         {
22                 private:
23                         QStringList hlist;
24                         QString key;
25                         int size;
26                 public:
27                         History(const QStringList &l, int max = 10);
28                         History(int max = 10);
29                         virtual ~History();
30                         void remove(const QString &txt);
31                         void append(const QString &txt);
32                         void set(const QStringList &l);
33                         QString first();
34                         QStringList getAll() const;
35         };
36 }
37
38 #endif
39