reSIProcate/DialogUsageManager  9680
AppDialog.cxx
Go to the documentation of this file.
00001 #include "resip/dum/AppDialog.hxx"
00002 #include "resip/dum/Dialog.hxx"
00003 
00004 using namespace resip;
00005 using namespace std;
00006 
00007 AppDialog::AppDialog(HandleManager& ham) : 
00008    Handled(ham),
00009    mDialog(0)
00010 {
00011 }
00012 
00013 AppDialog::~AppDialog()
00014 {
00015 }
00016 
00017 AppDialogHandle 
00018 AppDialog::getHandle()
00019 {
00020    return AppDialogHandle(mHam, mId);
00021 }
00022 
00023 vector<ClientSubscriptionHandle> 
00024 AppDialog::getClientSubscriptions()
00025 {
00026    return mDialog->getClientSubscriptions();
00027 }
00028 
00029 vector<ClientSubscriptionHandle> 
00030 AppDialog::findClientSubscriptions(const Data& event)
00031 {
00032    return mDialog->findClientSubscriptions(event);
00033 }
00034 
00035 vector<ServerSubscriptionHandle> 
00036 AppDialog::getServerSubscriptions()
00037 {
00038    return mDialog->getServerSubscriptions();
00039 }
00040 
00041 
00042 vector<ServerSubscriptionHandle> 
00043 AppDialog::findServerSubscriptions(const Data& event)
00044 {
00045    return mDialog->findServerSubscriptions(event);
00046 }
00047 
00048 InviteSessionHandle 
00049 AppDialog::getInviteSession()
00050 {
00051    return mDialog->getInviteSession();
00052 }
00053 
00054 DialogId 
00055 AppDialog::getDialogId() const
00056 {
00057    return mDialog->getId();   
00058 }
00059 
00060 NameAddr& 
00061 AppDialog::getContact()
00062 {
00063   return mDialog->mLocalContact;
00064 }
00065 
00066 EncodeStream& 
00067 AppDialog::dump(EncodeStream& strm) const
00068 {
00069    strm << "AppDialog " << mId;
00070    return strm;
00071 }
00072 
00073 /* ====================================================================
00074  * The Vovida Software License, Version 1.0 
00075  * 
00076  * Copyright (c) 2000 Vovida Networks, Inc.  All rights reserved.
00077  * 
00078  * Redistribution and use in source and binary forms, with or without
00079  * modification, are permitted provided that the following conditions
00080  * are met:
00081  * 
00082  * 1. Redistributions of source code must retain the above copyright
00083  *    notice, this list of conditions and the following disclaimer.
00084  * 
00085  * 2. Redistributions in binary form must reproduce the above copyright
00086  *    notice, this list of conditions and the following disclaimer in
00087  *    the documentation and/or other materials provided with the
00088  *    distribution.
00089  * 
00090  * 3. The names "VOCAL", "Vovida Open Communication Application Library",
00091  *    and "Vovida Open Communication Application Library (VOCAL)" must
00092  *    not be used to endorse or promote products derived from this
00093  *    software without prior written permission. For written
00094  *    permission, please contact vocal@vovida.org.
00095  *
00096  * 4. Products derived from this software may not be called "VOCAL", nor
00097  *    may "VOCAL" appear in their name, without prior written
00098  *    permission of Vovida Networks, Inc.
00099  * 
00100  * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
00101  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00102  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
00103  * NON-INFRINGEMENT ARE DISCLAIMED.  IN NO EVENT SHALL VOVIDA
00104  * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
00105  * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
00106  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00107  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00108  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
00109  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00110  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
00111  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
00112  * DAMAGE.
00113  * 
00114  * ====================================================================
00115  * 
00116  * This software consists of voluntary contributions made by Vovida
00117  * Networks, Inc. and many individuals on behalf of Vovida Networks,
00118  * Inc.  For more information on Vovida Networks, Inc., please see
00119  * <http://www.vovida.org/>.
00120  *
00121  */
00122