From 84da08d7b7fcda12c85caeb5a10b4903770a6f69 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- noatun-plugins/lyrics/historymanager.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 noatun-plugins/lyrics/historymanager.h (limited to 'noatun-plugins/lyrics/historymanager.h') diff --git a/noatun-plugins/lyrics/historymanager.h b/noatun-plugins/lyrics/historymanager.h new file mode 100644 index 0000000..d2fdb29 --- /dev/null +++ b/noatun-plugins/lyrics/historymanager.h @@ -0,0 +1,28 @@ +#ifndef _HISTORY_MANAGER_H +#define _HISTORY_MANAGER_H + +#include +#include +#include + +class HistoryManager : public QObject { + Q_OBJECT + public: + HistoryManager(QObject *parent = NULL); + ~HistoryManager(); + KURL back(); + KURL forward(); + void addURL(const KURL &); + enum Buttons { + Back, + Forward + }; + signals: + void uiChanged(int, bool); + protected: + QValueStack back_stack; + QValueStack forward_stack; + KURL currentURL; +}; + +#endif -- cgit v1.2.1