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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2611 - (hide annotations) (download)
Tue Apr 13 21:17:16 2004 UTC (15 years, 7 months ago) by jason
Original Path: main/sip/resiprocate/dum/Profile.hxx
File size: 2388 byte(s)
*** empty log message ***

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 2611 int getDefaultRegistrationTime();
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 jason 2611 void setDefaultRegistrationTime(int secs);
39    
40     void addGruu(const Data& aor, const NameAddr& contact, const NameAddr& gruu);
41     bool hasGruu(const Data& aor);
42     NameAddr& getGruu(const Data& aor);
43     NameAddr& getGruu(const Data& aor, const NameAddr& contact);
44    
45 jason 2592 const NameAddr& getDefaultAor() const;
46    
47 fluffy 2490 void setOutboundProxy( const Data& uri );
48 jason 2558 void disableGruu();
49 fluffy 2501
50     /// The following functions deal with getting digest credentals
51     //@{
52    
53 fluffy 2490 void addDigestCredential( const Data& realm, const Data& users, const Data& password);
54    
55 fluffy 2501 /** This class is used as a callback to get digest crednetials. The
56     * derived class must define one of computeA1 or getPaswword. computeA1 is
57     * tried first and it it returns an empty string, then getPassword is
58     * tried. */
59 fluffy 2490 class DigestCredentialHandler
60     {
61     public:
62 fluffy 2501 virtual Data computeA1( const Data& realm, const Data& users );
63     virtual Data getPassword( const Data& realm, const Data& users );
64 fluffy 2490 };
65    
66     void setDigestHandler( DigestCredentialHandler* handler );
67 fluffy 2501 //@}
68 jason 2611
69 fluffy 2490 private:
70 fluffy 2486 };
71    
72    
73 fluffy 2502
74     }
75    
76     #endif

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27