diff options
author | Brett Stottlemyer <bstottle@ford.com> | 2014-10-07 13:48:57 -0400 |
---|---|---|
committer | Brett Stottlemyer <bstottle@ford.com> | 2014-10-16 13:05:29 +0200 |
commit | ec68d2724872c4e3c0b63e0ac12a369e639088de (patch) | |
tree | d0b93852644007bddf6d51097700dd40dcb366d7 /src/remoteobjects/qremoteobjectregistry.h | |
parent | 4d455cba42dc11c3cd71bec0d560ea3642bf5350 (diff) |
Say hello to QtRemoteObjects
This is a module that allows you to create copies/replicas of your
QObjects in other processes, without having to write a bunch of IPC code.
Change-Id: I4a62f120eca34c9f50089b7d9d09dcfcad14476c
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Björn Breitmeyer <bjoern.breitmeyer@kdab.com>
Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
Diffstat (limited to 'src/remoteobjects/qremoteobjectregistry.h')
-rw-r--r-- | src/remoteobjects/qremoteobjectregistry.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/src/remoteobjects/qremoteobjectregistry.h b/src/remoteobjects/qremoteobjectregistry.h new file mode 100644 index 0000000..4e21cb8 --- /dev/null +++ b/src/remoteobjects/qremoteobjectregistry.h @@ -0,0 +1,78 @@ +/**************************************************************************** +** +** Copyright (C) 2014 Ford Motor Company +** Contact: http://www.qt-project.org/legal +** +** This file is part of the QtRemoteObjects module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** 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. +** +** 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.GPL 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. +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef QREMOTEOBJECTREGISTRY_P_H +#define QREMOTEOBJECTREGISTRY_P_H + +#include "qremoteobjectreplica.h" + +QT_BEGIN_NAMESPACE + +class Q_REMOTEOBJECTS_EXPORT QRemoteObjectRegistry : public QRemoteObjectReplica +{ + Q_OBJECT + Q_CLASSINFO(QCLASSINFO_REMOTEOBJECT_TYPE, "Registry") + + Q_PROPERTY(QRemoteObjectSourceLocations sourceLocations READ sourceLocations) + + friend class QRemoteObjectNode; + +public: + ~QRemoteObjectRegistry(); + void initialize() Q_DECL_OVERRIDE; + + QRemoteObjectSourceLocations sourceLocations() const; + +Q_SIGNALS: + void remoteObjectAdded(const QRemoteObjectSourceLocation &entry); + void remoteObjectRemoved(const QRemoteObjectSourceLocation &entry); + +public Q_SLOTS: + void addSource(const QRemoteObjectSourceLocation &entry); + void removeSource(const QRemoteObjectSourceLocation &entry); + +private: + explicit QRemoteObjectRegistry(QObject *parent = Q_NULLPTR); +}; + +QT_END_NAMESPACE + +#endif |