Add gnulib gettext module for config.rpath
[clinton/bobotpp.git] / source / ShitList.H
CommitLineData
cb21075d 1// ShitList.H -*- C++ -*-
2// Copyright (c) 1997, 1998 Etienne BERNARD
3// Copyright (c) 2002 Clinton Ebadi
4
5// This program is free software; you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation; either version 2 of the License, or
8// any later version.
9
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14
15// You should have received a copy of the GNU General Public License
16// along with this program; if not, write to the Free Software
528799bd 17// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18// 02110-1301, USA.
cb21075d 19
20#ifndef SHITLIST_H
21#define SHITLIST_H
22
23#include <list>
cfa82921 24
cb21075d 25#include <ctime>
26
27#include "String.H"
cb21075d 28
cfa82921 29class ShitEntry;
cb21075d 30class UserCommands;
31
32class ShitList {
33 String listFileName;
34 std::list<ShitEntry *> l;
35
36public:
37 ShitList(String);
38 ~ShitList();
39
40 void addShit(String, String, int, std::time_t, String);
41 void delShit(String, String);
42
43 ShitEntry * getShit(String, String);
44
45 void read();
46 void save();
47 void clear();
48
49 friend class UserCommands;
50};
51
52#endif