The PublicationRegistration Multiverse Cloud.
More...
#include <publicationregistration.h>
|
typedef NotEntered | LASTCHANCEMODE |
|
|
void | SignalNewPublication (QString name) |
|
void | SignalLostPublication (QString name) |
|
void | SignalNewPossiblePublication (QString name) |
|
void | SignalLostPossiblePublication (QString name) |
|
void | SignalNewRemotePublication (int desc, QString name) |
|
void | SignalLostRemotePublication (int desc, QString name) |
|
void | SignalLostRemoteDescriptor (int desc) |
|
void | SignalGlobal (QString name, bool yes) |
|
void | SignalRequestRelay (QString, int) |
|
void | SignalNewClass (QString className, bool valid) |
|
void | SignalDescriptorAdded (QString, QVariant) |
|
void | SignalDescriptorLost (QString) |
|
|
| PublicationRegistration (QObject *parent=nullptr) |
| PublicationRegistration. More...
|
|
Publication * | CreatePublication (const QString name) |
| CreatePublication. More...
|
|
QStringList | GetAllPublicationNames (void) |
| GetAllPublicationNames. More...
|
|
QStringList | GetAllPossibleNames (void) |
| GetAllPossibleNames. More...
|
|
QStringList | GetAllCurrentPublications (void) |
| GetAllCurrentPublications. More...
|
|
QStringList | GetAllGlobals (void) |
| GetAllGlobals. More...
|
|
QMap< QString, QVariant > | GetAllDescriptors (void) |
| GetAllDescriptors. More...
|
|
void | AddDescription (QString name, QVariant desc) |
| AddDescription. More...
|
|
void | RemoveDescription (QString name) |
|
QMap< QString, int > | GetAllPossibleNamesAndInstances () |
| GetAllPossibleNamesAndInstances. More...
|
|
QMap< int, QStringList > | GetAllRemotePublications (void) |
| GetAllRemotePublications. More...
|
|
void | ForceGlobal (QString name, quint64 id) |
| ForceGlobal. More...
|
|
void | RemoveGlobal (QString name, quint64 id) |
| RemoveGlobal. More...
|
|
void | RequestRelay (QString name, bool flag=true) |
| RequestRelay. More...
|
|
QStringList | GetRelayRequests () |
| get list of all relay requests
|
|
void | ReWriteGlobal (QString name, LASTCHANCEMODE global) |
| ReWriteGlobal. More...
|
|
QMap< QString, PublicationRegistration::LASTCHANCEMODE > | GetLastChance (void) |
| GetLastChance. More...
|
|
PublicationRegistration::LASTCHANCEMODE | TestLastChance (QString name) |
| TestLastChance. More...
|
|
void | AllowAutoConnectDaemon (bool allow=true) |
| AllowAutoConnectDaemon. More...
|
|
bool | AutoConnectDaemon (void) |
|
void | AddStorage (Retain *r) |
| AddStorage. More...
|
|
Retain * | Storage (void) |
| Storage. More...
|
|
void | SetGuiThread (QWidget *w) |
| SetGuiThread. More...
|
|
QWidget * | GuiThread (void) |
| GuiThread. More...
|
|
void | UseRetainedData (Subscription *subscription, VremVArray &va) |
| UseRetainedData. More...
|
|
void | UseRetainedData (Subscription *subscription, QVariant va) |
| UseRetainedData. More...
|
|
void | UserRemoveRetention (Subscription *subscriber) |
| UserRemoveRetention. More...
|
|
void | setNodeName (QString name) |
| setNodeName More...
|
|
QString | getNodeName (void) |
| getNodeName More...
|
|
void | setUUID (QString name) |
| setUUID More...
|
|
QString | getUUID (void) |
| getUUID More...
|
|
QString | getAlarmName () |
| getAlarmName More...
|
|
QString | getErrorName () |
| getErrorName More...
|
|
QString | getMessagesName () |
| getMessagesName More...
|
|
QString | getShitNotesName () |
| getShitNotesName More...
|
|
quint64 | UniqueID (void) |
| UniqueID. More...
|
|
template<class t > |
void | RegisterProcessClass (const QString name, t *dc) |
| RegisterProcessClass. More...
|
|
void | UnRegisterProcessClass (const QString name) |
| UnRegisterProcessClass. More...
|
|
void * | FindRegisteredClass (const QString name) |
| FindRegisteredClass. More...
|
|
|
typedef | enum:int { Owner |
|
typedef | Local |
|
QWatch | errorLogger |
|
The PublicationRegistration Multiverse Cloud.
This constitutes the cloud, it contains all the smarts for connecting and operating within the Multiverse platform
◆ PublicationRegistration()
PublicationRegistration::PublicationRegistration |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ AddDescription()
void PublicationRegistration::AddDescription |
( |
QString |
name, |
|
|
QVariant |
desc |
|
) |
| |
AddDescription.
- Parameters
-
◆ AddStorage()
void PublicationRegistration::AddStorage |
( |
Retain * |
r | ) |
|
◆ AllowAutoConnectDaemon()
void PublicationRegistration::AllowAutoConnectDaemon |
( |
bool |
allow = true | ) |
|
AllowAutoConnectDaemon.
- Parameters
-
allow | items like scancontrol or scancontrol daemon use this as they are daemons and other clouds conned to them, |
False is for programs like svoyager and such where they do not have owner ship of publications and other cloud instances would not need to connect to them
◆ CreatePublication()
Publication * PublicationRegistration::CreatePublication |
( |
const QString |
name | ) |
|
CreatePublication.
- Parameters
-
- Returns
Not for use by user, this create a publication for a subscriber is none exists
◆ FindRegisteredClass()
void* PublicationRegistration::FindRegisteredClass |
( |
const QString |
name | ) |
|
|
inline |
FindRegisteredClass.
- Parameters
-
- Returns
◆ ForceGlobal()
void PublicationRegistration::ForceGlobal |
( |
QString |
name, |
|
|
quint64 |
id |
|
) |
| |
ForceGlobal.
- Parameters
-
name | |
id | not for use by user |
◆ getAlarmName()
QString PublicationRegistration::getAlarmName |
( |
| ) |
|
|
inline |
getAlarmName
- Returns
- Alarm subscription name with the prefix of unique node name
◆ GetAllCurrentPublications()
QStringList PublicationRegistration::GetAllCurrentPublications |
( |
void |
| ) |
|
◆ GetAllDescriptors()
QMap< QString, QVariant > PublicationRegistration::GetAllDescriptors |
( |
void |
| ) |
|
GetAllDescriptors.
- Returns
- get a list of descriptors for all of our owned publication
◆ GetAllGlobals()
QStringList PublicationRegistration::GetAllGlobals |
( |
void |
| ) |
|
GetAllGlobals.
- Returns
- returns all publications that we own or that are global
◆ GetAllPossibleNames()
QStringList PublicationRegistration::GetAllPossibleNames |
( |
void |
| ) |
|
GetAllPossibleNames.
- Returns
- all possible publication on this and other clouds that can be subscribed to
◆ GetAllPossibleNamesAndInstances()
QMap< QString, int > PublicationRegistration::GetAllPossibleNamesAndInstances |
( |
| ) |
|
GetAllPossibleNamesAndInstances.
- Returns
used by auto connect
◆ GetAllPublicationNames()
QStringList PublicationRegistration::GetAllPublicationNames |
( |
void |
| ) |
|
GetAllPublicationNames.
- Returns
- all publications that belong to this cloud instance
◆ GetAllRemotePublications()
QMap< int, QStringList > PublicationRegistration::GetAllRemotePublications |
( |
void |
| ) |
|
GetAllRemotePublications.
- Returns
used by auto connect
◆ getErrorName()
QString PublicationRegistration::getErrorName |
( |
| ) |
|
|
inline |
getErrorName
- Returns
- error subscription name with the prefix of unique node name
◆ GetLastChance()
QMap< QString, PublicationRegistration::LASTCHANCEMODE > PublicationRegistration::GetLastChance |
( |
void |
| ) |
|
GetLastChance.
- Returns
- soon to be obsolete no longer needed as front page owners are gone
◆ getMessagesName()
QString PublicationRegistration::getMessagesName |
( |
| ) |
|
|
inline |
getMessagesName
- Returns
- message subscription name with the prefix of unique node name
◆ getNodeName()
QString PublicationRegistration::getNodeName |
( |
void |
| ) |
|
|
inline |
getNodeName
- Returns
- the unique node name of this cloud instance
◆ getShitNotesName()
QString PublicationRegistration::getShitNotesName |
( |
| ) |
|
|
inline |
getShitNotesName
- Returns
- shiftnote subscription name with the prefix of unique node name
◆ getUUID()
QString PublicationRegistration::getUUID |
( |
void |
| ) |
|
|
inline |
◆ GuiThread()
QWidget * PublicationRegistration::GuiThread |
( |
void |
| ) |
|
GuiThread.
- Returns
- the started of the cloud
◆ RegisterProcessClass()
template<class t >
void PublicationRegistration::RegisterProcessClass |
( |
const QString |
name, |
|
|
t * |
dc |
|
) |
| |
|
inline |
RegisterProcessClass.
- Parameters
-
◆ RemoveGlobal()
void PublicationRegistration::RemoveGlobal |
( |
QString |
name, |
|
|
quint64 |
id |
|
) |
| |
RemoveGlobal.
- Parameters
-
name | |
id | not for use by user |
◆ RequestRelay()
void PublicationRegistration::RequestRelay |
( |
QString |
name, |
|
|
bool |
flag = true |
|
) |
| |
RequestRelay.
- Parameters
-
name | |
flag | called by remopte connection if they do not have daemon arutoconnect running, ie they want someone to relay |
◆ ReWriteGlobal()
void PublicationRegistration::ReWriteGlobal |
( |
QString |
name, |
|
|
LASTCHANCEMODE |
global |
|
) |
| |
ReWriteGlobal.
- Parameters
-
name | |
global | soon to be obsolete no longer needed as front page owners are gone |
◆ SetGuiThread()
void PublicationRegistration::SetGuiThread |
( |
QWidget * |
w | ) |
|
SetGuiThread.
- Parameters
-
w | tell the clouds users who started this cloud instance.. the guy that got the ball rolling... example: Scancontrol widget |
◆ setNodeName()
void PublicationRegistration::setNodeName |
( |
QString |
name | ) |
|
|
inline |
setNodeName
- Parameters
-
name | sets the unique name of the cloud instance |
◆ setUUID()
void PublicationRegistration::setUUID |
( |
QString |
name | ) |
|
|
inline |
◆ slot_LostRemoteDescriptor
void PublicationRegistration::slot_LostRemoteDescriptor |
( |
int |
desc | ) |
|
|
slot |
slot_LostRemoteDescriptor
- Parameters
-
should never happen... but there in case
◆ slot_LostRemotePublication
void PublicationRegistration::slot_LostRemotePublication |
( |
int |
desc, |
|
|
QString |
name |
|
) |
| |
|
slot |
slot_LostRemotePublication
- Parameters
-
should never happen... but there in case
◆ slot_NewRemotePublication
void PublicationRegistration::slot_NewRemotePublication |
( |
int |
desc, |
|
|
QString |
name |
|
) |
| |
|
slot |
slot_NewRemotePublication
- Parameters
-
◆ Storage()
Retain * PublicationRegistration::Storage |
( |
void |
| ) |
|
Storage.
- Returns
returns the storage of a cloud instance
◆ TestLastChance()
PublicationRegistration::LASTCHANCEMODE PublicationRegistration::TestLastChance |
( |
QString |
name | ) |
|
TestLastChance.
- Parameters
-
- Returns
soon to be obsolete no longer needed as front page owners are gone
◆ UniqueID()
quint64 PublicationRegistration::UniqueID |
( |
void |
| ) |
|
◆ UnRegisterProcessClass()
void PublicationRegistration::UnRegisterProcessClass |
( |
const QString |
name | ) |
|
|
inline |
UnRegisterProcessClass.
- Parameters
-
◆ UseRetainedData() [1/2]
void PublicationRegistration::UseRetainedData |
( |
Subscription * |
subscription, |
|
|
QVariant |
va |
|
) |
| |
UseRetainedData.
- Parameters
-
subscription | |
va | adds subscriber retension data Example: setup data |
◆ UseRetainedData() [2/2]
void PublicationRegistration::UseRetainedData |
( |
Subscription * |
subscription, |
|
|
VremVArray & |
va |
|
) |
| |
UseRetainedData.
- Parameters
-
subscription | |
va | adds subscriber retension data Example: setup data |
◆ UserRemoveRetention()
void PublicationRegistration::UserRemoveRetention |
( |
Subscription * |
subscriber | ) |
|
UserRemoveRetention.
- Parameters
-
subscriber | removes retension data from a subscriber |
The documentation for this class was generated from the following files:
- /home/ed/Software/multiverse/stec-platform/libs/platformlib/publicationregistration.h
- /home/ed/Software/multiverse/stec-platform/libs/platformlib/publicationregistration.cpp