| 
									
										
										
										
											2012-10-02 09:12:39 +02:00
										 |  |  | /****************************************************************************
 | 
					
						
							| 
									
										
										
										
											2011-05-06 13:08:46 +02:00
										 |  |  | ** | 
					
						
							| 
									
										
										
										
											2015-01-14 18:07:15 +01:00
										 |  |  | ** Copyright (C) 2015 The Qt Company Ltd. | 
					
						
							|  |  |  | ** Contact: http://www.qt.io/licensing
 | 
					
						
							| 
									
										
										
										
											2011-05-06 13:08:46 +02:00
										 |  |  | ** | 
					
						
							| 
									
										
										
										
											2012-10-02 09:12:39 +02:00
										 |  |  | ** This file is part of Qt Creator. | 
					
						
							| 
									
										
										
										
											2011-05-06 13:08:46 +02:00
										 |  |  | ** | 
					
						
							| 
									
										
										
										
											2012-10-02 09:12:39 +02:00
										 |  |  | ** Commercial License Usage | 
					
						
							|  |  |  | ** Licensees holding valid commercial Qt licenses may use this file in | 
					
						
							|  |  |  | ** accordance with the commercial license agreement provided with the | 
					
						
							|  |  |  | ** Software or, alternatively, in accordance with the terms contained in | 
					
						
							| 
									
										
										
										
											2015-01-14 18:07:15 +01:00
										 |  |  | ** a written agreement between you and The Qt Company.  For licensing terms and | 
					
						
							|  |  |  | ** conditions see http://www.qt.io/terms-conditions.  For further information
 | 
					
						
							| 
									
										
										
										
											2014-10-01 13:21:18 +02:00
										 |  |  | ** use the contact form at http://www.qt.io/contact-us.
 | 
					
						
							| 
									
										
										
										
											2011-05-06 13:08:46 +02:00
										 |  |  | ** | 
					
						
							| 
									
										
										
										
											2015-09-18 11:34:48 +02:00
										 |  |  | ** GNU General Public License Usage | 
					
						
							|  |  |  | ** Alternatively, this file may be used under the terms of the GNU | 
					
						
							|  |  |  | ** General Public License version 3.0 as published by the Free Software | 
					
						
							|  |  |  | ** Foundation and appearing in the file LICENSE.GPLv3 included in the | 
					
						
							|  |  |  | ** packaging of this file. Please review the following information to | 
					
						
							|  |  |  | ** ensure the GNU General Public License version 3.0 requirements will be | 
					
						
							|  |  |  | ** met: http://www.gnu.org/copyleft/gpl.html.
 | 
					
						
							| 
									
										
										
										
											2011-05-06 13:08:46 +02:00
										 |  |  | ** | 
					
						
							| 
									
										
										
										
											2012-10-02 09:12:39 +02:00
										 |  |  | ****************************************************************************/ | 
					
						
							| 
									
										
										
										
											2011-05-06 13:08:46 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-06-08 17:02:03 +02:00
										 |  |  | #ifndef CHANGENODESOURCECOMMAND_H
 | 
					
						
							|  |  |  | #define CHANGENODESOURCECOMMAND_H
 | 
					
						
							| 
									
										
										
										
											2011-05-06 13:08:46 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include <QMetaType>
 | 
					
						
							| 
									
										
										
										
											2012-09-19 15:57:22 +02:00
										 |  |  | #include <QString>
 | 
					
						
							| 
									
										
										
										
											2012-09-26 16:21:11 +02:00
										 |  |  | #include <QDataStream>
 | 
					
						
							| 
									
										
										
										
											2011-05-06 13:08:46 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | namespace QmlDesigner { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-06-08 17:02:03 +02:00
										 |  |  | class ChangeNodeSourceCommand | 
					
						
							| 
									
										
										
										
											2011-05-06 13:08:46 +02:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2011-06-08 17:02:03 +02:00
										 |  |  |     friend QDataStream &operator>>(QDataStream &in, ChangeNodeSourceCommand &command); | 
					
						
							| 
									
										
										
										
											2013-07-16 17:00:07 +02:00
										 |  |  |     friend QDebug operator <<(QDebug debug, const ChangeNodeSourceCommand &command); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-06 13:08:46 +02:00
										 |  |  | public: | 
					
						
							| 
									
										
										
										
											2011-06-08 17:02:03 +02:00
										 |  |  |     ChangeNodeSourceCommand(); | 
					
						
							| 
									
										
										
										
											2013-06-06 16:03:46 +02:00
										 |  |  |     explicit ChangeNodeSourceCommand(qint32 instanceId, const QString &nodeSource); | 
					
						
							| 
									
										
										
										
											2011-05-06 13:08:46 +02:00
										 |  |  |     qint32 instanceId() const; | 
					
						
							| 
									
										
										
										
											2011-06-08 17:02:03 +02:00
										 |  |  |     QString nodeSource() const; | 
					
						
							| 
									
										
										
										
											2011-05-06 13:08:46 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							|  |  |  |     qint32 m_instanceId; | 
					
						
							| 
									
										
										
										
											2011-06-08 17:02:03 +02:00
										 |  |  |     QString m_nodeSource; | 
					
						
							| 
									
										
										
										
											2011-05-06 13:08:46 +02:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-06-08 17:02:03 +02:00
										 |  |  | QDataStream &operator<<(QDataStream &out, const ChangeNodeSourceCommand &command); | 
					
						
							|  |  |  | QDataStream &operator>>(QDataStream &in, ChangeNodeSourceCommand &command); | 
					
						
							| 
									
										
										
										
											2011-05-06 13:08:46 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-07-16 17:00:07 +02:00
										 |  |  | QDebug operator <<(QDebug debug, const ChangeNodeSourceCommand &command); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-06 13:08:46 +02:00
										 |  |  | } // namespace QmlDesigner
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-06-08 17:02:03 +02:00
										 |  |  | Q_DECLARE_METATYPE(QmlDesigner::ChangeNodeSourceCommand) | 
					
						
							| 
									
										
										
										
											2011-05-06 13:08:46 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-06-08 17:02:03 +02:00
										 |  |  | #endif // CHANGENODESOURCECOMMAND_H
 |