1 // Copyright (C) 2003 Michael Bartl
2 // Copyright (C) 2003, 2005 Ulf Lorenz
3 // Copyright (C) 2007, 2008 Ben Asselstine
4 // Copyright (C) 2008 Ole Laursen
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU Library General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 #include "xmlhelper.h"
25 std::string FL_Counter::d_tag = "counter";
27 FL_Counter* fl_counter;
29 FL_Counter::FL_Counter(guint32 start)
34 FL_Counter::FL_Counter(XML_Helper* helper)
36 helper->getData(d_curID, "curID");
39 FL_Counter::~FL_Counter()
43 void FL_Counter::syncToId(guint32 id)
49 guint32 FL_Counter::getNextId()
51 guint32 ret = d_curID;
56 bool FL_Counter::save(XML_Helper* helper)
60 retval &= helper->openTag(FL_Counter::d_tag);
61 retval &= helper->saveData("curID", d_curID);
62 retval &= helper->closeTag();