mirror of
https://invent.kde.org/network/falkon.git
synced 2024-09-23 10:42:11 +02:00
32 lines
556 B
C
32 lines
556 B
C
|
#ifndef HTMLIMPORTER_H
|
||
|
#define HTMLIMPORTER_H
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QFile>
|
||
|
#include <QRegExp>
|
||
|
|
||
|
#include "bookmarksmodel.h"
|
||
|
|
||
|
class HtmlImporter : public QObject
|
||
|
{
|
||
|
public:
|
||
|
explicit HtmlImporter(QObject* parent = 0);
|
||
|
|
||
|
void setFile(const QString &path);
|
||
|
bool openFile();
|
||
|
|
||
|
QList<BookmarksModel::Bookmark> exportBookmarks();
|
||
|
|
||
|
bool error() { return m_error; }
|
||
|
QString errorString() { return m_errorString; }
|
||
|
|
||
|
private:
|
||
|
QString m_path;
|
||
|
QFile m_file;
|
||
|
|
||
|
bool m_error;
|
||
|
QString m_errorString;
|
||
|
};
|
||
|
|
||
|
#endif // HTMLIMPORTER_H
|