From 4cf785c4798c5a3b83711d8a54cb2ae1bb09b824 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sun, 31 Jan 2010 21:06:30 +0100 Subject: [PATCH 1/1] Kill plugin.h Probably the oldest surviving piece of code in Quassel. Was never used, I merely started to work on a plugin interface back in 2006 that never saw the light of day. Removing this because it confuses potential contributors and we really don't need to keep stale code around. --- src/plugins/plugin.h | 116 ------------------------------------------- 1 file changed, 116 deletions(-) delete mode 100644 src/plugins/plugin.h diff --git a/src/plugins/plugin.h b/src/plugins/plugin.h deleted file mode 100644 index cea5e547..00000000 --- a/src/plugins/plugin.h +++ /dev/null @@ -1,116 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2005/06 by the Quassel Project * - * devel@quassel-irc.org * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) version 3. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ - -#ifndef _PLUGIN_H_ -#define _PLUGIN_H_ - -// TODO disable GUI-related stuff for core-only compile - -#include -#include - -/** \file plugin.h - * Header that needs to be included by all plugins and defines the interfaces a plugin - * can implement. - */ - -/// The base class for the generic plugin interfaces. -class PluginInterface { - - -}; - - -/// All GUI plugins need to implement this interface. -class GuiPluginInterface : public PluginInterface { - - -}; - -Q_DECLARE_INTERFACE(GuiPluginInterface, - "eu.quassel.plugins.GuiPluginInterface/1.0"); - -/// All core plugins need to implement this interface. -class CorePluginInterface: public PluginInterface { - - - -}; - -Q_DECLARE_INTERFACE(CorePluginInterface, - "eu.quassel.plugins.CorePluginInterface/1.0"); - -/** Plugins implementing this interface can provide a settings widget that will be shown in - * the application's settings dialog. - * This is also used by built-in settings dialogs. - */ -/* -class SettingsInterface { - public: - virtual ~SettingsInterface() {}; - virtual QString category() = 0; - virtual QString title() = 0; - virtual QWidget *settingsWidget() = 0; - virtual void applyChanges() = 0; - -}; - -Q_DECLARE_INTERFACE(SettingsInterface, - "eu.quassel.plugins.SettingsInterface/1.0"); -*/ - -/** Plugins implementing this interface will be provided with the raw text the users enters. - * The output they generate is in turn treated like generic user input. Note that the order in - * which plugins are called is not defined. - */ -class UserInputFilterInterface { - - - -}; - -Q_DECLARE_INTERFACE(UserInputFilterInterface, - "eu.quassel.plugins.UserInputFilterInterface/1.0"); - -/** Plugins implementing this interface receive and can process all messages coming from the core. - */ -class CoreMessageFilterInterface { - - - -}; - -Q_DECLARE_INTERFACE(CoreMessageFilterInterface, - "eu.quassel.plugins.CoreMessageFilterInterface/1.0"); - -/** Plugins implementing this interface receive core messages for a single buffer only. - * Any ChatWidgetPlugin has to provide a widget it outputs these messages to, to be used - * in a ChannelWidget. - */ -class ChatWidgetInterface { - - - -}; - -Q_DECLARE_INTERFACE(ChatWidgetInterface, - "eu.quassel.plugins.ChatWidgetInterface/1.0"); - -#endif -- 2.20.1