AppEasy Core SDK  1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
CzSettings.h
Go to the documentation of this file.
00001 // 
00002 //
00003 // AppEasy SDK - Cross Platform Multi-purpose Game and App Engine
00004 //
00005 // Developed by Matthew Hopwood of Pocketeers Limited - www.pocketeers.co.uk
00006 //
00007 // For updates, tutorials and more details check out www.appeasymobile.com
00008 //
00009 // This code is provided free of charge and without any warranty whatsoever. You must ensure that this whole notice is present in all files and derivatives, so the reader knows its origin.
00010 // If you use this SDK in your product then please ensure that you credit AppEasy's usage appropriately. Please see www.appeasymobile.com for licensing details and support
00011 //
00012 //
00013 
00014 #if !defined(_CZ_SETTINGS_H_)
00015 #define _CZ_SETTINGS_H_
00016 
00017 #include "CzUtil.h"
00018 #include "CzString.h"
00019 
00020 /**
00021  @addtogroup Core
00022  @{
00023  */
00024 
00025 
00026 #define CZ_SETTINGS CzSettings::getInstance()
00027 
00028 /**
00029  @class CzSettings
00030 
00031  @brief CzSettings is a settings class that controls various settings of the AppEasy engine.
00032 
00033  CzSettings::Init() is called from CzApp::Init(), which loads optional settings from the AppEasy.xml settings file.
00034 
00035  */
00036 
00037 class CzSettings
00038 {
00039 public:
00040     CDEFINE_SINGLETON(CzSettings)
00041 
00042 protected:
00043     // Properties
00044     bool        PreventPowerSaving;             ///< Enable / disable power saving
00045     CzString    FacebookAppID;                  ///< Facebook App ID
00046 
00047 public:
00048     bool            getPreventPowerSaving() const               { return PreventPowerSaving; }
00049     void            setPreventPowerSaving(bool enable)          { PreventPowerSaving = enable; }
00050     const CzString& getFacebookAppID() const                    { return FacebookAppID; }
00051     void            setFacebookAppID(const char* facebook_id)   { FacebookAppID = facebook_id; }
00052     // Properties end
00053 
00054 protected:
00055 
00056 public:
00057     int     Init();
00058     void    Release();
00059 
00060 };
00061 
00062 /// @}
00063 
00064 #endif // _CZ_SETTINGS_H_