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