add more spacing
[personal-kdebase.git] / runtime / kioslave / bookmarks / kio_bookmarks.h
blobc5a5cc3108cfa64e5b5e2c6d9713544d300c90eb
1 /*
2 Copyright (C) 2008 Xavier Vello <xavier.vello@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
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.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 #ifndef KIO_BOOKMARKS_H
19 #define KIO_BOOKMARKS_H
21 #include <kio/slavebase.h>
22 #include <kbookmarkmanager.h>
23 #include <kpixmapcache.h>
24 #include <kconfig.h>
25 #include <KConfigGroup>
26 class BookmarksProtocol : public KIO::SlaveBase
28 public:
29 BookmarksProtocol( const QByteArray &pool, const QByteArray &app );
30 ~BookmarksProtocol();
32 void get( const KUrl& url );
34 private:
35 int columns;
36 int indent;
37 int totalsize;
38 KPixmapCache* cache;
39 KBookmarkManager* manager;
40 KConfig* cfg;
41 KConfigGroup config;
42 KBookmarkGroup tree;
43 void parseTree();
44 void flattenTree( const KBookmarkGroup &folder );
45 int sizeOfGroup(const KBookmarkGroup &folder, bool real = false);
46 int addPlaces();
48 // Defined in kde_bookmarks_html.cpp
49 void echo( const QString &string );
50 QString htmlColor(const QColor &col);
51 QString htmlColor(const QBrush &brush);
52 void echoIndex();
53 void echoHead(const QString &redirect = QString());
54 void echoStyle();
55 void echoBookmark( const KBookmark &bm);
56 void echoSeparator();
57 void echoFolder( const KBookmarkGroup &folder );
59 // Defined in kde_bookmarks_pixmap.cpp
60 void echoPixmap( const QPixmap &pixmap );
61 void echoImage( const QString &type, const QString &string, const QString &sizestring = QString());
64 #endif