Release 0.4.3-3maemo with patches to disable menus/actions, add ScrollArea and fix...
[keepassx] / src / lib / bookmarks.h
1 /***************************************************************************
2  *   Copyright (C) 2007 by Tarek Saidi                                     *
3  *   tarek.saidi@arcor.de                                                  *
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; version 2 of the License.               *
8  *                                                                         *
9  *   This program is distributed in the hope that it will be useful,       *
10  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12  *   GNU General Public License for more details.                          *
13  *                                                                         *
14  *   You should have received a copy of the GNU General Public License     *
15  *   along with this program; if not, write to the                         *
16  *   Free Software Foundation, Inc.,                                       *
17  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18  ***************************************************************************/
19 #ifndef _BOOKMARKS_H_
20 #define _BOOKMARKS_H_
21
22 class KpxBookmarks {    
23         public:
24                 static void load();
25                 static int add(const QString& Title,const QString& Path);
26                 static void remove(int id);
27                 static void edit(const QString& Title,const QString& Path, int Index);
28                 static int count();
29                 static void resort(QList<int> order);
30                 static QString title(int Index);
31                 static QString path(int Index);
32         private:
33                 static void save();
34                 class BookmarkEntry {
35                         public:
36                                 QString Title;
37                                 QString Path;
38                                 int Index;              
39                 };
40                 static QList<BookmarkEntry> Bookmarks;
41                 static QString filename;
42
43 };
44
45
46 #endif