/* This file is part of the KDE project SPDX-FileCopyrightText: 1998, 1999 Torben Weis SPDX-FileCopyrightText: 2006 Daniel Teske SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef KBOOKMARKACTION_H #define KBOOKMARKACTION_H #include "kbookmarkactioninterface.h" #include class KBookmark; class KBookmarkOwner; /** * @class KBookmarkAction kbookmarkaction.h KBookmarkAction * * This class is a QAction for bookmarks. * It provides a nice constructor. * And on triggered uses the owner to open the bookmark. */ class KBOOKMARKS_EXPORT KBookmarkAction : public QAction, public KBookmarkActionInterface { Q_OBJECT public: KBookmarkAction(const KBookmark &bk, KBookmarkOwner *owner, QObject *parent); ~KBookmarkAction() override; public Q_SLOTS: void slotSelected(Qt::MouseButtons mb, Qt::KeyboardModifiers km); private Q_SLOTS: KBOOKMARKS_NO_EXPORT void slotTriggered(); private: KBookmarkOwner *const m_pOwner; }; #endif