reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
PublicationHandler.hxx
Go to the documentation of this file.
1#if !defined(RESIP_PUBLICATIONHANDLER_HXX)
2#define RESIP_PUBLICATIONHANDLER_HXX
3
7
8namespace resip
9{
10
11class ClientPublication;
12class ServerPublication;
13class SipMessage;
14class SecurityAttributes;
15
17{
18 public:
20
23 virtual void onSuccess(ClientPublicationHandle, const SipMessage& status)=0;
24
25 //publication was successfully removed
26 virtual void onRemove(ClientPublicationHandle, const SipMessage& status)=0;
27
28 //call on failure. The usage will be destroyed. Note that this may not
29 //necessarily be 4xx...a malformed 200, etc. could also reach here.
30 virtual void onFailure(ClientPublicationHandle, const SipMessage& status)=0;
31
34 virtual int onRequestRetry(ClientPublicationHandle, int retrySeconds, const SipMessage& status)=0;
35
36 // ?dcm? -- when should this be called
37 virtual void onStaleUpdate(ClientPublicationHandle, const SipMessage& /*status*/)
38 {}
39};
40
42{
43 public:
45
47 const Data& etag,
48 const SipMessage& pub,
49 const Contents* contents,
50 const SecurityAttributes* attrs,
51 uint32_t expires)=0;
52 virtual void onExpired(ServerPublicationHandle, const Data& etag)=0;
53 virtual void onRefresh(ServerPublicationHandle, const Data& etag,
54 const SipMessage& pub,
55 const Contents* contents,
56 const SecurityAttributes* attrs,
57 uint32_t expires)=0;
59 const Data& etag,
60 const SipMessage& pub,
61 const Contents* contents,
62 const SecurityAttributes* attrs,
63 uint32_t expires)=0;
65 const Data& etag,
66 const SipMessage& pub,
67 uint32_t expires)=0;
68
70};
71
72}
73
74#endif
75
76/* ====================================================================
77 * The Vovida Software License, Version 1.0
78 *
79 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
80 *
81 * Redistribution and use in source and binary forms, with or without
82 * modification, are permitted provided that the following conditions
83 * are met:
84 *
85 * 1. Redistributions of source code must retain the above copyright
86 * notice, this list of conditions and the following disclaimer.
87 *
88 * 2. Redistributions in binary form must reproduce the above copyright
89 * notice, this list of conditions and the following disclaimer in
90 * the documentation and/or other materials provided with the
91 * distribution.
92 *
93 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
94 * and "Vovida Open Communication Application Library (VOCAL)" must
95 * not be used to endorse or promote products derived from this
96 * software without prior written permission. For written
97 * permission, please contact vocal@vovida.org.
98 *
99 * 4. Products derived from this software may not be called "VOCAL", nor
100 * may "VOCAL" appear in their name, without prior written
101 * permission of Vovida Networks, Inc.
102 *
103 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
104 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
105 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
106 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
107 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
108 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
109 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
110 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
111 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
112 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
113 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
114 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
115 * DAMAGE.
116 *
117 * ====================================================================
118 *
119 * This software consists of voluntary contributions made by Vovida
120 * Networks, Inc. and many individuals on behalf of Vovida Networks,
121 * Inc. For more information on Vovida Networks, Inc., please see
122 * <http://www.vovida.org/>.
123 *
124 */
virtual void onStaleUpdate(ClientPublicationHandle, const SipMessage &)
virtual void onRemove(ClientPublicationHandle, const SipMessage &status)=0
virtual int onRequestRetry(ClientPublicationHandle, int retrySeconds, const SipMessage &status)=0
call on Retry-After failure.
virtual void onSuccess(ClientPublicationHandle, const SipMessage &status)=0
Called when the publication succeeds or each time it is successfully refreshed.
virtual void onFailure(ClientPublicationHandle, const SipMessage &status)=0
Base class for all SIP body types.
Definition Contents.hxx:51
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
virtual void onRemoved(ServerPublicationHandle, const Data &etag, const SipMessage &pub, uint32_t expires)=0
virtual void onUpdate(ServerPublicationHandle, const Data &etag, const SipMessage &pub, const Contents *contents, const SecurityAttributes *attrs, uint32_t expires)=0
const Mimes & getSupportedMimeTypes() const
virtual void onExpired(ServerPublicationHandle, const Data &etag)=0
virtual void onInitial(ServerPublicationHandle, const Data &etag, const SipMessage &pub, const Contents *contents, const SecurityAttributes *attrs, uint32_t expires)=0
virtual void onRefresh(ServerPublicationHandle, const Data &etag, const SipMessage &pub, const Contents *contents, const SecurityAttributes *attrs, uint32_t expires)=0
Represents a SIP message.
dcm! – add UnusedChecking(_enum) below;
unsigned int uint32_t
Definition Stun.hxx:34