/* ____ _ _ _ __ __ * / ___|| | ___ _| (_)_ _____\ \/ / * \___ \| |/ / | | | | \ \ / / _ \\ / * ___) | <| |_| | | |\ V / __// \ Remote Telescopes * |____/|_|\_\\__, |_|_| \_/ \___/_/\_\ For the masses * |___/ * * Copyright (C) 2013 Franco (nextime) Lanza * Copyright (C) 2013 Ivan Bellia * * All rights reserved. * * This file is part of SkyliveX. * * SkyliveX 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 3 of the License, or * (at your option) any later version. * * Foobar 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 Foobar. If not, see . * ******************************************************************** * * File: skylivex.h * * Purpose: * */ #ifndef SKYLIVEX_H #define SKYLIVEX_H #include #include #include #include "pluginsinterfaces.h" #include #include #include "ipcmsg.h" /* * class SkyliveX * This is the core of the SkyliveX client. * Here the inter-thread and inter-process communication * with plugins is done, so, the magic happen here */ class SkyliveX : public QObject { Q_OBJECT private: SkylivexPluginInterface *skylivexPluginInterface; QHash skylivexPluginList; public: SkyliveX(QObject *parent=0) : QObject(parent) {} ~SkyliveX() {} void loadPlugins(); void initializePlugin(QObject*, QString); void sendMessage(SKMessage &msg); public slots: void initialize(); void receiveFromGui(SKMessage &msg); void receiveFromPlugins(SKMessage msg); signals: void finished(); void kickPlugins(); void msgForGui(SKMessage &msg); void msgForPlugins(SKMessage msg); }; #endif