File indexing completed on 2024-04-21 16:30:15
0001 /* 0002 * SPDX-FileCopyrightText: 2014 Emmanuel Pescosta <emmanuelpescosta099@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef DOLPHIN_RECENT_TABS_MENU_H 0008 #define DOLPHIN_RECENT_TABS_MENU_H 0009 0010 #include <KActionMenu> 0011 0012 #include <QUrl> 0013 0014 class QAction; 0015 0016 class DolphinRecentTabsMenu : public KActionMenu 0017 { 0018 Q_OBJECT 0019 0020 public: 0021 explicit DolphinRecentTabsMenu(QObject *parent); 0022 0023 public Q_SLOTS: 0024 void rememberClosedTab(const QUrl &url, const QByteArray &state); 0025 void undoCloseTab(); 0026 0027 Q_SIGNALS: 0028 void restoreClosedTab(const QByteArray &state); 0029 void closedTabsCountChanged(unsigned int count); 0030 0031 private Q_SLOTS: 0032 void handleAction(QAction *action); 0033 0034 private: 0035 QAction *m_clearListAction; 0036 }; 0037 0038 #endif