r3277 - in trunk/libmsip: include/libmsip source/headers
erik at minisip.org
erik at minisip.org
Wed May 9 22:36:22 CEST 2007
Author: erik
Date: 2007-05-09 22:36:21 +0200 (Wed, 09 May 2007)
New Revision: 3277
Added:
trunk/libmsip/include/libmsip/SipHeaderAllow.h
trunk/libmsip/source/headers/SipHeaderAllow.cxx
Log:
* Forgot to "svn add" SipHeaderAllow.{h,cxx}.
Added: trunk/libmsip/include/libmsip/SipHeaderAllow.h
===================================================================
--- trunk/libmsip/include/libmsip/SipHeaderAllow.h (rev 0)
+++ trunk/libmsip/include/libmsip/SipHeaderAllow.h 2007-05-09 20:36:21 UTC (rev 3277)
@@ -0,0 +1,50 @@
+/*
+ Copyright (C) 2004-2007 Erik Eliasson, Johan Bilien, Mikael Magnusson
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+/* Name
+ * SipHeaderAllow.h
+ * Authors
+ * Erik Eliasson, eliasson at it.kth.se
+*/
+
+#ifndef SIPHEADERALLOW_H
+#define SIPHEADERALLOW_H
+
+#include<libmsip/libmsip_config.h>
+
+#include<libmsip/SipHeader.h>
+#include<libmsip/SipHeaderString.h>
+
+/**
+ * @author Erik Eliasson
+*/
+
+extern SipHeaderFactoryFuncPtr sipHeaderAllowFactory;
+
+class LIBMSIP_API SipHeaderValueAllow: public SipHeaderValueString{
+ public:
+ SipHeaderValueAllow(const std::string &build_from);
+
+ virtual std::string getMemObjectType() const {return "SipHeaderAllow";}
+
+ // string getString(); is inherited from
+ // SipHeaderValueString that returns the string
+ // passed to the constructor
+};
+
+#endif
Added: trunk/libmsip/source/headers/SipHeaderAllow.cxx
===================================================================
--- trunk/libmsip/source/headers/SipHeaderAllow.cxx (rev 0)
+++ trunk/libmsip/source/headers/SipHeaderAllow.cxx 2007-05-09 20:36:21 UTC (rev 3277)
@@ -0,0 +1,56 @@
+/*
+ Copyright (C) 2005, 2004 Erik Eliasson, Johan Bilien
+ Copyright (C) 2006 Mikael Magnusson
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+/*
+ * Authors: Erik Eliasson <eliasson at it.kth.se>
+ * Johan Bilien <jobi at via.ecp.fr>
+*/
+
+
+/* Name
+ * SipHeaderValueAllow.cxx
+ * Author
+ * Erik Eliasson, eliasson at it.kth.se
+ * Mikael Magnusson <mikma at users.sourceforge.net>
+ * Purpose
+ *
+*/
+
+#include<config.h>
+
+#include<libmsip/SipHeaderAllow.h>
+
+#include<libmutil/stringutils.h>
+
+using namespace std;
+
+MRef<SipHeaderValue *> AllowFactory(const string &build_from){
+ return new SipHeaderValueAllow(build_from);
+}
+
+SipHeaderFactoryFuncPtr sipHeaderAllowFactory=AllowFactory;
+
+
+const string sipHeaderValueAllowTypeStr = "Allow";
+
+SipHeaderValueAllow::SipHeaderValueAllow(const string &build_from)
+ : SipHeaderValueString(SIP_HEADER_TYPE_ALLOW,sipHeaderValueAllowTypeStr,build_from)
+{
+}
+
More information about the Minisip-devel
mailing list