/[resiprocate]/main/resip/dum/test/basicRegister.cxx
ViewVC logotype

Diff of /main/resip/dum/test/basicRegister.cxx

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

revision 2929 by derek, Thu Jun 3 01:56:09 2004 UTC revision 2941 by jason, Mon Jun 7 00:44:01 2004 UTC
# Line 1  Line 1 
 #include "resiprocate/dum/InviteSessionHandler.hxx"  
 #include "resiprocate/dum/DialogUsageManager.hxx"  
 #include "resiprocate/dum/RegistrationHandler.hxx"  
1  #include "resiprocate/SipStack.hxx"  #include "resiprocate/SipStack.hxx"
2    #include "resiprocate/dum/ClientAuthManager.hxx"
3    #include "resiprocate/dum/ClientRegistration.hxx"
4    #include "resiprocate/dum/DialogUsageManager.hxx"
5    #include "resiprocate/dum/InviteSessionHandler.hxx"
6  #include "resiprocate/dum/Profile.hxx"  #include "resiprocate/dum/Profile.hxx"
7    #include "resiprocate/dum/RegistrationHandler.hxx"
8  #include "resiprocate/os/Log.hxx"  #include "resiprocate/os/Log.hxx"
9  #include "resiprocate/os/Logger.hxx"  #include "resiprocate/os/Logger.hxx"
10  #include "resiprocate/os/Subsystem.hxx"  #include "resiprocate/os/Subsystem.hxx"
 #include "resiprocate/dum/ClientAuthManager.hxx"  
11    
12  #define RESIPROCATE_SUBSYSTEM Subsystem::TEST  #define RESIPROCATE_SUBSYSTEM Subsystem::TEST
13    
# Line 17  Line 18 
18     public:     public:
19        Client() : done(false) {}        Client() : done(false) {}
20    
21        virtual void onSuccess(ClientRegistration::Handle h, const SipMessage& response)        virtual void onSuccess(ClientRegistrationHandle h, const SipMessage& response)
22        {        {
23  #ifdef WIN32  #ifdef WIN32
24           Sleep(2000);           Sleep(2000);
# Line 29  Line 30 
30            done = true;            done = true;
31        }        }
32    
33        virtual void onFailure(ClientRegistration::Handle, const SipMessage& response)        virtual void onFailure(ClientRegistrationHandle, const SipMessage& response)
34        {        {
35            InfoLog ( << "Client::Failure: " << response );            InfoLog ( << "Client::Failure: " << response );
36            done = true;            done = true;
# Line 43  Line 44 
44  {  {
45     public:     public:
46        RegistrationServer() : done(false) {}        RegistrationServer() : done(false) {}
47        virtual void onRefresh(ServerRegistration::Handle, const SipMessage& reg)=0;        virtual void onRefresh(ServerRegistrationHandle, const SipMessage& reg)=0;
48                
49        /// called when one of the contacts is removed        /// called when one of the contacts is removed
50        virtual void onRemoveOne(ServerRegistration::Handle, const SipMessage& reg)=0;        virtual void onRemoveOne(ServerRegistrationHandle, const SipMessage& reg)=0;
51                
52        /// Called when all the contacts are removed        /// Called when all the contacts are removed
53        virtual void onRemoveAll(ServerRegistration::Handle, const SipMessage& reg)=0;        virtual void onRemoveAll(ServerRegistrationHandle, const SipMessage& reg)=0;
54                
55        /// Called when a new contact is added. This is after authentication has        /// Called when a new contact is added. This is after authentication has
56        /// all sucseeded        /// all sucseeded
57        virtual void onAdd(ServerRegistration::Handle, const SipMessage& reg)=0;        virtual void onAdd(ServerRegistrationHandle, const SipMessage& reg)=0;
58    
59        /// Called when an registration expires        /// Called when an registration expires
60        virtual void onExpired(ServerRegistration::Handle, const NameAddr& contact)=0;        virtual void onExpired(ServerRegistrationHandle, const NameAddr& contact)=0;
61    
62     private:     private:
63        bool done;        bool done;

Legend:
Removed from v.2929  
changed lines
  Added in v.2941

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27