00001 #ifndef TCPPLUGIN_H 00002 #define TCPPLUGIN_H 00003 00004 #include <QApplication> 00005 #include <QObject> 00006 #include <QStringList> 00007 #include <QUrl> 00008 00009 00010 // Standard plugin config 00011 #include <bbob_interfaces.h> 00012 00013 #include "serverdialog.h" 00014 #include "clientdialog.h" 00015 00016 class TcpPlugin : public QObject, public CoreInterface, 00017 public DisplayInterface 00018 { 00019 Q_OBJECT 00020 Q_INTERFACES(CoreInterface DisplayInterface) 00021 00022 private: 00023 ServerDialog* ServerDlog; 00024 ClientDialog* ClientDlog; 00025 00026 public: 00027 00028 // DisplayInterface 00029 QStringList commands() const; 00030 QDockWidget* getDock(const QString &command); 00031 QWidget* getConfig(){return 0;}; 00032 00033 // CoreInterface 00034 void CoreInit(const BCore* core); 00035 void SaveSettings(); 00036 void LoadSettings(); 00037 void Module(const QString name, const QStringList params); 00038 00039 BBoB_Channel* ChannelPointer(QString mod, QString input) const; 00040 BBoB_Module* ModulePointer(const QString mod) const; 00041 QStringList ModuleList() const; 00042 QMap<QString, QString> ModuleParams(const QString name) const; 00043 QMap<QString, QString> ModuleInputs(const QString name) const; 00044 QMap<QString, QString> ModuleOutputs(const QString name) const; 00045 00046 QMap<QString, BBoB_Module*> Modules; 00047 void saveChannels(); 00048 00049 BCore* bcore; 00050 }; 00051 00052 #endif 00053