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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2621 by jason, Wed Apr 14 04:29:42 2004 UTC revision 2727 by jason, Mon May 10 01:12:46 2004 UTC
# Line 1  Line 1 
1  #if !defined(RESIP_PROFILE_HXX)  #if !defined(RESIP_PROFILE_HXX)
2  #define RESIP_PROFILE_HXX  #define RESIP_PROFILE_HXX
3    
4    #include <set>
5  #include "resiprocate/Headers.hxx"  #include "resiprocate/Headers.hxx"
6    #include "resiprocate/MethodTypes.hxx"
7    
8  namespace resip  namespace resip
9  {  {
10    
11  class Data;  class Data;
12    
13    // !jf! will want to provide a default subclass of Profile that provides some
14    // good defaults for the Profile
15  class Profile  class Profile
16  {  {
17     public:     public:
18          Profile();
19          
20          void setDefaultAor(const NameAddr& from);
21          void setDefaultRegistrationTime(int secs);
22    
23          void addSupportedScheme(const Data& scheme);
24          void addSupportedMethod(const MethodTypes& method);
25          void addSupportedOptionTags(const Token& tag);
26          void addSupportedMimeType(const Mime& mimeType);
27          void addSupportedEncoding(const Token& encoding);
28          void addSupportedLanguage(const Token& lang);
29    
30          NameAddr& getDefaultAor();
31          int getDefaultRegistrationTime();
32    
33        bool isSchemeSupported(const Data& scheme);        bool isSchemeSupported(const Data& scheme);
34        bool isMethodSupported(MethodTypes method);        bool isMethodSupported(MethodTypes method);
35        bool isMimeTypeSupported(const Mime& mimeType);        bool isMimeTypeSupported(const Mime& mimeType);
# Line 24  Line 43 
43        Mimes getSupportedMimeTypes();        Mimes getSupportedMimeTypes();
44        Tokens getSupportedEncodings();        Tokens getSupportedEncodings();
45        Tokens getSupportedLanguages();        Tokens getSupportedLanguages();
       NameAddr& getDefaultAor();  
       int getDefaultRegistrationTime();  
         
       void addSupportedScheme(const Data& scheme);  
       void addSupportedMethod(const MethodTypes& method);  
       void addSuportedOptionTags(const Token& tag);  
       void addSupportedMimeType(const Mime& mimeType);  
       void addSupportedEncoding(const Token& encoding);  
       void addSupportedLanguage(const Token& lang);  
   
       void setDefaultAor(const NameAddr& from);  
       void setDefaultRegistrationTime(int secs);  
46    
47        void addGruu(const Data& aor, const NameAddr& contact);        void addGruu(const Data& aor, const NameAddr& contact);
48        bool hasGruu(const Data& aor);        bool hasGruu(const Data& aor);
# Line 68  Line 75 
75        //@}        //@}
76                
77     private:     private:
78          NameAddr mAor;
79          int mDefaultRegistrationExpires;
80          
81          std::set<Data> mSupportedSchemes;
82          std::set<MethodTypes> mSupportedMethodTypes;
83          Tokens mSupportedMethods;
84          Tokens mSupportedOptionTags;
85          Mimes mSupportedMimeTypes;
86          Tokens mSupportedEncodings;
87          Tokens mSupportedLanguages;
88  };  };
89        
90    

Legend:
Removed from v.2621  
changed lines
  Added in v.2727

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27