BALL 1.5.0
Loading...
Searching...
No Matches
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
18namespace BALL
19{
20 namespace VIEW
21 {
26 {
27 public:
28
30 {
31 MODE_FULL = 0,
34 MODE_ALL
35 };
36
38
40
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
53
54 // our instance pointer
55 static boost::shared_ptr<UIOperationMode> instance_;
56
58
60 };
61 }
62}
63
64#endif // BALL_VIEW_KERNEL_UIOPERATIONMODE_H
static UIOperationMode & instance()
static boost::shared_ptr< UIOperationMode > instance_
void setMode(OperationMode new_mode)
const UIOperationMode & operator=(const UIOperationMode &)
UIOperationMode(const UIOperationMode &)
#define BALL_VIEW_EXPORT