BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  {
26  {
27  public:
28 
30  {
31  MODE_FULL = 0,
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
52  const UIOperationMode& operator=(const UIOperationMode&);
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
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52
static boost::shared_ptr< UIOperationMode > instance_