#pragma once #include "kcontrol.hpp" #include "kcachemgr.hpp" namespace Hxsoft{namespace XFrame{ class xfApp : public xbObject { public: int OnIdle(int nLevel); int Idle(DWORD dwTime); public: int InitApp(); int ExitApp(); public: int AddhWnd(HWND hWnd); int RemovehWnd(HWND hWnd); public: int XFrameStartUp(HINSTANCE hInstance,DWORD dwIcon,DWORD dwIconSm); int XFrameShutDown(HINSTANCE hInstance); HINSTANCE GetInstance(); public: static xfApp * GetApp(); public: const wchar_t* GetServerUrl(); public: void InitObjectMgr(); public: xfCacheMgr* GetCacheMgr(); public: static int trace(LPCTSTR pstr); public: int Run(); }; }}