00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00014
00015 #ifndef _WXCURLDAV_H__INCLUDED_
00016 #define _WXCURLDAV_H__INCLUDED_
00017
00018 #include <stddef.h>
00019
00020 #include <wx/event.h>
00021 #include <wx/window.h>
00022 #include <wx/string.h>
00023 #include <wx/datetime.h>
00024 #include <wx/dynarray.h>
00025
00026 #include <wx/curl/http.h>
00027
00028 class wxXmlNode;
00029
00030
00032 class WXDLLIMPEXP_CURL wxCurlDAV : public wxCurlHTTP
00033 {
00034 public:
00035 wxCurlDAV(const wxString& szURL = wxEmptyString,
00036 const wxString& szUserName = wxEmptyString,
00037 const wxString& szPassword = wxEmptyString,
00038 wxEvtHandler* pEvtHandler = NULL,
00039 long flags = wxCURL_DEFAULT_FLAGS);
00040 virtual ~wxCurlDAV();
00041
00042
00043
00044
00045 bool Mkcol(const wxString& szRemoteCol = wxEmptyString);
00046
00047
00048 bool Propfind(const wxString& szRemoteLoc = wxEmptyString);
00049 bool Propfind(const wxArrayString& arrTags, const wxString& szRemoteLoc = wxEmptyString);
00050 bool Propfind(const char* buffer, size_t size, const wxString& szRemoteLoc = wxEmptyString);
00051 bool Propfind(wxInputStream& buffer, const wxString& szRemoteLoc = wxEmptyString);
00052
00053
00054 bool Proppatch(const char* buffer, size_t size, const wxString& szRemoteLoc = wxEmptyString);
00055 bool Proppatch(wxInputStream& buffer, const wxString& szRemoteLoc = wxEmptyString);
00056
00057
00058 bool Copy(const wxString& szRemoteLocDest, const bool& bOverwrite = true, const wxString& szRemoteLocSrc = wxEmptyString);
00059
00060
00061 bool Move(const wxString& szRemoteLocDest, const bool& bOverwrite = true, const wxString& szRemoteLocSrc = wxEmptyString);
00062
00063
00064 bool Lock(const wxString& szRemotLoc = wxEmptyString);
00065
00066
00067 bool Unlock(const wxString& szRemoteLoc = wxEmptyString);
00068
00069 protected:
00070
00071
00072 virtual wxString ConstructPropfindXml(const wxArrayString& arrTags);
00073
00074 private:
00075
00076 };
00077
00078 #endif // _WXCURLDAV_H__INCLUDED_