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
CzPlatformSys.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(_CCZ_PLATFORM_SYS_H_)
00015 #define _CCZ_PLATFORM_SYS_H_
00016 
00017 #include "IzPlatformSys.h"
00018 
00019 class CzPlatformSys : public IzPlatformSys
00020 {
00021     // Properties
00022 protected:
00023 public:
00024     // Properties end
00025 public:
00026     CzPlatformSys() : IzPlatformSys() {}
00027 
00028     int     Init();
00029     void    Release();
00030 
00031     // Backlight
00032     void    BacklightOn();
00033 
00034     // Time
00035     uint64  getTimeInMs();
00036     int64   getTimeUTC();
00037 
00038     // OS calls
00039     void    YieldToOS(int time_ms);
00040     bool    ExecuteViaOS(const char* name, bool exit_app);
00041     void    RequestQuit();
00042 
00043     // Event notification
00044     void    NotifySuspended();
00045     void    NotifyResumed();
00046     void    NotifyVolumeUp();
00047     void    NotifyVolumeDown();
00048     void    NotifyNetworkOnline();
00049     void    NotifyNetworkOffline();
00050     void    NotifyScreenSizeChanged();
00051 
00052     // App exit
00053     bool    CheckAppQuit();
00054 
00055     // Memory
00056     int     getFreeMemory() const;
00057     int     getUsedMemory() const;
00058     void*   Malloc(int size);
00059     void*   Realloc(void* mem, int size);
00060     void    Free(void* mem);
00061 
00062     // Console output
00063     void    ConsoleWrite(const char* message);
00064 
00065     // Device type query
00066     eCzDeviceType   getDeviceType();
00067 
00068     // Device OS version query
00069     const char*     getDeviceOSVersion();
00070 
00071     // Device UDID
00072     int             getDeviceUDID();
00073 
00074     // Device language locale
00075     const char*     getDeviceLocale();
00076 
00077     // Endianness query
00078     bool            isLittleEndian();
00079 };
00080 
00081 
00082 #endif  // _CCZ_PLATFORM_SYS_H_