My Project
Public Member Functions | Static Public Member Functions | List of all members
CMyApp Class Reference
Inheritance diagram for CMyApp:
ParaEngine::CAutoUpdaterApp NPL::IAutoUpdaterClient::IAutoUpdaterCallback

Public Member Functions

 CMyApp (HINSTANCE hInst=NULL)
 
bool DoAutoUpdate (const char *lpCmdLine)
 do auto update and display the progress More...
 
bool CheckLoad ()
 load the ParaEngine plug in dll if not. More...
 
int Run (HINSTANCE hInst, const char *lpCmdLine)
 run the application
 
void AutoUpdaterTimerProc (HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
 timer callback for auto updater
 
virtual void OnProgress (const NPL::IAutoUpdaterClient::ProgressMessage &msg)
 auto updater call back. More...
 
- Public Member Functions inherited from ParaEngine::CAutoUpdaterApp
virtual int SetCommandLine (const char *sCmdLine)
 init command line so that we can use IPC calls before calling Run() method. More...
 
virtual int SetAppDir ()
 set working directory More...
 
virtual bool BeginCoreUpdate (const char *sCurVersion, const char *sSessionDir)
 begin core update. More...
 
virtual bool SendHostMsg (int nMsg, DWORD param1=0, DWORD param2=0, const char *filename=NULL, const char *sCode=NULL, int nPriority=0)
 sent interprocess message to the host process. More...
 
virtual void SendError (int nErrorCode, const char *errorMsg=NULL)
 send error message to host app. More...
 
virtual void SendLog (const char *logMsg)
 send log message to host app. More...
 
virtual bool IsUrlTrusted (const std::string &sUrl)
 whether the url is from a trusted web domain. More...
 

Static Public Member Functions

static LRESULT CALLBACK AutoUpdaterWndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 window procedure for a very simple auto updater
 

Additional Inherited Members

- Public Types inherited from ParaEngine::CAutoUpdaterApp
typedef std::list< std::string > Domain_Map_t
 
- Protected Member Functions inherited from ParaEngine::CAutoUpdaterApp
bool TryGetNextCoreUpdateMessage ()
 
NPL::CAutoUpdaterClientCreateGetAutoUpdater ()
 
void ReleaseAutoUpdater ()
 
int DoCoreUpdate_imp ()
 update the core game engine. More...
 
- Static Protected Member Functions inherited from ParaEngine::CAutoUpdaterApp
static int MatchFilePattern (const std::string &input, const std::string &sPattern)
 whether the input string match a given file pattern. More...
 
static bool IsAlphaNumeric (char c)
 
- Protected Attributes inherited from ParaEngine::CAutoUpdaterApp
std::string m_sCmdLine
 
CCommandLineParserm_pCmdLineParams
 
bool m_bAutoUpdateComplete
 
NPL::CAutoUpdaterClientm_pAutoUpdater
 
Domain_Map_t m_trusted_domains
 

Member Function Documentation

§ CheckLoad()

bool CMyApp::CheckLoad ( )

load the ParaEngine plug in dll if not.

Returns
true if loaded.

§ DoAutoUpdate()

bool CMyApp::DoAutoUpdate ( const char *  lpCmdLine)

do auto update and display the progress

now do auto update.

§ OnProgress()

void CMyApp::OnProgress ( const NPL::IAutoUpdaterClient::ProgressMessage msg)
virtual

auto updater call back.

Reimplemented from ParaEngine::CAutoUpdaterApp.


The documentation for this class was generated from the following file: