mirror of
https://invent.kde.org/network/falkon.git
synced 2024-09-22 18:22:10 +02:00
6ec593f436
- also updated translations scripts - updated translations
37 lines
594 B
C++
37 lines
594 B
C++
#ifndef HTMLIMPORTER_H
|
|
#define HTMLIMPORTER_H
|
|
|
|
#include <QObject>
|
|
#include <QFile>
|
|
#include <QRegExp>
|
|
|
|
#include "bookmarksmodel.h"
|
|
|
|
class HtmlImporter : public QObject
|
|
{
|
|
Q_OBJECT
|
|
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; }
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
|
|
private:
|
|
QString m_path;
|
|
QFile m_file;
|
|
|
|
bool m_error;
|
|
QString m_errorString;
|
|
};
|
|
|
|
#endif // HTMLIMPORTER_H
|