This is very application specific (available modes etc.), but leaving it here for now.
#include <ApplicationSettings.h>
Public Types |
|
enum | { kAuthoringMode = 0, kViewingMode } |
Valid modes. More... |
|
Public Member Functions |
|
bool | setMode (int) |
bool | isAuthoringMode () const |
Set method returns true if the value had to
be modified. |
|
bool | setAuthoringMode () |
bool | isViewingMode () const |
bool | setViewingMode () |
Static Public Member Functions |
|
static ApplicationMode & | instance () |
Singleton access with lazy creation and
explicit destruction. |
|
static void | destruct () |
anonymous enum |
Valid modes.
Note that it may not be set to what you want, if the application is not allowed to do it. Return true if the value was changed (note - not if the value is set to what you was specified, but if the value is different than before.)
{ kAuthoringMode = 0, kViewingMode, };
static ApplicationMode& instance | ( | ) | [static] |
Singleton access with lazy creation and explicit destruction.
static void destruct | ( | ) | [static] |
bool setMode | ( | int | ) |
bool isAuthoringMode | ( | ) | const |
Set method returns true if the value had to be modified.
bool setAuthoringMode | ( | ) |
bool isViewingMode | ( | ) | const |
bool setViewingMode | ( | ) |