Loading...
Searching...
No Matches
UIOperationMode.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_KERNEL_UIOPERATIONMODE_H
#define BALL_VIEW_KERNEL_UIOPERATIONMODE_H
#ifndef BALL_CONCEPT_EMBEDDABLE_H
# include <BALL/COMMON/global.h>
#endif
#ifndef BALL_SYSTEM_MUTEX_H
# include <BALL/SYSTEM/mutex.h>
#endif
#include <boost/shared_ptr.hpp>
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT UIOperationMode
{
public:
enum OperationMode
{
MODE_FULL = 0,
MODE_ADVANCED,
MODE_KIOSK,
MODE_ALL
};
virtual ~UIOperationMode();
static UIOperationMode& instance();
OperationMode getMode();
void setMode(OperationMode new_mode);
bool isFull();
bool isAdvanced();
bool isKiosk();
protected:
// prevent outside use of constructors
UIOperationMode();
UIOperationMode(const UIOperationMode&);
const UIOperationMode& operator=(const UIOperationMode&);
// our instance pointer
static boost::shared_ptr<UIOperationMode> instance_;
static Mutex create_mutex_;
OperationMode mode_;
};
}
}
#endif // BALL_VIEW_KERNEL_UIOPERATIONMODE_H
global.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::VIEW::UIOperationMode::isAdvanced
bool isAdvanced()
BALL::VIEW::UIOperationMode::UIOperationMode
UIOperationMode()
BALL::VIEW::UIOperationMode::getMode
OperationMode getMode()
BALL::VIEW::UIOperationMode::instance
static UIOperationMode & instance()
BALL::VIEW::UIOperationMode::create_mutex_
static Mutex create_mutex_
Definition UIOperationMode.h:57
BALL::VIEW::UIOperationMode::~UIOperationMode
virtual ~UIOperationMode()
BALL::VIEW::UIOperationMode::instance_
static boost::shared_ptr< UIOperationMode > instance_
Definition UIOperationMode.h:55
BALL::VIEW::UIOperationMode::OperationMode
OperationMode
Definition UIOperationMode.h:30
BALL::VIEW::UIOperationMode::MODE_KIOSK
@ MODE_KIOSK
Definition UIOperationMode.h:33
BALL::VIEW::UIOperationMode::MODE_ADVANCED
@ MODE_ADVANCED
Definition UIOperationMode.h:32
BALL::VIEW::UIOperationMode::MODE_ALL
@ MODE_ALL
Definition UIOperationMode.h:34
BALL::VIEW::UIOperationMode::MODE_FULL
@ MODE_FULL
Definition UIOperationMode.h:31
BALL::VIEW::UIOperationMode::isFull
bool isFull()
BALL::VIEW::UIOperationMode::setMode
void setMode(OperationMode new_mode)
BALL::VIEW::UIOperationMode::isKiosk
bool isKiosk()
BALL::VIEW::UIOperationMode::operator=
const UIOperationMode & operator=(const UIOperationMode &)
BALL::VIEW::UIOperationMode::UIOperationMode
UIOperationMode(const UIOperationMode &)
BALL::VIEW::UIOperationMode::mode_
OperationMode mode_
Definition UIOperationMode.h:59
mutex.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::Mutex
TMutex< BALL_DEFAULT_MUTEX_TYPE > Mutex
Definition mutex.h:224