arcsqdynamicobject.h
1 /*
2  name: include/arcs/arcsqdynamicobject.h
3 
4  This file is part of ARCS - Augmented Reality Component System
5  (version 2-current), written by Jean-Yves Didier
6  for IBISC Laboratory (http://www.ibisc.univ-evry.fr)
7 
8  Copyright (C) 2013 Université d'Evry-Val d'Essonne
9 
10  This program is free software: you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation, either version 2 of the License, or
13  (at your option) any later version.
14 
15  This program is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program. If not, see <http://www.gnu.org/licenses/>.
22 
23 
24  Please send bugreports with examples or suggestions to
25  jean-yves.didier__at__ibisc.univ-evry.fr
26 */
27 
28 
29 #ifndef __ARCSQDYNAMICOBJECT_H__
30 #define __ARCSQDYNAMICOBJECT_H__
31 
32 #include <QStringList>
33 
34 
36 
62 class ARCSQDynamicObject //: public QObject
63 {
64 public:
65 
67 
74  virtual int qt_metacall(QMetaObject::Call call, int id, void ** arguments)= 0; //{ return QObject::qt_metacall(call,id,arguments);}
75 
77  virtual QStringList getSignalList() = 0;
78 
80  virtual QStringList getSlotList() = 0;
81 
83 
93  virtual int prepareSlotConnect( QString sigName, QString sltName, QString objectName, QString actualSignal, bool simulate = false ) = 0;
94 
96 
106  virtual int prepareSignalConnect( QString sigName, QString sltName , QString objectName, QString actualSlot, bool simulate = false) = 0;
107 
109  virtual int cleanSlotConnect(QString sigName, QString sltName, QString objectName, QString actualSignal) = 0 ;
110 
112  virtual int cleanSignalConnect(QString signame, QString sltName, QString objectName, QString actualSlot) = 0;
113 };
114 
115 #endif // __ARCSQDYNAMICOBJECT_H__
virtual int qt_metacall(QMetaObject::Call call, int id, void **arguments)=0
Method performing the actual callback task.
virtual QStringList getSlotList()=0
virtual int prepareSignalConnect(QString sigName, QString sltName, QString objectName, QString actualSlot, bool simulate=false)=0
Prepares a connection with a slot which does not belong to this object.
virtual QStringList getSignalList()=0
Interface to extend QObject functionnalities in order to make objects with dynamic signals or slots...
virtual int cleanSignalConnect(QString signame, QString sltName, QString objectName, QString actualSlot)=0
virtual int cleanSlotConnect(QString sigName, QString sltName, QString objectName, QString actualSignal)=0
virtual int prepareSlotConnect(QString sigName, QString sltName, QString objectName, QString actualSignal, bool simulate=false)=0
Prepares a connection with a slot which is belonging to this object.