The Sword Project: curlftpt.h Source File |
00001 #ifndef CURLFTPT_H 00002 #define CURLFTPT_H 00003 00004 #include <defs.h> 00005 #include <ftptrans.h> 00006 00007 SWORD_NAMESPACE_START 00008 00009 class CURL; 00010 00011 // initialize/cleanup SYSTEMWIDE library with life of this static. 00012 class CURLFTPTransport_init { 00013 public: 00014 CURLFTPTransport_init(); 00015 ~CURLFTPTransport_init(); 00016 }; 00017 00018 00019 class SWDLLEXPORT CURLFTPTransport : public FTPTransport { 00020 CURL *session; 00021 00022 public: 00023 CURLFTPTransport(const char *host, StatusReporter *statusReporter = 0); 00024 ~CURLFTPTransport(); 00025 00026 virtual char getURL(const char *destPath, const char *sourceURL, SWBuf *destBuf = 0); 00027 }; 00028 00029 00030 SWORD_NAMESPACE_END 00031 00032 #endif
The SWORD Project; P. O. Box 2528; Tempe, AZ 85280-2528 USA |