1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-23 02:32:10 +02:00
falkonOfficial/src/history/historymodel.h

39 lines
810 B
C
Raw Normal View History

2011-03-02 16:57:41 +01:00
#ifndef HISTORYMODEL_H
#define HISTORYMODEL_H
#if defined(QT_NO_DEBUG) & !defined(QT_NO_DEBUG_OUTPUT)
#define QT_NO_DEBUG_OUTPUT
#endif
#include "QtSql/QSqlDatabase"
#include "QSqlQuery"
#include "QDateTime"
#include "QFile"
class QupZilla;
class WebView;
class HistoryModel : public QObject
{
Q_OBJECT
public:
HistoryModel(QupZilla* mainClass, QObject* parent = 0);
int addHistoryEntry(WebView* view);
int addHistoryEntry(const QString &url, QString &title);
bool deleteHistoryEntry(int index);
bool deleteHistoryEntry(const QString &url, const QString &title);
bool clearHistory();
bool optimizeHistory();
bool isSaving();
void setSaving(bool state);
void loadSettings();
private:
bool m_isSaving;
QupZilla* p_QupZilla;
};
#endif // HISTORYMODEL_H