1 #include <rtl/ustring.hxx> 2 #include "curl.hxx" 3 4 namespace ftp { 5 6 class FTPHandleProvider { 7 public: 8 9 virtual CURL* handle() = 0; 10 11 12 /** host is in the form host:port. 13 */ 14 15 virtual bool forHost(const rtl::OUString& host, 16 const rtl::OUString& port, 17 const rtl::OUString& username, 18 rtl::OUString& password, 19 rtl::OUString& account) = 0; 20 21 virtual bool setHost(const rtl::OUString& host, 22 const rtl::OUString& port, 23 const rtl::OUString& username, 24 const rtl::OUString& password, 25 const rtl::OUString& account) = 0; 26 }; 27 28 29 } 30