/*************************************************************************** action.h - description ------------------- begin : Sun Mar 17 2002 copyright : (C) 2002 by Vladimir Shutoff email : vovan@shutoff.ru ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef _ACTION_H #define _ACTION_H #include "simapi.h" #include "stl.h" class CorePlugin; class Exec; typedef struct ActionUserData { Data OnLine; Data Status; Data Message; Data Menu; Data NMenu; } ActionUserData; class ActionPlugin : public QObject, public Plugin, public EventReceiver { Q_OBJECT public: ActionPlugin(unsigned); virtual ~ActionPlugin(); CorePlugin *core; unsigned long action_data_id; protected slots: void ready(Exec*,int,const char*); void msg_ready(Exec*,int,const char*); void clear(); protected: list m_exec; list m_delete; unsigned long CmdAction; void *processEvent(Event*); QWidget *createConfigWindow(QWidget *parent); }; #endif