/[resiprocate]/main/resip/dum/InviteSession.cxx
ViewVC logotype

Annotation of /main/resip/dum/InviteSession.cxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2576 - (hide annotations) (download)
Sun Apr 11 00:59:48 2004 UTC (15 years, 8 months ago) by davidb
Original Path: main/sip/resiprocate/dum/InviteSession.cxx
File size: 3165 byte(s)
adding handles

1 jason 2555 #include "InviteSession.hxx"
2    
3 jason 2557 InviteSession::InviteSession(DialogUsageManager& dum) :
4     mDum(dum),
5 jason 2555 mLocalSdp(0),
6     mRemoteSdp(0),
7     mMyNextOffer(0),
8     mPendingReceivedOffer(0)
9     {
10     }
11    
12     const SdpContents*
13     InviteSession::getLocalSdp()
14     {
15     return mLocalSdp;
16     }
17    
18     const SdpContents*
19     InviteSession::getRemoteSdp()
20     {
21     return mRemoteSdp;
22     }
23 davidb 2575
24 davidb 2576 InviteSession::Handle::Handle(DialogUsageManager& dum)
25     : mDum(dum)
26     {}
27    
28 davidb 2575 InviteSession::Handle::Handle(ClientInviteSession::Handle& handle)
29     : DialogUsageManager::Handle(handle.mDum)
30     {
31     mId = handle.mId;
32     }
33    
34     InviteSession::Handle::Handle(ServerInviteSession::Handle& handle)
35     : DialogUsageManager::Handle(handle.mDum)
36     {
37     mId = handle.mId;
38     }
39    
40     InviteSession*
41     InviteSession::Handle::operator->()
42     {
43     return static_cast<InviteSession*>get();
44     }
45    
46     /* ====================================================================
47     * The Vovida Software License, Version 1.0
48     *
49     * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
50     *
51     * Redistribution and use in source and binary forms, with or without
52     * modification, are permitted provided that the following conditions
53     * are met:
54     *
55     * 1. Redistributions of source code must retain the above copyright
56     * notice, this list of conditions and the following disclaimer.
57     *
58     * 2. Redistributions in binary form must reproduce the above copyright
59     * notice, this list of conditions and the following disclaimer in
60     * the documentation and/or other materials provided with the
61    
62     * distribution.
63     *
64     * 3. The names "VOCAL", "Vovida Open Communication Application Library",
65     * and "Vovida Open Communication Application Library (VOCAL)" must
66     * not be used to endorse or promote products derived from this
67     * software without prior written permission. For written
68     * permission, please contact vocal@vovida.org.
69     *
70     * 4. Products derived from this software may not be called "VOCAL", nor
71     * may "VOCAL" appear in their name, without prior written
72     * permission of Vovida Networks, Inc.
73     *
74     * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
75     * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
76     * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
77     * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
78     * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
79     * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
80     * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
81     * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
82     * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
83     * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
84     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
85     * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
86     * DAMAGE.
87     *
88     * ====================================================================
89     *
90     * This software consists of voluntary contributions made by Vovida
91     * Networks, Inc. and many individuals on behalf of Vovida Networks,
92     * Inc. For more information on Vovida Networks, Inc., please see
93     * <http://www.vovida.org/>.
94     *
95     */

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27