1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-22 18:22:10 +02:00
falkonOfficial/src/bookmarksimport/htmlimporter.h
nowrep 6ec593f436 Added option to import bookmarks form html. Closes #29
- also updated translations scripts
- updated translations
2011-12-08 21:52:03 +01:00

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