Revise HowtoTranslate, add gen-tr.sh
[nomnom.git] / src / Recent.h
blob8f87d88740a37164f606d97ab37d597657b63a14
1 /*
2 * Copyright (C) 2010 Toni Gundogdu.
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef nomnom_recent_h
19 #define nomnom_recent_h
21 #include <QStringList>
23 class Recent
25 public:
26 Recent ();
27 virtual ~Recent();
28 public:
29 void setMaxItems(const int);
30 public:
31 void write () const;
32 void read ();
33 void append(const QString&);
34 void clear ();
35 public:
36 QStringList toStringList () const;
37 public:
38 Recent& operator<< (const QString&);
39 private:
40 QStringList drops;
41 int maxItems;
44 #endif
46 // vim: set ts=2 sw=2 tw=72 expandtab: