![]() |
AppEasy Core SDK
1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
|
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_FACEBOOK_H_) 00015 #define _CCZ_PLATFORM_FACEBOOK_H_ 00016 00017 #include "IzPlatformFacebook.h" 00018 #include "CzString.h" 00019 00020 class CzPlatformFacebook: public IzPlatformFacebook 00021 { 00022 // Properties 00023 protected: 00024 bool Available; 00025 CzString AppID; 00026 public: 00027 void setAppID(const char* app_id) { AppID = app_id; } 00028 bool isAvailable() const { return Available; } 00029 bool isLoggedIn() const { return SessionStatus == FB_LOGGED_IN;; } 00030 // Properties end 00031 00032 public: 00033 CzPlatformFacebook() {} 00034 int Init(); 00035 void Release(); 00036 00037 bool Login(); 00038 bool Logout(); 00039 bool PostWall(const char* message, const char* link_uri, const char* image_uri, const char* name, const char* description); 00040 00041 // Internal 00042 protected: 00043 public: 00044 }; 00045 00046 00047 #endif // _CCZ_PLATFORM_FACEBOOK_H_