00001 /* 00002 Copyright © 2010 yan Verdavaine 00003 00004 This file is part of QExtend. 00005 00006 QExtend is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation, either version 3 of the License, or 00009 any later version. 00010 00011 QExtend is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with QExtend. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 00020 #ifndef QEXTEND_SIGNALCHECKPOINT_H 00021 #define QEXTEND_SIGNALCHECKPOINT_H 00022 00023 00024 00025 #include <QExtend/Core/qextend_global> 00026 #include <QExtend/Core/ObjectPtr> 00027 #include "connector.hpp" 00028 #include <QObject> 00029 #include <QVariant> 00030 #include <QList> 00031 #include <QStringList> 00032 namespace QExtend{ 00033 00034 00035 00036 00038 00040 00046 class QEXTEND_EXPORT SignalCheckPoint: public QObject 00047 { 00048 Q_OBJECT 00049 00050 class SignalCheckPointPrivate; 00051 ObjectPtr<SignalCheckPointPrivate> m_internal; 00052 public: 00053 00054 00056 00057 00059 00072 SignalCheckPoint(const Emitter & emitter = Emitter(),const QStringList & names= QStringList() , QObject * parent= 0); 00073 00074 00075 00076 00077 00078 00079 00081 00082 00084 00097 void addEmitter(const Emitter & ,const QStringList & ); 00098 00099 00100 00102 00103 00105 00120 void addEmitterProperty(const Emitter & emitter,const char * property,const QString &name); 00121 00122 00123 00124 00125 00127 00128 00130 const QVariantMap & getParameters(); 00131 00132 00133 public Q_SLOTS: 00134 00135 00136 00138 00139 00141 void emitParameters(); 00142 00143 00144 00146 00147 00149 void setParameters(const QVariantMap &); 00150 00151 00153 00154 00156 void clear(); 00157 00158 Q_SIGNALS: 00159 00160 00162 00163 00165 void parameters(const QVariantMap &); 00166 }; 00167 00168 00169 00170 00171 00172 00173 00174 } 00175 #endif
© 2000-2024 - www.developpez.com