/[resiprocate]/main/sip/resiprocate/dum/Profile.hxx
ViewVC logotype

Annotation of /main/sip/resiprocate/dum/Profile.hxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2595 - (hide annotations) (download)
Sun Apr 11 19:34:15 2004 UTC (15 years, 9 months ago) by davidb
File size: 2064 byte(s)
handles, creeping toward compile...

1 fluffy 2502 #if !defined(RESIP_PROFILE_HXX)
2     #define RESIP_PROFILE_HXX
3 fluffy 2490
4 davidb 2595 #include "resiprocate/Headers.hxx"
5    
6 fluffy 2502 namespace resip
7     {
8 fluffy 2490
9 jason 2514 class Data;
10    
11 fluffy 2486 class Profile
12     {
13 fluffy 2490 public:
14 jason 2514 bool isSchemeSupported(const Data& scheme);
15     bool isMethodSupported(MethodTypes method);
16     bool isMimeTypeSupported(const Mime& mimeType);
17 jason 2526 bool isContentEncodingSupported(const Token& contentEncoding);
18     bool isLanguageSupported(const Tokens& lang);
19 jason 2514
20     // return the list of unsupported tokens from set of requires tokens
21 davidb 2595 Tokens isSupported(const Tokens& requires);
22 jason 2553 Tokens getSupportedOptionTags();
23 jason 2514 Tokens getAllowedMethods();
24     Mimes getSupportedMimeTypes();
25 jason 2526 Tokens getSupportedEncodings();
26     Tokens getSupportedLanguages();
27 jason 2553 NameAddr& getDefaultAor();
28 jason 2514
29     void addSupportedScheme(const Data& scheme);
30     void addSupportedMethod(const MethodTypes& method);
31     void addSuportedOptionTags(const Token& tag);
32     void addSupportedMimeType(const Mime& mimeType);
33 jason 2526 void addSupportedEncoding(const Token& encoding);
34     void addSupportedLanguage(const Token& lang);
35 jason 2553
36     void setDefaultAor(const NameAddr& from);
37 jason 2592 const NameAddr& getDefaultAor() const;
38    
39 fluffy 2490 void setOutboundProxy( const Data& uri );
40 jason 2558 void disableGruu();
41 fluffy 2501
42     /// The following functions deal with getting digest credentals
43     //@{
44    
45 fluffy 2490 void addDigestCredential( const Data& realm, const Data& users, const Data& password);
46    
47 fluffy 2501 /** This class is used as a callback to get digest crednetials. The
48     * derived class must define one of computeA1 or getPaswword. computeA1 is
49     * tried first and it it returns an empty string, then getPassword is
50     * tried. */
51 fluffy 2490 class DigestCredentialHandler
52     {
53     public:
54 fluffy 2501 virtual Data computeA1( const Data& realm, const Data& users );
55     virtual Data getPassword( const Data& realm, const Data& users );
56 fluffy 2490 };
57    
58     void setDigestHandler( DigestCredentialHandler* handler );
59 fluffy 2501 //@}
60 fluffy 2490
61     private:
62 fluffy 2486 };
63    
64    
65 fluffy 2502
66     }
67    
68     #endif

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27