My Project
D:/source/c++/Programme/sally/sally/sallyAPI/FacebookDB.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 #pragma once
00029 #include <tchar.h>
00030 #include "Define.h"
00031 #include "GUIBaseObject.h"
00032 #include "StatusMessage.h"
00033 
00034 namespace SallyAPI
00035 {
00036         namespace Facebook
00037         {
00038 
00039                 class DLL_API_SALLY CFacebookDB
00040                 {
00041                 private:
00042                         static SallyAPI::Facebook::CFacebookDB* m_pObject;
00043 
00044                         std::string m_strMediaFolder;
00045                         std::string m_strDatabaseFile;
00046 
00047                         void CheckDatabaseExists();
00048                         void AddNewStatus();
00049                         void UpdateFriend(const std::string& userId, const std::string& name);
00050                         void AddStatus(const std::string& statusId, const std::string& userId, const std::string& messageString, const std::string& explicidAppName, const std::string& appName, const std::string& action, const std::string& actionName, const std::string& createDate);
00051                         void CleanUp();
00052 
00053                         CFacebookDB();
00054                         ~CFacebookDB();
00055                 public:
00056                         static SallyAPI::Facebook::CFacebookDB* GetInstance();
00057                         static void     DeleteInstance();
00058 
00059                         std::vector<std::string>        GetFriendIds();
00060                         std::vector<SallyAPI::Facebook::CStatusMessage> GetLastMessages(int count);
00061                         bool                                            UpdateStatusMessages(SallyAPI::GUI::CGUIBaseObject* mainWindow);
00062                 };
00063         }
00064 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines