2011-10-29 23:01:17 +02:00
|
|
|
#ifndef WEBHISTORYWRAPPER_H
|
|
|
|
#define WEBHISTORYWRAPPER_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QWebHistory>
|
|
|
|
|
|
|
|
|
|
|
|
class WebHistoryWrapper : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2011-11-06 17:01:23 +01:00
|
|
|
explicit WebHistoryWrapper(QObject* parent = 0);
|
2011-10-29 23:01:17 +02:00
|
|
|
|
|
|
|
static QList<QWebHistoryItem> forwardItems(int maxItems, QWebHistory* history);
|
|
|
|
static QList<QWebHistoryItem> backItems(int maxItems, QWebHistory* history);
|
|
|
|
|
|
|
|
static bool canGoForward(QWebHistory* history);
|
|
|
|
static bool canGoBack(QWebHistory* history);
|
|
|
|
|
|
|
|
static void goBack(QWebHistory* history);
|
|
|
|
static void goForward(QWebHistory* history);
|
|
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // WEBHISTORYWRAPPER_H
|