1/* This file is part of the KDE libraries
2 Copyright (C) 2002 Alexander Kellett <lypanov@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
17*/
18
19#ifndef __kbookmarkimporter_opera_h
20#define __kbookmarkimporter_opera_h
21
22#include <QtCore/QStringList>
23
24#include <kbookmarkimporter.h>
25#include <kbookmarkexporter.h>
26
27/**
28 * A class for importing Opera bookmarks
29 */
30class KIO_EXPORT KOperaBookmarkImporterImpl : public KBookmarkImporterBase
31{
32public:
33 KOperaBookmarkImporterImpl() { }
34 virtual void parse();
35 virtual QString findDefaultLocation(bool forSaving = false) const;
36private:
37 class KOperaBookmarkImporterImplPrivate *d;
38};
39
40class KIO_EXPORT KOperaBookmarkExporterImpl : public KBookmarkExporterBase
41{
42public:
43 KOperaBookmarkExporterImpl(KBookmarkManager* mgr, const QString & filename)
44 : KBookmarkExporterBase(mgr, filename)
45 { ; }
46 virtual ~KOperaBookmarkExporterImpl() {}
47 virtual void write(const KBookmarkGroup &parent);
48private:
49 class KOperaBookmarkExporterImplPrivate *d;
50};
51
52#endif
53