BALL
1.4.79
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
VIEW
KERNEL
UIOperationMode.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
5
#ifndef BALL_VIEW_KERNEL_UIOPERATIONMODE_H
6
#define BALL_VIEW_KERNEL_UIOPERATIONMODE_H
7
8
#ifndef BALL_CONCEPT_EMBEDDABLE_H
9
# include <
BALL/COMMON/global.h
>
10
#endif
11
12
#ifndef BALL_SYSTEM_MUTEX_H
13
# include <
BALL/SYSTEM/mutex.h
>
14
#endif
15
16
#include <boost/shared_ptr.hpp>
17
18
namespace
BALL
19
{
20
namespace
VIEW
21
{
25
class
BALL_VIEW_EXPORT
UIOperationMode
26
{
27
public
:
28
29
enum
OperationMode
30
{
31
MODE_FULL = 0,
32
MODE_ADVANCED
,
33
MODE_KIOSK
,
34
MODE_ALL
35
};
36
37
virtual
~
UIOperationMode
();
38
39
static
UIOperationMode
& instance();
40
41
OperationMode getMode();
42
void
setMode(OperationMode new_mode);
43
44
bool
isFull();
45
bool
isAdvanced();
46
bool
isKiosk();
47
48
protected
:
49
// prevent outside use of constructors
50
UIOperationMode
();
51
UIOperationMode
(
const
UIOperationMode
&);
52
const
UIOperationMode
& operator=(
const
UIOperationMode
&);
53
54
// our instance pointer
55
static
boost::shared_ptr<UIOperationMode>
instance_
;
56
57
static
Mutex
create_mutex_
;
58
59
OperationMode
mode_
;
60
};
61
}
62
}
63
64
#endif // BALL_VIEW_KERNEL_UIOPERATIONMODE_H
BALL::VIEW::UIOperationMode::mode_
OperationMode mode_
Definition:
UIOperationMode.h:59
BALL::TMutex< BALL_DEFAULT_MUTEX_TYPE >
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition:
COMMON/global.h:52
BALL::VIEW::UIOperationMode::MODE_ADVANCED
Definition:
UIOperationMode.h:32
BALL::VIEW::UIOperationMode::MODE_KIOSK
Definition:
UIOperationMode.h:33
mutex.h
BALL::VIEW::UIOperationMode::create_mutex_
static Mutex create_mutex_
Definition:
UIOperationMode.h:57
BALL::VIEW::UIOperationMode::instance_
static boost::shared_ptr< UIOperationMode > instance_
Definition:
UIOperationMode.h:55
global.h
BALL::VIEW::UIOperationMode
Definition:
UIOperationMode.h:25
BALL::VIEW::UIOperationMode::OperationMode
OperationMode
Definition:
UIOperationMode.h:29
Generated by
1.8.7