Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
UI
NativeAlerts
ISingleOptionAlertBoxDismissedHandler.h
1
// Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2
3
#pragma once
4
5
#include <string>
6
7
namespace
Eegeo
8
{
9
namespace
UI
10
{
11
namespace
NativeAlerts
12
{
13
class
ISingleOptionAlertBoxDismissedHandler
14
{
15
public
:
16
virtual
~
ISingleOptionAlertBoxDismissedHandler
() {}
17
18
virtual
void
HandleAlertBoxDismissed()=0;
19
};
20
21
template
<
class
T>
22
class
TSingleOptionAlertBoxDismissedHandler
:
public
ISingleOptionAlertBoxDismissedHandler
23
{
24
private
:
25
void (T::*m_callback)();
26
T* m_context;
27
public
:
28
TSingleOptionAlertBoxDismissedHandler
(T* context,
void
(T::*callback)())
29
: m_callback(callback)
30
, m_context(context)
31
{
32
}
33
34
virtual
void
HandleAlertBoxDismissed()
35
{
36
(*m_context.*m_callback)();
37
}
38
};
39
}
40
}
41
}
Generated on Sat Jun 10 2023 02:00:34 for eeGeo Platform SDK by
1.8.3.1