VirtualBox Main API
Public Member Functions | List of all members
IVetoEvent Interface Reference

Base abstract interface for veto events. More...

Inheritance diagram for IVetoEvent:
IEvent ICanShowWindowEvent IExtraDataCanChangeEvent

Public Member Functions

void addVeto (in wstring reason)
 Adds a veto on this event.
 
void isVetoed ([retval] out boolean result)
 If this event was vetoed.
 
void getVetos ([retval] out wstring[] result)
 Current veto reason list, if size is 0 - no veto.
 
void addApproval (in wstring reason)
 Adds an approval on this event.
 
void isApproved ([retval] out boolean result)
 If this event was approved.
 
void getApprovals ([retval] out wstring[] result)
 Current approval reason list, if size is 0 - no approvals.
 
- Public Member Functions inherited from IEvent
void setProcessed ()
 Internal method called by the system when all listeners of a particular event have called IEventSource::eventProcessed.
 
void waitProcessed (in long timeout, [retval] out boolean result)
 Wait until time outs, or this event is processed.
 

Additional Inherited Members

- Public Attributes inherited from IEvent
readonly attribute VBoxEventType type
 Event type.
 
readonly attribute IEventSource source
 Source of this event.
 
readonly attribute boolean waitable
 If we can wait for this event being processed.
 

Detailed Description

Base abstract interface for veto events.

Interface ID:
{7C5E945F-2354-4267-883F-2F417D216519}

Member Function Documentation

◆ addVeto()

void IVetoEvent::addVeto ( in wstring  reason)

Adds a veto on this event.

Parameters
reasonReason for veto, could be null or empty string.

◆ isVetoed()

void IVetoEvent::isVetoed ( [retval] out boolean  result)

If this event was vetoed.

Parameters
resultReason for veto.

◆ getVetos()

void IVetoEvent::getVetos ( [retval] out wstring[]  result)

Current veto reason list, if size is 0 - no veto.

Parameters
resultArray of reasons for veto provided by different event handlers.

◆ addApproval()

void IVetoEvent::addApproval ( in wstring  reason)

Adds an approval on this event.

Parameters
reasonReason for approval, could be null or empty string.

◆ isApproved()

void IVetoEvent::isApproved ( [retval] out boolean  result)

If this event was approved.

◆ getApprovals()

void IVetoEvent::getApprovals ( [retval] out wstring[]  result)

Current approval reason list, if size is 0 - no approvals.

Parameters
resultArray of reasons for approval provided by different event handlers.