X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fcontextmenuactionprovider.h;h=e7e8eb4926f63dc599182da64c7dc5bab7c93325;hp=eb512f6c0d8dc9610f262c45de3698f43f464e57;hb=e8a39b4c3c92e193ab861a3fea84a261bb6fbd24;hpb=1cb02004ee5973b89368bd84f234d4652794690d diff --git a/src/uisupport/contextmenuactionprovider.h b/src/uisupport/contextmenuactionprovider.h index eb512f6c..e7e8eb49 100644 --- a/src/uisupport/contextmenuactionprovider.h +++ b/src/uisupport/contextmenuactionprovider.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,18 +18,19 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef CONTEXTMENUACTIONPROVIDER_H -#define CONTEXTMENUACTIONPROVIDER_H +#pragma once + +#include "uisupport-export.h" #include "networkmodelcontroller.h" -class ContextMenuActionProvider : public NetworkModelController +class UISUPPORT_EXPORT ContextMenuActionProvider : public NetworkModelController { Q_OBJECT public: - ContextMenuActionProvider(QObject *parent = 0); - virtual ~ContextMenuActionProvider(); + ContextMenuActionProvider(QObject *parent = nullptr); + ~ContextMenuActionProvider() override; //! Provide a list of actions applying to the given item /** @@ -43,11 +44,11 @@ public: * @param slot The receiving slot name; should be "mySlot" rather than SLOT(mySlot(QAction *)) * @return A list of actions applying to the given item */ - void addActions(QMenu *, const QModelIndex &index, QObject *receiver = 0, const char *slot = 0, bool allowBufferHide = false); - void addActions(QMenu *, const QList &indexList, QObject *receiver = 0, const char *slot = 0, bool allowBufferHide = false); - void addActions(QMenu *, BufferId id, QObject *receiver = 0, const char *slot = 0); - void addActions(QMenu *, MessageFilter *filter, BufferId msgBuffer, QObject *receiver = 0, const char *slot = 0); - void addActions(QMenu *, MessageFilter *filter, BufferId msgBuffer, const QString &chanOrNick, QObject *receiver = 0, const char *slot = 0); + void addActions(QMenu *, const QModelIndex &index, QObject *receiver = nullptr, const char *slot = nullptr, bool allowBufferHide = false); + void addActions(QMenu *, const QList &indexList, QObject *receiver = nullptr, const char *slot = nullptr, bool allowBufferHide = false); + void addActions(QMenu *, BufferId id, QObject *receiver = nullptr, const char *slot = nullptr); + void addActions(QMenu *, MessageFilter *filter, BufferId msgBuffer, QObject *receiver = nullptr, const char *slot = nullptr); + void addActions(QMenu *, MessageFilter *filter, BufferId msgBuffer, const QString &chanOrNick, QObject *receiver = nullptr, const char *slot = nullptr); private: @@ -74,6 +75,3 @@ private: Action *_nickIgnoreMenuAction; QList _ignoreDescriptions; }; - - -#endif