AuboCaps
0.4.1
Main Page
Namespaces
Classes
Files
File List
File Members
include
aubo_caps
domain
user_interface
keyboard_input_callback.h
Go to the documentation of this file.
1
#ifndef AUBO_SCOPE_KEYBOARD_INPUT_CALLBACK_H
2
#define AUBO_SCOPE_KEYBOARD_INPUT_CALLBACK_H
3
4
namespace
arcs
{
5
namespace
aubo_scope {
6
7
/**
8
* Callback used when the virtual keyboard/keypad is exited by the end user.
9
* Override this abstract class to execute custom code when the end user accepts
10
* or cancels the input.
11
*
12
* @param <T> The (generic) type parameter for the interface representing the
13
* type of input data entered by the end user, e.g. {@link Integer} and {@link
14
* Double}.
15
*/
16
template
<
typename
T>
17
struct
KeyboardInputCallback
18
{
19
/**
20
* This method is called if the end user accepts the keyboard/keypad input.
21
* Overriding this method is mandatory.
22
*
23
* @param value accepted value.
24
*/
25
virtual
void
onOk
(T value) = 0;
26
27
/**
28
* This method is called if the end user cancels the input. Overriding this
29
* method is optional.
30
*/
31
virtual
void
onCancel
() {}
32
};
33
34
}
// namespace aubo_scope
35
}
// namespace arcs
36
37
#endif
arcs::aubo_scope::KeyboardInputCallback::onOk
virtual void onOk(T value)=0
This method is called if the end user accepts the keyboard/keypad input.
arcs::aubo_scope::KeyboardInputCallback
Callback used when the virtual keyboard/keypad is exited by the end user.
Definition:
keyboard_input_callback.h:17
arcs::aubo_scope::KeyboardInputCallback::onCancel
virtual void onCancel()
This method is called if the end user cancels the input.
Definition:
keyboard_input_callback.h:31
arcs
Definition:
contribution_provider.h:7
Generated by
1.8.11