stec-platform
Subscription Class Reference

The Subscription class A platform subscriber must use or inheit this class. More...

#include <subscription.h>

Inheritance diagram for Subscription:
Collaboration diagram for Subscription:

Public Types

enum  StorageType { EventOnly = 0 , CacheData = 1 }
 

Signals

void SignalEventDataReset (qint16 count, QVariant src)
 
void SignalEventOccured (qint16 index, qint16 count, QVariant src)
 
void SignalEventIamTheLastSubscription ()
 
void SignalNamedEventOccured (QString name, qint16 index, qint16 count, QVariant src)
 
void SignalUserDataEventOccured (QVariant udata, qint16 index, qint16 count, QVariant src)
 

Public Member Functions

 Subscription (QString name, QObject *parent=nullptr)
 Subscription. More...
 
virtual ~Subscription ()
 deconstructor
 
virtual MemoryHeapgetMemoryHeap ()
 where the data is stored More...
 
virtual int getSize ()
 number of elements in the array stored already
 
virtual PublicationgetPublication (void)
 this returns a pointer to the cloud publication for this subsciber
 
virtual void PeerConnect ()
 called is peer connect
 
virtual void setUserData (QVariant UserInfo)
 
virtual QVariant userData ()
 gets the user data, if set, for this subscription
 
virtual void UserResetEventOccured (qint16 count, QVariant src)
 reset event
 
virtual void UserEventOccured (qint16 index, qint16 count, QVariant src)
 user event from src
 
virtual void ResetArray (const VremVArray values, QVariant src="local")
 force complete new data and size for this subscription
 
virtual void Update (const QVariant value, int index=0, QVariant src="local")
 update data
 
virtual void Update (const VremVArray values, int index=0, QVariant src="local")
 update data
 
virtual bool isResident ()
 returns true if resident subscription
 
virtual bool isOwner ()
 return true if owner of data
 
virtual void Update (const VremList values, int index=0, QVariant src="local")
 update data
 
void SetPublisherProperty (QVariant property)
 set the property of the data, if owner is set
 
QVariant GetPublisherPropery (void)
 get the publisher of the property
 
void SetPublisherPropertyDescription (QString desc)
 set the description of the publisher if owner is set
 
QString GetPublisherProperyDescription (void)
 gets the description as set by the real owner
 
virtual void Update (const QStringList values, int index=0, QVariant src="local")
 update data
 
virtual VremVArray RequestValues (int index=0, int count=1)
 get the data for this subscription
 
virtual QVariant getSnglValue (int index=0)
 gets just one element of the data
 
virtual VremVArray RequestAllValues (int index=0)
 request all the data the subsciber has
 
virtual void Repeat (QVariant v, int count, int index=0)
 repeat data into subscriber
 
QString const text (void)
 returns the name of the subscription
 
void ForceGlobal (void)
 
void RemoveGlobal (void)
 

Detailed Description

The Subscription class A platform subscriber must use or inheit this class.

Constructor & Destructor Documentation

◆ Subscription()

Subscription::Subscription ( QString  name,
QObject parent = nullptr 
)

Subscription.

Parameters
name
parent

fall back to raw name if not owner...

Member Function Documentation

◆ getMemoryHeap()

MemoryHeap & Subscription::getMemoryHeap ( )
virtual

where the data is stored

someone wants the data so now get it, if no one would have wanted it, just leave it lie there at the publisher.. don't waste the band with..


The documentation for this class was generated from the following files: