2 * This file is a part of QComicBook.
4 * Copyright (C) 2005-2006 Pawel Stolowski <yogin@linux.bydg.org>
6 * QComicBook is free software; you can redestribute it and/or modify it
7 * under terms of GNU General Public License by Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY. See GPL for more details.
13 /*! \file bookmarks.h */
19 #include <qvaluelist.h>
31 QPtrList<Bookmark> blist; //!<pointers to bookmark objects
32 QMap<int, Bookmark *> bmap; //!<for fast id->bookmark lookup
33 QPopupMenu *bmenu; //!<popup menu containing bookmarks
34 bool changed; //!<flag indicator to decide if bookmarks should be saved
35 QString fname; //!<bookmarks file
38 Bookmarks(QPopupMenu *menu);
43 void set(const QString &cbname, int page);
44 bool remove(const QString &cbname);
46 bool get(int id, Bookmark &b);
47 QValueList<Bookmark> get();
48 bool exists(const QString &cbname);