![]() |
VideoXpert SDK
2.0
A software development kit for third party vendors to integrate with the VideoXpert platform
|
Represents a particular situation configuration that specifies how corresponding events shall be generated and handled when the situation is detected. More...
#include <IVxSituation.h>
Public Member Functions | |
virtual VxResult::Value | AddNotification (IVxNotification ¬ification) const =0 |
Adds a notification to the list of notifications that this situation serves. More... | |
virtual VxResult::Value | Delete () const =0 |
Deletes this instance. More... | |
virtual VxResult::Value | DeleteSituation () const =0 |
Deletes this situation from the VideoXpert system. More... | |
virtual VxResult::Value | GetLinks (VxCollection< IVxDataSource ** > &dataSourceCollection) const =0 |
Gets the data sources associated with this situation. More... | |
virtual VxResult::Value | GetLinks (VxCollection< IVxDevice ** > &deviceCollection) const =0 |
Gets the devices associated with this situation. More... | |
virtual VxResult::Value | GetNotifications (VxCollection< IVxNotification ** > ¬ificationCollection) const =0 |
Gets the notifications associated with this situation. More... | |
virtual VxResult::Value | Link (IVxDataSource &dataSource) const =0 |
Associates a data source with this situation. More... | |
virtual VxResult::Value | Link (IVxDevice &device) const =0 |
Associates a device with this situation. More... | |
virtual VxResult::Value | Refresh ()=0 |
Refreshes the member values for this object by retrieving its current information from the VideoXpert system. More... | |
virtual VxResult::Value | RemoveNotification (IVxNotification ¬ification) const =0 |
Removes a notification from the list of notifications that this situation serves. More... | |
virtual VxResult::Value | SetAckNeeded (bool isAckNeeded)=0 |
Sets whether the generated events shall have an initial state of AckNeeded or NoAckNeeded. More... | |
virtual VxResult::Value | SetAudibleLoopDelay (int audibleLoopDelay)=0 |
Sets the audible loop delay property. More... | |
virtual VxResult::Value | SetAudiblePlayCount (int audiblePlayCount)=0 |
Sets the audible play count property. More... | |
virtual VxResult::Value | SetAudiblyNotify (bool shouldAudiblyNotify)=0 |
Sets whether a notification sound should play on supporting clients when an event is received. More... | |
virtual VxResult::Value | SetAutoAcknowledgeTime (int autoAcknowledgeTime)=0 |
Sets the auto acknowledge time property. More... | |
virtual VxResult::Value | SetExpandBanner (bool shouldExpandBanner)=0 |
Sets whether the notification banner on clients should be expanded by default. More... | |
virtual VxResult::Value | SetLog (bool shouldLog)=0 |
Sets whether events generated from this situation shall be persisted or immediately be discarded. More... | |
virtual VxResult::Value | SetNotify (bool shouldNotify)=0 |
Sets whether an event generated from the situation will generate notifications. More... | |
virtual VxResult::Value | SetName (char name[64])=0 |
Sets the name property. More... | |
virtual VxResult::Value | SetSeverity (int severity)=0 |
Sets the severity property. More... | |
virtual VxResult::Value | SetSnoozeIntervals (int *snoozeIntervals, int snoozeIntervalSize)=0 |
Sets the snooze intervals for a generated event. More... | |
virtual VxResult::Value | UnLink (IVxDataSource &dataSource) const =0 |
Removes a data source association from this situation. More... | |
virtual VxResult::Value | UnLink (IVxDevice &device) const =0 |
Removes a device association from this situation. More... | |
Public Attributes | |
bool | isAckNeeded |
Indicates whether the generated events shall have an initial state of AckNeeded or NoAckNeeded. More... | |
bool | shouldAudiblyNotify |
Indicates whether a notification sound should play on supporting clients when an event is received. More... | |
bool | shouldExpandBanner |
Indicates whether the notification banner on clients should be expanded by default. More... | |
bool | shouldLog |
Indicates whether events generated from this situation shall be persisted or immediately be discarded. More... | |
bool | shouldNotify |
Indicates whether an event generated from the situation shall generate notifications. More... | |
char | name [64] |
The friendly name of the situation. More... | |
char | servicePropertyId [64] |
The name of the key in the properties map corresponding to the service identifier for the source of this situation, if any. More... | |
char | serviceType [64] |
Specifies the resource type of the service corresponding to the source of this situation, if any. More... | |
char | sourceDeviceId [64] |
The unique identifier of the source device. More... | |
char | type [128] |
The situation type. More... | |
char ** | notificationIds |
The unique identifiers of the notifications configured for this situation. More... | |
int | autoAcknowledgeTime |
The number of seconds after which a generated event state will be set to AutoAcked. More... | |
int | audibleLoopDelay |
The seconds to wait between audible notifications. More... | |
int | audiblePlayCount |
The amount of times to play audible notifications. More... | |
int | notificationIdSize |
The size of notificationIds. More... | |
int | severity |
The severity of the generated event, from 1 (highest) to 10 (lowest). More... | |
int | snoozeIntervalSize |
The size of snoozeIntervals. More... | |
int * | snoozeIntervals |
The default snooze intervals, in seconds, for a generated event. More... | |
Protected Member Functions | |
void | Clear () |
Clears this instance. More... | |
Represents a particular situation configuration that specifies how corresponding events shall be generated and handled when the situation is detected.
Definition at line 13 of file IVxSituation.h.
|
pure virtual |
Adds a notification to the list of notifications that this situation serves.
notification | The notification to be added. |
|
inlineprotected |
Clears this instance.
Definition at line 233 of file IVxSituation.h.
|
pure virtual |
Deletes this instance.
|
pure virtual |
Deletes this situation from the VideoXpert system.
|
pure virtual |
Gets the data sources associated with this situation.
Available filters: kAllTags, kAllPrivateTags, kModifiedSince.
dataSourceCollection | The data sources associated with this situation. |
|
pure virtual |
Gets the devices associated with this situation.
Available filters: kAllTags, kAllPrivateTags, kModifiedSince.
deviceCollection | The devices associated with this situation. |
|
pure virtual |
Gets the notifications associated with this situation.
Available filters: kModifiedSince.
notificationCollection | A VxCollection of notifications associated with this situation. |
|
pure virtual |
Associates a data source with this situation.
dataSource | The data source to associate the situation with. |
|
pure virtual |
Associates a device with this situation.
device | The device to associate the situation with. |
|
pure virtual |
Refreshes the member values for this object by retrieving its current information from the VideoXpert system.
|
pure virtual |
Removes a notification from the list of notifications that this situation serves.
notification | The notification to be removed. |
|
pure virtual |
Sets whether the generated events shall have an initial state of AckNeeded or NoAckNeeded.
isAckNeeded | True to set initial state to AckNeeded. False for NoAckNeeded. |
|
pure virtual |
Sets the audible loop delay property.
audibleLoopDelay | The audible loop delay value. |
|
pure virtual |
Sets the audible play count property.
audiblePlayCount | The audible play count value. |
|
pure virtual |
Sets whether a notification sound should play on supporting clients when an event is received.
shouldAudiblyNotify | True to audibly notify, otherwise false. |
|
pure virtual |
Sets the auto acknowledge time property.
autoAcknowledgeTime | The auto acknowledge time value. |
|
pure virtual |
Sets whether the notification banner on clients should be expanded by default.
shouldExpandBanner | True to expand banner, otherwise false. |
|
pure virtual |
Sets whether events generated from this situation shall be persisted or immediately be discarded.
shouldLog | True to log events, otherwise false. |
|
pure virtual |
Sets the name property.
name | The new name value. |
|
pure virtual |
Sets whether an event generated from the situation will generate notifications.
shouldNotify | True to send notifications, otherwise false. |
|
pure virtual |
Sets the severity property.
severity | The new severity value. |
|
pure virtual |
Sets the snooze intervals for a generated event.
snoozeIntervals | The snooze intervals, in seconds. |
snoozeIntervalSize | The size of snoozeIntervals. |
|
pure virtual |
Removes a data source association from this situation.
dataSource | The data source to remove association with. |
|
pure virtual |
Removes a device association from this situation.
device | The device to remove association with. |
int VxSdk::IVxSituation::audibleLoopDelay |
The seconds to wait between audible notifications.
Definition at line 207 of file IVxSituation.h.
int VxSdk::IVxSituation::audiblePlayCount |
The amount of times to play audible notifications.
Definition at line 211 of file IVxSituation.h.
int VxSdk::IVxSituation::autoAcknowledgeTime |
The number of seconds after which a generated event state will be set to AutoAcked.
Definition at line 203 of file IVxSituation.h.
bool VxSdk::IVxSituation::isAckNeeded |
Indicates whether the generated events shall have an initial state of AckNeeded or NoAckNeeded.
Definition at line 159 of file IVxSituation.h.
char VxSdk::IVxSituation::name[64] |
The friendly name of the situation.
Definition at line 179 of file IVxSituation.h.
char** VxSdk::IVxSituation::notificationIds |
The unique identifiers of the notifications configured for this situation.
Definition at line 199 of file IVxSituation.h.
int VxSdk::IVxSituation::notificationIdSize |
The size of notificationIds.
Definition at line 215 of file IVxSituation.h.
char VxSdk::IVxSituation::servicePropertyId[64] |
The name of the key in the properties map corresponding to the service identifier for the source of this situation, if any.
Definition at line 183 of file IVxSituation.h.
char VxSdk::IVxSituation::serviceType[64] |
Specifies the resource type of the service corresponding to the source of this situation, if any.
Definition at line 187 of file IVxSituation.h.
int VxSdk::IVxSituation::severity |
The severity of the generated event, from 1 (highest) to 10 (lowest).
Definition at line 219 of file IVxSituation.h.
bool VxSdk::IVxSituation::shouldAudiblyNotify |
Indicates whether a notification sound should play on supporting clients when an event is received.
Definition at line 163 of file IVxSituation.h.
bool VxSdk::IVxSituation::shouldExpandBanner |
Indicates whether the notification banner on clients should be expanded by default.
Definition at line 167 of file IVxSituation.h.
bool VxSdk::IVxSituation::shouldLog |
Indicates whether events generated from this situation shall be persisted or immediately be discarded.
Definition at line 171 of file IVxSituation.h.
bool VxSdk::IVxSituation::shouldNotify |
Indicates whether an event generated from the situation shall generate notifications.
Definition at line 175 of file IVxSituation.h.
int* VxSdk::IVxSituation::snoozeIntervals |
The default snooze intervals, in seconds, for a generated event.
Definition at line 227 of file IVxSituation.h.
int VxSdk::IVxSituation::snoozeIntervalSize |
The size of snoozeIntervals.
Definition at line 223 of file IVxSituation.h.
char VxSdk::IVxSituation::sourceDeviceId[64] |
The unique identifier of the source device.
Definition at line 191 of file IVxSituation.h.
char VxSdk::IVxSituation::type[128] |
The situation type.
Definition at line 195 of file IVxSituation.h.