File Index Symbol Index

#include "WindowsCallbackService.h"
namespace
vl
{
namespace
presentation
{
namespace
windows
{
/*********************************************************************** WindowsCallbackService ***********************************************************************/
WindowsCallbackService
::
WindowsCallbackService
() { }
bool
WindowsCallbackService
::
InstallListener
(
INativeControllerListener
*
listener
) {
if
(
listeners
.
Contains
(
listener
)) {
return
false
; }
else
{
listeners
.
Add
(
listener
);
return
true
; } }
bool
WindowsCallbackService
::
UninstallListener
(
INativeControllerListener
*
listener
) {
if
(
listeners
.
Contains
(
listener
)) {
listeners
.
Remove
(
listener
);
return
true
; }
else
{
return
false
; } }
void
WindowsCallbackService
::
InvokeGlobalTimer
() {
for
(
vint
i
=
0
;
i
<
listeners
.
Count
();
i
++) {
listeners
[
i
]->
GlobalTimer
(); } }
void
WindowsCallbackService
::
InvokeClipboardUpdated
() {
for
(
vint
i
=
0
;
i
<
listeners
.
Count
();
i
++) {
listeners
[
i
]->
ClipboardUpdated
(); } }
void
WindowsCallbackService
::
InvokeNativeWindowCreated
(
INativeWindow
*
window
) {
for
(
vint
i
=
0
;
i
<
listeners
.
Count
();
i
++) {
listeners
[
i
]->
NativeWindowCreated
(
window
); } }
void
WindowsCallbackService
::
InvokeNativeWindowDestroyed
(
INativeWindow
*
window
) {
for
(
vint
i
=
0
;
i
<
listeners
.
Count
();
i
++) {
listeners
[
i
]->
NativeWindowDestroying
(
window
); } } } } }