[project @ 2005-07-07 21:19:26 by unknown_lamer]
[clinton/bobotpp.git] / source / ShitList.H
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
17 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 // 02110-1301, USA.
19
20 #ifndef SHITLIST_H
21 #define SHITLIST_H
22
23 #include <list>
24 #include <ctime>
25
26 #include "String.H"
27 #include "ShitEntry.H"
28
29 class UserCommands;
30
31 class ShitList {
32 String listFileName;
33 std::list<ShitEntry *> l;
34
35 public:
36 ShitList(String);
37 ~ShitList();
38
39 void addShit(String, String, int, std::time_t, String);
40 void delShit(String, String);
41
42 ShitEntry * getShit(String, String);
43
44 void read();
45 void save();
46 void clear();
47
48 friend class UserCommands;
49 };
50
51 #endif