File indexing completed on 2024-04-21 14:53:28

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 2002 Alexander Kellett <lypanov@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-only
0006 */
0007 
0008 #ifndef __kbookmarkimporter_opera_h
0009 #define __kbookmarkimporter_opera_h
0010 
0011 #include <kbookmarkexporter.h>
0012 #include <kbookmarkimporter.h>
0013 
0014 /**
0015  * A class for importing Opera bookmarks
0016  */
0017 class KBOOKMARKS_EXPORT KOperaBookmarkImporterImpl : public KBookmarkImporterBase
0018 {
0019     Q_OBJECT // For QObject::tr
0020         public : KOperaBookmarkImporterImpl()
0021     {
0022     }
0023     void parse() override;
0024     QString findDefaultLocation(bool forSaving = false) const override;
0025 
0026 private:
0027     class KOperaBookmarkImporterImplPrivate *d;
0028 };
0029 
0030 class KBOOKMARKS_EXPORT KOperaBookmarkExporterImpl : public KBookmarkExporterBase
0031 {
0032 public:
0033     KOperaBookmarkExporterImpl(KBookmarkManager *mgr, const QString &filename)
0034         : KBookmarkExporterBase(mgr, filename)
0035     {
0036         ;
0037     }
0038     ~KOperaBookmarkExporterImpl() override
0039     {
0040     }
0041     void write(const KBookmarkGroup &parent) override;
0042 
0043 private:
0044     class KOperaBookmarkExporterImplPrivate *d;
0045 };
0046 
0047 #endif