mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- plugin-code: cleanup from many unused code; ...
* remove intergration conversion because we can use the integer as it is * update headers Do we need /src/plugin.h anymore? Maybe this code could be merged into src/gui/plugins.h. Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -4,29 +4,20 @@
|
||||
Copyright (C) 2001 Steffen Hehn 'McClean'
|
||||
Homepage: http://dbox.cyberphoria.org/
|
||||
|
||||
Kommentar:
|
||||
|
||||
Diese GUI wurde von Grund auf neu programmiert und sollte nun vom
|
||||
Aufbau und auch den Ausbaumoeglichkeiten gut aussehen. Neutrino basiert
|
||||
auf der Client-Server Idee, diese GUI ist also von der direkten DBox-
|
||||
Steuerung getrennt. Diese wird dann von Daemons uebernommen.
|
||||
|
||||
|
||||
License: GPL
|
||||
|
||||
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) any later version.
|
||||
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) any later version.
|
||||
|
||||
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.
|
||||
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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __plugins__
|
||||
@@ -42,33 +33,19 @@
|
||||
class CFrameBuffer;
|
||||
class CPlugins
|
||||
{
|
||||
|
||||
public:
|
||||
typedef enum p_type
|
||||
{
|
||||
P_TYPE_DISABLED = 0x1,
|
||||
P_TYPE_GAME = 0x2,
|
||||
P_TYPE_TOOL = 0x4,
|
||||
P_TYPE_SCRIPT = 0x8,
|
||||
P_TYPE_LUA = 0x10
|
||||
}
|
||||
p_type_t;
|
||||
|
||||
typedef enum i_type
|
||||
{
|
||||
I_TYPE_DISABLED = 0x1,
|
||||
/*
|
||||
I_TYPE_MAIN = 0x2,
|
||||
*/
|
||||
I_TYPE_MULTIMEDIA = 0x4,
|
||||
I_TYPE_SETTING = 0x8,
|
||||
I_TYPE_SERVICE = 0x10,
|
||||
I_TYPE_INFORMATION = 0x20
|
||||
}
|
||||
i_type_t;
|
||||
// neutrino-internal plugin-type conversion
|
||||
typedef enum p_type
|
||||
{
|
||||
P_TYPE_DISABLED = 0x1,
|
||||
P_TYPE_GAME = 0x2,
|
||||
P_TYPE_TOOL = 0x4,
|
||||
P_TYPE_SCRIPT = 0x8,
|
||||
P_TYPE_LUA = 0x10
|
||||
}
|
||||
p_type_t;
|
||||
|
||||
private:
|
||||
|
||||
CFrameBuffer *frameBuffer;
|
||||
|
||||
struct plugin
|
||||
@@ -85,16 +62,7 @@ class CPlugins
|
||||
std::string description; // UTF-8 encoded
|
||||
std::string depend;
|
||||
CPlugins::p_type_t type;
|
||||
CPlugins::i_type_t integration;
|
||||
#if 0
|
||||
bool fb;
|
||||
bool rc;
|
||||
bool lcd;
|
||||
bool vtxtpid;
|
||||
int posx, posy, sizex, sizey;
|
||||
bool showpig;
|
||||
bool needoffset;
|
||||
#endif
|
||||
int integration;
|
||||
bool shellwindow;
|
||||
bool hide;
|
||||
bool operator< (const plugin& a) const
|
||||
@@ -114,8 +82,8 @@ class CPlugins
|
||||
bool plugin_exists(const std::string & filename);
|
||||
int find_plugin(const std::string & filename);
|
||||
CPlugins::p_type_t getPluginType(int type);
|
||||
CPlugins::i_type_t getPluginIntegration(int integration);
|
||||
neutrino_msg_t getPluginKey(std::string key="auto");
|
||||
|
||||
public:
|
||||
CPlugins();
|
||||
~CPlugins();
|
||||
@@ -124,11 +92,6 @@ class CPlugins
|
||||
|
||||
void setPluginDir(const std::string & dir) { plugin_dir = dir; }
|
||||
|
||||
#if 0
|
||||
PluginParam * makeParam(const char * const id, const char * const value, PluginParam * const next);
|
||||
PluginParam * makeParam(const char * const id, const int value, PluginParam * const next);
|
||||
#endif
|
||||
|
||||
inline int getNumberOfPlugins (void ) const { return plugin_list.size() ; }
|
||||
inline const char * getName (const int number) const { return plugin_list[number].name.c_str() ; }
|
||||
inline const char * getPluginFile (const int number) const { return plugin_list[number].pluginfile.c_str(); }
|
||||
|
Reference in New Issue
Block a user