/[resiprocate]/main/sip/resiprocate/external/HttpProvider.hxx
ViewVC logotype

Contents of /main/sip/resiprocate/external/HttpProvider.hxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4601 - (show annotations) (download)
Thu May 12 01:10:49 2005 UTC (14 years, 6 months ago) by derek
File size: 1104 byte(s)
merged identity branch(4598) into main--removing identity branch after this
1 #ifndef RESIP_HttpProvider
2 #define RESIP_HttpProvider
3
4 #include "resiprocate/os/Mutex.hxx"
5 #include <memory>
6
7 namespace resip
8 {
9 class TransactionUser;
10 class Data;
11 class GenericUri;
12
13 //To provide this functionality, plug in an instance of
14 //HttpProviderFactory(before any instances of DialogUsageManager/SipStack are
15 //created. Null will be returned by default.
16 class HttpProviderFactory;
17
18 class HttpProvider
19 {
20 public:
21 //HttpProvider assumes memory
22 static void setFactory(std::auto_ptr<HttpProviderFactory> fact);
23 //ptr so users can check for existence
24 static HttpProvider* instance();
25
26 //.dcm. tu param will become a postable
27 virtual void get(const GenericUri& target, const Data& tid, TransactionUser& tu)=0;
28 virtual ~HttpProvider(){} //impl. singleton destructor pattern later
29 private:
30 static HttpProvider* mInstance;
31 static HttpProviderFactory* mFactory;
32 static Mutex mMutex;
33 };
34
35 class HttpProviderFactory
36 {
37 public:
38 virtual HttpProvider* createHttpProvider()=0;
39 virtual ~HttpProviderFactory(){}
40 };
41 }
42
43 #endif

Properties

Name Value
svn:eol-style LF

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27