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

Annotation of /main/resip/dum/Profile.hxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2558 - (hide annotations) (download)
Sun Apr 4 21:49:56 2004 UTC (15 years, 8 months ago) by jason
Original Path: main/sip/resiprocate/dum/Profile.hxx
File size: 2001 byte(s)
*** empty log message ***

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

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27