![]() |
C++/CLI Sample
Demonstrates how to create a C++/CLI library using the VideoXpert SDK
|
The Schedule class represents a recording schedule. A schedule is a group of 0 or more resources associated with a set of time and/or event based schedule triggers that, when any are active, cause the scheduled action to be performed. More...
#include <Schedule.h>
Public Types | |
enum | Actions { Actions::Unknown, Actions::EventSourceRecord, Actions::Record } |
Values that represent schedule recording actions. More... | |
Public Member Functions | |
Schedule (VxSdk::IVxSchedule *vxSchedule) | |
Constructor. More... | |
virtual | ~Schedule () |
Destructor. More... | |
!Schedule () | |
Finaliser. More... | |
CPPCli::Results::Value | AddScheduleTrigger (CPPCli::NewScheduleTrigger^ newScheduleTrigger) |
Add a new schedule trigger to the schedule. More... | |
CPPCli::Results::Value | DeleteScheduleTrigger (CPPCli::ScheduleTrigger^ scheduleTrigger) |
Delete a schedule trigger from the schedule. This will delete the schedule trigger from any other schedules as well. More... | |
System::Collections::Generic::List< DataSource^ >^ | GetLinks () |
Get the data sources linked to the schedule. More... | |
Results::Value | Link (System::Collections::Generic::List< DataSource^ >^dataSources) |
Add data sources to the schedule. More... | |
Results::Value | Refresh () |
Update this instances properties. More... | |
Results::Value | Unlink (System::Collections::Generic::List< DataSource^ >^dataSources) |
Delete existing data sources from the schedule. More... | |
Package Functions | |
System::Collections::Generic::List< ScheduleTrigger^ >^ | _GetScheduleTriggers () |
Package Attributes | |
VxSdk::IVxSchedule * | _schedule |
Properties | |
System::Collections::Generic::List< ScheduleTrigger^ >^ | ScheduleTriggers [get] |
Gets the schedule triggers associated with this schedule. More... | |
Actions | Action [get, set] |
Gets or sets the action performed when the schedule is active. More... | |
System::String^ | Id [get] |
Gets the unique identifier of the schedule. More... | |
System::String^ | Name [get, set] |
Gets or sets the friendly name of the schedule. More... | |
bool | UseAllDataSources [get, set] |
Gets or sets a value indicating whether the schedule applies to all data sources. More... | |
The Schedule class represents a recording schedule. A schedule is a group of 0 or more resources associated with a set of time and/or event based schedule triggers that, when any are active, cause the scheduled action to be performed.
Definition at line 17 of file Schedule.h.
|
strong |
Values that represent schedule recording actions.
Enumerator | |
---|---|
Unknown |
An error or unknown value was returned. |
EventSourceRecord |
Record only the resource (associated with the Schedule) that was the source of the event causing the schedule trigger to activate. |
Record |
Record all resources associated with the schedule. |
Definition at line 23 of file Schedule.h.
CPPCli::Schedule::Schedule | ( | VxSdk::IVxSchedule * | vxSchedule | ) |
|
inlinevirtual |
Destructor.
Definition at line 44 of file Schedule.h.
CPPCli::Schedule::!Schedule | ( | ) |
|
package |
Definition at line 140 of file Schedule.cpp.
CPPCli::Results::Value CPPCli::Schedule::AddScheduleTrigger | ( | CPPCli::NewScheduleTrigger^ | newScheduleTrigger | ) |
Add a new schedule trigger to the schedule.
newScheduleTrigger | The new schedule trigger to add. |
Definition at line 17 of file Schedule.cpp.
CPPCli::Results::Value CPPCli::Schedule::DeleteScheduleTrigger | ( | CPPCli::ScheduleTrigger^ | scheduleTrigger | ) |
Delete a schedule trigger from the schedule. This will delete the schedule trigger from any other schedules as well.
scheduleTrigger | The schedule trigger to delete. |
Definition at line 79 of file Schedule.cpp.
List< CPPCli::DataSource^ > CPPCli::Schedule::GetLinks | ( | ) |
Get the data sources linked to the schedule.
List
containing the data sources linked to the schedule.Definition at line 84 of file Schedule.cpp.
CPPCli::Results::Value CPPCli::Schedule::Link | ( | System::Collections::Generic::List< DataSource^ >^ | dataSources | ) |
Add data sources to the schedule.
dataSources | A List containing the data sources to be added. |
Definition at line 109 of file Schedule.cpp.
CPPCli::Results::Value CPPCli::Schedule::Refresh | ( | ) |
Update this instances properties.
Definition at line 123 of file Schedule.cpp.
CPPCli::Results::Value CPPCli::Schedule::Unlink | ( | System::Collections::Generic::List< DataSource^ >^ | dataSources | ) |
Delete existing data sources from the schedule.
dataSources | A List containing the data sources to be deleted. |
Definition at line 127 of file Schedule.cpp.
|
package |
Definition at line 146 of file Schedule.h.
|
getset |
Gets or sets the action performed when the schedule is active.
The Action.
Definition at line 106 of file Schedule.h.
|
get |
Gets the unique identifier of the schedule.
The unique identifier.
Definition at line 116 of file Schedule.h.
|
getset |
Gets or sets the friendly name of the schedule.
The friendly name.
Definition at line 125 of file Schedule.h.
|
get |
Gets the schedule triggers associated with this schedule.
The List
of schedule triggers associated with this schedule.
Definition at line 97 of file Schedule.h.
|
getset |
Gets or sets a value indicating whether the schedule applies to all data sources.
true
if this schedule applies to all data sources, false
if not.
Definition at line 139 of file Schedule.h.