add more spacing
[personal-kdebase.git] / apps / keditbookmarks / exporters.h
blobe7e5fa99232849f9619cd71525e188a485e25b17
1 /* This file is part of the KDE project
2 Copyright (C) 2003 Alexander Kellett <lypanov@kde.org>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License as
6 published by the Free Software Foundation; either version 2 of
7 the License, or (at your option) version 3.
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, see <http://www.gnu.org/licenses/>
18 #ifndef __exporters_h
19 #define __exporters_h
21 #include <kbookmark.h>
22 //Added by qt3to4:
23 #include <QtCore/QTextStream>
25 class HTMLExporter : private KBookmarkGroupTraverser {
26 public:
27 HTMLExporter();
28 virtual ~HTMLExporter(){}
29 QString toString(const KBookmarkGroup &, bool showAddress = false);
30 void write(const KBookmarkGroup &, const QString &, bool showAddress = false);
31 private:
32 virtual void visit(const KBookmark &);
33 virtual void visitEnter(const KBookmarkGroup &);
34 virtual void visitLeave(const KBookmarkGroup &);
35 private:
36 QString m_string;
37 QTextStream m_out;
38 bool m_showAddress;
41 #endif