reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
UserAgentClientSubscription.hxx
Go to the documentation of this file.
1#if !defined(UserAgentClientSubscription_hxx)
2#define UserAgentClientSubscription_hxx
3
8
9#include "UserAgent.hxx"
10
11namespace resip
12{
13class DialogUsageManager;
14class SipMessage;
15}
16
17namespace recon
18{
19class UserAgent;
20
28{
29 public:
32
34 virtual void end();
35
36 // ClientSubscriptionHandler ///////////////////////////////////////////////////
37 virtual void onUpdatePending(resip::ClientSubscriptionHandle h, const resip::SipMessage& notify, bool outOfOrder);
38 virtual void onUpdateActive(resip::ClientSubscriptionHandle h, const resip::SipMessage& notify, bool outOfOrder);
39 virtual void onUpdateExtension(resip::ClientSubscriptionHandle, const resip::SipMessage& notify, bool outOfOrder);
43
44 private:
45 void notifyReceived(const resip::Data& notifyData);
46
47 UserAgent &mUserAgent;
48 SubscriptionHandle mSubscriptionHandle;
49 size_t mLastNotifyHash;
50 bool mEnded;
51};
52
53}
54
55#endif
56
57
58/* ====================================================================
59
60 Copyright (c) 2007-2008, Plantronics, Inc.
61 All rights reserved.
62
63 Redistribution and use in source and binary forms, with or without
64 modification, are permitted provided that the following conditions are
65 met:
66
67 1. Redistributions of source code must retain the above copyright
68 notice, this list of conditions and the following disclaimer.
69
70 2. Redistributions in binary form must reproduce the above copyright
71 notice, this list of conditions and the following disclaimer in the
72 documentation and/or other materials provided with the distribution.
73
74 3. Neither the name of Plantronics nor the names of its contributors
75 may be used to endorse or promote products derived from this
76 software without specific prior written permission.
77
78 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
79 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
80 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
81 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
82 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
83 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
84 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
85 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
86 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
87 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
88 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
89
90 ==================================================================== */
This class is used to manage active client subscriptions.
virtual void onUpdateActive(resip::ClientSubscriptionHandle h, const resip::SipMessage &notify, bool outOfOrder)
virtual void onNewSubscription(resip::ClientSubscriptionHandle h, const resip::SipMessage &notify)
virtual void onUpdatePending(resip::ClientSubscriptionHandle h, const resip::SipMessage &notify, bool outOfOrder)
virtual int onRequestRetry(resip::ClientSubscriptionHandle h, int retryMinimum, const resip::SipMessage &notify)
virtual void onTerminated(resip::ClientSubscriptionHandle h, const resip::SipMessage *notify)
virtual void onUpdateExtension(resip::ClientSubscriptionHandle, const resip::SipMessage &notify, bool outOfOrder)
This class is one of two main classes of concern to an application using the UserAgent library.
Definition UserAgent.hxx:56
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
Represents a SIP message.
unsigned int SubscriptionHandle
dcm! – add UnusedChecking(_enum) below;
void list()
Definition userAdmin.cxx:66