/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** 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 ** a written agreement between you and Digia. For licensing terms and ** conditions see http://qt.digia.com/licensing. For further information ** use the contact form at http://qt.digia.com/contact-us. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version 2.1 as published by the Free Software ** Foundation and appearing in the file LICENSE.LGPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU Lesser General Public License version 2.1 requirements ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ** In addition, as a special exception, Digia gives you certain additional ** rights. These rights are described in the Digia Qt LGPL Exception ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. ** ****************************************************************************/ #include "nodeinstanceserverinterface.h" #include #include "propertyabstractcontainer.h" #include "propertyvaluecontainer.h" #include "propertybindingcontainer.h" #include "instancecontainer.h" #include "createinstancescommand.h" #include "createscenecommand.h" #include "changevaluescommand.h" #include "changebindingscommand.h" #include "changeauxiliarycommand.h" #include "changefileurlcommand.h" #include "removeinstancescommand.h" #include "clearscenecommand.h" #include "removepropertiescommand.h" #include "reparentinstancescommand.h" #include "changeidscommand.h" #include "changestatecommand.h" #include "completecomponentcommand.h" #include "addimportcontainer.h" #include "changenodesourcecommand.h" #include "informationchangedcommand.h" #include "pixmapchangedcommand.h" #include "valueschangedcommand.h" #include "childrenchangedcommand.h" #include "imagecontainer.h" #include "statepreviewimagechangedcommand.h" #include "componentcompletedcommand.h" #include "synchronizecommand.h" #include "tokencommand.h" #include "removesharedmemorycommand.h" #include "endpuppetcommand.h" #include "debugoutputcommand.h" #include "puppetalivecommand.h" #include namespace QmlDesigner { static bool isRegistered=false; NodeInstanceServerInterface::NodeInstanceServerInterface(QObject *parent) : QObject(parent) { registerCommands(); } void NodeInstanceServerInterface::registerCommands() { if (isRegistered) return; isRegistered = true; qRegisterMetaType("CreateInstancesCommand"); qRegisterMetaTypeStreamOperators("CreateInstancesCommand"); qRegisterMetaType("ClearSceneCommand"); qRegisterMetaTypeStreamOperators("ClearSceneCommand"); qRegisterMetaType("CreateSceneCommand"); qRegisterMetaTypeStreamOperators("CreateSceneCommand"); qRegisterMetaType("ChangeBindingsCommand"); qRegisterMetaTypeStreamOperators("ChangeBindingsCommand"); qRegisterMetaType("ChangeValuesCommand"); qRegisterMetaTypeStreamOperators("ChangeValuesCommand"); qRegisterMetaType("ChangeFileUrlCommand"); qRegisterMetaTypeStreamOperators("ChangeFileUrlCommand"); qRegisterMetaType("ChangeStateCommand"); qRegisterMetaTypeStreamOperators("ChangeStateCommand"); qRegisterMetaType("RemoveInstancesCommand"); qRegisterMetaTypeStreamOperators("RemoveInstancesCommand"); qRegisterMetaType("RemovePropertiesCommand"); qRegisterMetaTypeStreamOperators("RemovePropertiesCommand"); qRegisterMetaType("ReparentInstancesCommand"); qRegisterMetaTypeStreamOperators("ReparentInstancesCommand"); qRegisterMetaType("ChangeIdsCommand"); qRegisterMetaTypeStreamOperators("ChangeIdsCommand"); qRegisterMetaType("PropertyAbstractContainer"); qRegisterMetaTypeStreamOperators("PropertyAbstractContainer"); qRegisterMetaType("InformationChangedCommand"); qRegisterMetaTypeStreamOperators("InformationChangedCommand"); qRegisterMetaType("ValuesChangedCommand"); qRegisterMetaTypeStreamOperators("ValuesChangedCommand"); qRegisterMetaType("PixmapChangedCommand"); qRegisterMetaTypeStreamOperators("PixmapChangedCommand"); qRegisterMetaType("InformationContainer"); qRegisterMetaTypeStreamOperators("InformationContainer"); qRegisterMetaType("PropertyValueContainer"); qRegisterMetaTypeStreamOperators("PropertyValueContainer"); qRegisterMetaType("PropertyBindingContainer"); qRegisterMetaTypeStreamOperators("PropertyBindingContainer"); qRegisterMetaType("PropertyAbstractContainer"); qRegisterMetaTypeStreamOperators("PropertyAbstractContainer"); qRegisterMetaType("InstanceContainer"); qRegisterMetaTypeStreamOperators("InstanceContainer"); qRegisterMetaType("IdContainer"); qRegisterMetaTypeStreamOperators("IdContainer"); qRegisterMetaType("ChildrenChangedCommand"); qRegisterMetaTypeStreamOperators("ChildrenChangedCommand"); qRegisterMetaType("ImageContainer"); qRegisterMetaTypeStreamOperators("ImageContainer"); qRegisterMetaType("StatePreviewImageChangedCommand"); qRegisterMetaTypeStreamOperators("StatePreviewImageChangedCommand"); qRegisterMetaType("CompleteComponentCommand"); qRegisterMetaTypeStreamOperators("CompleteComponentCommand"); qRegisterMetaType("ComponentCompletedCommand"); qRegisterMetaTypeStreamOperators("ComponentCompletedCommand"); qRegisterMetaType("AddImportContainer"); qRegisterMetaTypeStreamOperators("AddImportContainer"); qRegisterMetaType("SynchronizeCommand"); qRegisterMetaTypeStreamOperators("SynchronizeCommand"); qRegisterMetaType("ChangeNodeSourceCommand"); qRegisterMetaTypeStreamOperators("ChangeNodeSourceCommand"); qRegisterMetaType("ChangeAuxiliaryCommand"); qRegisterMetaTypeStreamOperators("ChangeAuxiliaryCommand"); qRegisterMetaType("TokenCommand"); qRegisterMetaTypeStreamOperators("TokenCommand"); qRegisterMetaType("RemoveSharedMemoryCommand"); qRegisterMetaTypeStreamOperators("RemoveSharedMemoryCommand"); qRegisterMetaType("EndPuppetCommand"); qRegisterMetaTypeStreamOperators("EndPuppetCommand"); qRegisterMetaType("DebugOutputCommand"); qRegisterMetaTypeStreamOperators("DebugOutputCommand"); qRegisterMetaType("Enumeration"); qRegisterMetaTypeStreamOperators("Enumeration"); qRegisterMetaType("PuppetAliveCommand"); qRegisterMetaTypeStreamOperators("PuppetAliveCommand"); } }