Debian Codegraph @

plugins/aiksaurus/aiksaurusgtk3/AiksaurusGTK_histlist.h

raw
1 /*
2 * AiksaurusGTK - A GTK interface to the AikSaurus library
3 * Copyright (C) 2001 by Jared Davis
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) 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., 59 Temple Place - Suite 330, Boston, MA
18 * 02111-1307, USA.
19 */
20
21 #ifndef INCLUDED_JARED_GPL_AIKSAURUSGTK_HISTORYLIST_H
22 #define INCLUDED_JARED_GPL_AIKSAURUSGTK_HISTORYLIST_H
23
24 #include <glib.h>
25
26 class AiksaurusGTK_strlist;
27 class AiksaurusGTK_histlist
28 {
29 private:
30
31 AiksaurusGTK_strlist* d_list_ptr;
32 unsigned int d_maxElements;
33
34 // Prevent copying and assignment.
35 AiksaurusGTK_histlist(const AiksaurusGTK_histlist& rhs);
36 const AiksaurusGTK_histlist& operator=(const AiksaurusGTK_histlist& rhs);
37
38 public:
39
40 AiksaurusGTK_histlist(unsigned int maxElements);
41 ~AiksaurusGTK_histlist();
42
43 void addItem(const char* str);
44
45 const GList* list() const;
46
47 #ifndef NDEBUG
48 void debug();
49 #endif // NDEBUG
50 };
51
52
53 #endif // INCLUDED_JARED_GPL_AIKSAURUSGTK_HISTLIST_H