reSIProcate/DialogUsageManager  9680
EncryptionRequest.hxx
Go to the documentation of this file.
00001 #if !defined(RESIP_ENCRYPTIONREQUEST_HXX)
00002 #define RESIP_ENCRYPTIONREQUEST_HXX 
00003 
00004 #include "resip/stack/Message.hxx"
00005 #include "resip/stack/SipMessage.hxx"
00006 #include "resip/dum/DialogUsageManager.hxx"
00007 
00008 namespace resip
00009 {
00010 
00011 class EncryptionRequest : public Message
00012 {
00013    public:
00014       EncryptionRequest(const SipMessage& msg, DialogUsageManager::EncryptionLevel level);
00015       EncryptionRequest(const EncryptionRequest&);
00016       ~EncryptionRequest();
00017 
00018       SipMessage& message();
00019       DialogUsageManager::EncryptionLevel encryptionLevel() const;
00020 
00021       virtual Message* clone() const;
00022       virtual EncodeStream& encode(EncodeStream& strm) const;
00023       virtual EncodeStream& encodeBrief(EncodeStream& strm) const;
00024       
00025    private:
00026       SipMessage mMessage;
00027       DialogUsageManager::EncryptionLevel mLevel;
00028 };
00029 
00030 }
00031 
00032 #endif
00033 
00034 /* ====================================================================
00035  * The Vovida Software License, Version 1.0 
00036  * 
00037  * Copyright (c) 2000 Vovida Networks, Inc.  All rights reserved.
00038  * 
00039  * Redistribution and use in source and binary forms, with or without
00040  * modification, are permitted provided that the following conditions
00041  * are met:
00042  * 
00043  * 1. Redistributions of source code must retain the above copyright
00044  *    notice, this list of conditions and the following disclaimer.
00045  * 
00046  * 2. Redistributions in binary form must reproduce the above copyright
00047  *    notice, this list of conditions and the following disclaimer in
00048  *    the documentation and/or other materials provided with the
00049  *    distribution.
00050  * 
00051  * 3. The names "VOCAL", "Vovida Open Communication Application Library",
00052  *    and "Vovida Open Communication Application Library (VOCAL)" must
00053  *    not be used to endorse or promote products derived from this
00054  *    software without prior written permission. For written
00055  *    permission, please contact vocal@vovida.org.
00056  *
00057  * 4. Products derived from this software may not be called "VOCAL", nor
00058  *    may "VOCAL" appear in their name, without prior written
00059  *    permission of Vovida Networks, Inc.
00060  * 
00061  * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
00062  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00063  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
00064  * NON-INFRINGEMENT ARE DISCLAIMED.  IN NO EVENT SHALL VOVIDA
00065  * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
00066  * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
00067  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00068  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00069  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
00070  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00071  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
00072  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
00073  * DAMAGE.
00074  * 
00075  * ====================================================================
00076  * 
00077  * This software consists of voluntary contributions made by Vovida
00078  * Networks, Inc. and many individuals on behalf of Vovida Networks,
00079  * Inc.  For more information on Vovida Networks, Inc., please see
00080  * <http://www.vovida.org/>.
00081  *
00082  */