File indexing completed on 2024-09-08 12:13:24
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_P_H 0009 #define KBOOKMARKIMPORTER_OPERA_P_H 0010 0011 /** 0012 * A class for importing Opera bookmarks 0013 * @internal 0014 */ 0015 class KOperaBookmarkImporter : public QObject 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit KOperaBookmarkImporter(const QString &fileName) 0020 : m_fileName(fileName) 0021 { 0022 } 0023 ~KOperaBookmarkImporter() override 0024 { 0025 } 0026 0027 void parseOperaBookmarks(); 0028 0029 // Usual place for Opera bookmarks 0030 static QString operaBookmarksFile(); 0031 0032 Q_SIGNALS: 0033 void newBookmark(const QString &text, const QString &url, const QString &additionalInfo); 0034 void newFolder(const QString &text, bool open, const QString &additionalInfo); 0035 void newSeparator(); 0036 void endFolder(); 0037 0038 protected: 0039 QString m_fileName; 0040 }; 0041 0042 #endif /* KBOOKMARKIMPORTER_OPERA_P_H */