a7d389fbff436fb217a78d48fab17adcaf43dc54vboxsync * VirtualBox COM IEvent implementation
0d0253c4c63a28f67509d37a41df855173e94ee1vboxsync * Copyright (C) 2010-2014 Oracle Corporation
a7d389fbff436fb217a78d48fab17adcaf43dc54vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
a7d389fbff436fb217a78d48fab17adcaf43dc54vboxsync * available from http://www.virtualbox.org. This file is free software;
a7d389fbff436fb217a78d48fab17adcaf43dc54vboxsync * you can redistribute it and/or modify it under the terms of the GNU
a7d389fbff436fb217a78d48fab17adcaf43dc54vboxsync * General Public License (GPL) as published by the Free Software
a7d389fbff436fb217a78d48fab17adcaf43dc54vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
a7d389fbff436fb217a78d48fab17adcaf43dc54vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
a7d389fbff436fb217a78d48fab17adcaf43dc54vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
a7d389fbff436fb217a78d48fab17adcaf43dc54vboxsync // public initializer/uninitializer for internal purposes only
7d913420297c8662dd9523fbf927125b3ed48814vboxsync HRESULT init(IEventSource *aSource, VBoxEventType_T aType, BOOL aWaitable);
0d0253c4c63a28f67509d37a41df855173e94ee1vboxsync // wrapped IEvent properties
0d0253c4c63a28f67509d37a41df855173e94ee1vboxsync // wrapped IEvent methods
0d0253c4c63a28f67509d37a41df855173e94ee1vboxsync HRESULT waitProcessed(LONG aTimeout, BOOL *aResult);
2c7402dd06f73977076fdbc86bb9f1c0c2be17f9vboxsync // public initializer/uninitializer for internal purposes only
7d913420297c8662dd9523fbf927125b3ed48814vboxsync HRESULT init(IEventSource *aSource, VBoxEventType_T aType);
0d0253c4c63a28f67509d37a41df855173e94ee1vboxsync // wrapped IEvent properties
0d0253c4c63a28f67509d37a41df855173e94ee1vboxsync // wrapped IEvent methods
0d0253c4c63a28f67509d37a41df855173e94ee1vboxsync HRESULT waitProcessed(LONG aTimeout, BOOL *aResult);
0d0253c4c63a28f67509d37a41df855173e94ee1vboxsync // wrapped IVetoEvent methods
0d0253c4c63a28f67509d37a41df855173e94ee1vboxsync HRESULT getVetos(std::vector<com::Utf8Str> &aResult);
a7d389fbff436fb217a78d48fab17adcaf43dc54vboxsync // public initializer/uninitializer for internal purposes only
0d0253c4c63a28f67509d37a41df855173e94ee1vboxsync // wrapped IEventSource methods
0d0253c4c63a28f67509d37a41df855173e94ee1vboxsync HRESULT createListener(ComPtr<IEventListener> &aListener);
0d0253c4c63a28f67509d37a41df855173e94ee1vboxsync HRESULT createAggregator(const std::vector<ComPtr<IEventSource> > &aSubordinates,
0d0253c4c63a28f67509d37a41df855173e94ee1vboxsync HRESULT registerListener(const ComPtr<IEventListener> &aListener,
0d0253c4c63a28f67509d37a41df855173e94ee1vboxsync HRESULT unregisterListener(const ComPtr<IEventListener> &aListener);
0d0253c4c63a28f67509d37a41df855173e94ee1vboxsync HRESULT getEvent(const ComPtr<IEventListener> &aListener,
0d0253c4c63a28f67509d37a41df855173e94ee1vboxsync HRESULT eventProcessed(const ComPtr<IEventListener> &aListener,
7d913420297c8662dd9523fbf927125b3ed48814vboxsync * This function to be used with some care, as arguments order must match
7d913420297c8662dd9523fbf927125b3ed48814vboxsync * attribute declaration order event class and its superclasses up to
7d913420297c8662dd9523fbf927125b3ed48814vboxsync * IEvent. If unsure, consult implementation in generated VBoxEvents.cpp.
7d913420297c8662dd9523fbf927125b3ed48814vboxsync HRESULT init(IEventSource* aSource, VBoxEventType_T aType, ...);
7d913420297c8662dd9523fbf927125b3ed48814vboxsync * Function similar to the above, but assumes that init() for this type
7d913420297c8662dd9523fbf927125b3ed48814vboxsync * already called once, so no need to allocate memory, and only reinit
7d913420297c8662dd9523fbf927125b3ed48814vboxsync * fields. Assumes event is subtype of IReusableEvent, asserts otherwise.
7d913420297c8662dd9523fbf927125b3ed48814vboxsync int rc = mEventSource->FireEvent(mEvent, aTimeout, &fDelivered);
a7d389fbff436fb217a78d48fab17adcaf43dc54vboxsync#endif // ____H_EVENTIMPL