![]() |
stec-platform
|
The Subscription class A platform subscriber must use or inheit this class. More...
#include <subscription.h>
Public Types | |
enum | StorageType { EventOnly = 0 , CacheData = 1 } |
Public Member Functions | |
Subscription (QString name, QObject *parent=nullptr) | |
Subscription. More... | |
virtual | ~Subscription () |
deconstructor | |
virtual MemoryHeap & | getMemoryHeap () |
where the data is stored More... | |
virtual int | getSize () |
number of elements in the array stored already | |
virtual Publication * | getPublication (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) |
The Subscription class A platform subscriber must use or inheit this class.
Subscription::Subscription | ( | QString | name, |
QObject * | parent = nullptr |
||
) |
|
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..