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