1 | // -*- c-basic-offset:4; indent-tabs-mode:nil -*- |
2 | // vim: set ts=4 sts=4 sw=4 et: |
3 | /* This file is part of the KDE libraries |
4 | Copyright (C) 1996-1998 Martin R. Jones <mjones@kde.org> |
5 | Copyright (C) 2000 David Faure <faure@kde.org> |
6 | Copyright (C) 2003 Alexander Kellett <lypanov@kde.org> |
7 | |
8 | This library is free software; you can redistribute it and/or |
9 | modify it under the terms of the GNU Library General Public |
10 | License version 2 as published by the Free Software Foundation. |
11 | |
12 | This library is distributed in the hope that it will be useful, |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 | Library General Public License for more details. |
16 | |
17 | You should have received a copy of the GNU Library General Public License |
18 | along with this library; see the file COPYING.LIB. If not, write to |
19 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
20 | Boston, MA 02110-1301, USA. |
21 | */ |
22 | |
23 | #ifndef __kbookmarkexporter_h |
24 | #define __kbookmarkexporter_h |
25 | |
26 | #include <QtCore/QTextIStream> |
27 | #include <kbookmark.h> |
28 | |
29 | class KIO_EXPORT KBookmarkExporterBase |
30 | { |
31 | public: |
32 | KBookmarkExporterBase(KBookmarkManager* mgr, const QString & fileName) |
33 | : m_fileName(fileName), m_pManager(mgr) |
34 | {} |
35 | virtual ~KBookmarkExporterBase() {} |
36 | virtual void write(const KBookmarkGroup&) = 0; |
37 | protected: |
38 | QString m_fileName; |
39 | KBookmarkManager* m_pManager; |
40 | private: |
41 | class KBookmarkExporterBasePrivate *d; |
42 | }; |
43 | |
44 | #endif |
45 | |