Main Page | Class List | File List | Class Members | Related Pages

WDS::CDlgUpdate Class Reference

#include <dlgupdate.h>

Collaboration diagram for WDS::CDlgUpdate:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CDlgUpdate (wxWindow *pParent, CProfile *profile)
const HTTP::GetRequestGetHTTPRequest ()

Protected Member Functions

bool CheckDownload ()

Detailed Description

The class CDlgUpdate handles the transfer-process from the phpmap to the WDSMap.
For detailed information about how to process the data see: Spezifikation für die Interaktion WDSMap <=> phpmap-Server

Example of how to use this class:
 CDlgUpdate dlg( this, CProfileManager::GetCurrentProfile() );
 dlg.Center();
 if( dlg.ShowModal() == wxID_OK )
 {
     // wxID_OK means update was successful
     std::string strUpdate = dlg.GetUpdateString( );
     // strUpdate contains all new data
 } else {
     // an error occured (Cancel pressed or transfer error), but the
     // CDlgUpdate already handeld all that, so you don't have to care
     // about the "else"-part.
 }

Todo:
We have yet to decide to use a wxThread, if the timer-based solution does not work that good.

Definition at line 61 of file dlgupdate.h.


Constructor & Destructor Documentation

WDS::CDlgUpdate::CDlgUpdate wxWindow *  pParent,
CProfile profile
 

constructor

Parameters:
pParent parent window
profile profile that contains server, user and password

Definition at line 47 of file dlgupdate.cpp.


Member Function Documentation

bool WDS::CDlgUpdate::CheckDownload  )  [protected]
 

Wertet die runtergeladenen Daten aus. Dabei werden Fehler und Version der wdsmap geprüft und der Timestamp wird aktualisiert.

Returns:
true on success

Definition at line 264 of file dlgupdate.cpp.

References HTTP::GetRequest::getData(), HTTP::GetRequest::getHeaderAsInt(), and HTTP::GetRequest::getHeaderAsString().

Here is the call graph for this function:

const HTTP::GetRequest * WDS::CDlgUpdate::GetHTTPRequest  ) 
 

get the HTTP::GetRequest instance. This way you can get all header-information via HTTP::GetRequest::GetHeaderValue("key");

Returns:
const pointer to http requester or NULL on error

Definition at line 131 of file dlgupdate.cpp.


The documentation for this class was generated from the following files:
Generated on Sun Jan 16 18:20:27 2005 for WDSMap by  doxygen 1.3.9.1