reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
Registrar.hxx
Go to the documentation of this file.
1#if !defined(RESIP_REGISTRAR_HXX)
2#define RESIP_REGISTRAR_HXX
3
8
9namespace repro
10{
11class Proxy;
12
39
41{
42 public:
43 Registrar();
44 virtual ~Registrar();
45
46 void setProxy(Proxy* proxy) { mProxy = proxy; }
47
48 virtual void addRegistrarHandler(RegistrarHandler* handler);
49
55
56 private:
57 std::list<RegistrarHandler*> mRegistrarHandlers;
58 Proxy* mProxy;
59};
60}
61#endif
62
63/* ====================================================================
64 * The Vovida Software License, Version 1.0
65 *
66 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
67 *
68 * Redistribution and use in source and binary forms, with or without
69 * modification, are permitted provided that the following conditions
70 * are met:
71 *
72 * 1. Redistributions of source code must retain the above copyright
73 * notice, this list of conditions and the following disclaimer.
74 *
75 * 2. Redistributions in binary form must reproduce the above copyright
76 * notice, this list of conditions and the following disclaimer in
77 * the documentation and/or other materials provided with the
78 * distribution.
79 *
80 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
81 * and "Vovida Open Communication Application Library (VOCAL)" must
82 * not be used to endorse or promote products derived from this
83 * software without prior written permission. For written
84 * permission, please contact vocal@vovida.org.
85 *
86 * 4. Products derived from this software may not be called "VOCAL", nor
87 * may "VOCAL" appear in their name, without prior written
88 * permission of Vovida Networks, Inc.
89 *
90 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
91 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
92 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
93 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
94 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
95 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
96 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
97 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
98 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
99 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
100 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
101 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
102 * DAMAGE.
103 *
104 * ====================================================================
105 *
106 * This software consists of voluntary contributions made by Vovida
107 * Networks, Inc. and many individuals on behalf of Vovida Networks,
108 * Inc. For more information on Vovida Networks, Inc., please see
109 * <http://www.vovida.org/>.
110 *
111 */
virtual bool onAdd(resip::ServerRegistrationHandle, const resip::SipMessage &reg)=0
Called when one or more contacts are added.
virtual bool onRemoveAll(resip::ServerRegistrationHandle, const resip::SipMessage &reg)=0
Called when all the contacts are removed using "Contact: *".
virtual bool onRefresh(resip::ServerRegistrationHandle, const resip::SipMessage &reg)=0
Note: These very closely mimic the ServerRegistrationHandler callbacks.
virtual bool onRemove(resip::ServerRegistrationHandle, const resip::SipMessage &reg)=0
called when one or more specified contacts is removed
virtual bool onQuery(resip::ServerRegistrationHandle, const resip::SipMessage &reg)=0
Called when a client queries for the list of current registrations.
virtual void onRemove(resip::ServerRegistrationHandle, const resip::SipMessage &reg)
called when one or more specified contacts is removed
Definition Registrar.cxx:52
virtual void onQuery(resip::ServerRegistrationHandle, const resip::SipMessage &reg)
Called when a client queries for the list of current registrations.
virtual void onRefresh(resip::ServerRegistrationHandle, const resip::SipMessage &reg)
Called when registration is refreshed.
Definition Registrar.cxx:31
virtual void onRemoveAll(resip::ServerRegistrationHandle, const resip::SipMessage &reg)
Called when all the contacts are removed using "Contact: *".
Definition Registrar.cxx:73
virtual ~Registrar()
Definition Registrar.cxx:20
void setProxy(Proxy *proxy)
Definition Registrar.hxx:46
virtual void addRegistrarHandler(RegistrarHandler *handler)
Definition Registrar.cxx:25
virtual void onAdd(resip::ServerRegistrationHandle, const resip::SipMessage &reg)
Called when one or more contacts are added.
Definition Registrar.cxx:94
Represents a SIP message.
This Class is used to implement a primitive form of RPC using loose XML formatting.
void list()
Definition userAdmin.cxx:66