1// Copyright (C) 2017 Ford Motor Company
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QREGISTRYSOURCE_P_H
6#define QREGISTRYSOURCE_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include "qtremoteobjectglobal.h"
20#include "private/qglobal_p.h"
21
22#include <QtCore/qobject.h>
23
24QT_BEGIN_NAMESPACE
25
26class QRegistrySource : public QObject
27{
28 Q_OBJECT
29 Q_CLASSINFO(QCLASSINFO_REMOTEOBJECT_TYPE, "Registry")
30
31 Q_PROPERTY(QRemoteObjectSourceLocations sourceLocations READ sourceLocations)
32
33public:
34 explicit QRegistrySource(QObject *parent = nullptr);
35 ~QRegistrySource() override;
36
37 QRemoteObjectSourceLocations sourceLocations() const;
38
39Q_SIGNALS:
40 void remoteObjectAdded(const QRemoteObjectSourceLocation &entry);
41 void remoteObjectRemoved(const QRemoteObjectSourceLocation &entry);
42
43public Q_SLOTS:
44 void addSource(const QRemoteObjectSourceLocation &entry);
45 void removeSource(const QRemoteObjectSourceLocation &entry);
46 void removeServer(const QUrl &url);
47
48private:
49 QRemoteObjectSourceLocations m_sourceLocations;
50};
51
52QT_END_NAMESPACE
53
54#endif
55

source code of qtremoteobjects/src/remoteobjects/qremoteobjectregistrysource_p.h