1 /* 2 * %kadu copyright begin% 3 * Copyright 2014 Bartosz Brachaczek (b.brachaczek@gmail.com) 4 * Copyright 2011 Rafał Przemysław Malinowski (rafal.przemyslaw.malinowski@gmail.com) 5 * %kadu copyright end% 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as 9 * published by the Free Software Foundation; either version 2 of 10 * the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 21 #pragma once 22 23 #include "gui/actions/action-description.h" 24 25 #include <injeqt/injeqt.h> 26 27 class ChatWidgetRepository; 28 class IconsManager; 29 30 class LeaveChatAction : public ActionDescription 31 { 32 Q_OBJECT 33 34 public: 35 explicit LeaveChatAction(QObject *parent); 36 virtual ~LeaveChatAction(); 37 38 protected: 39 virtual void triggered(QWidget *widget, ActionContext *context, bool toggled); 40 41 private: 42 QPointer<ChatWidgetRepository> m_chatWidgetRepository; 43 QPointer<IconsManager> m_iconsManager; 44 45 private slots: 46 INJEQT_SET void setChatWidgetRepository(ChatWidgetRepository *chatWidgetRepository); 47 INJEQT_SET void setIconsManager(IconsManager *iconsManager); 48 49 }; 50