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>
25 #include <KConfigGroup>
26 class BookmarksProtocol
: public KIO::SlaveBase
29 BookmarksProtocol( const QByteArray
&pool
, const QByteArray
&app
);
32 void get( const KUrl
& url
);
39 KBookmarkManager
* manager
;
44 void flattenTree( const KBookmarkGroup
&folder
);
45 int sizeOfGroup(const KBookmarkGroup
&folder
, bool real
= false);
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
);
53 void echoHead(const QString
&redirect
= QString());
55 void echoBookmark( const KBookmark
&bm
);
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());