Main Page   Class Hierarchy   Alphabetical List   Compound List   Examples  

contentdescription.h

00001 /***************************************************************************
00002     copyright            : (C) 2002-2005 by Stefano Barbato
00003     email                : [email protected]
00004 
00005     $Id: contentdescription_8h-source.html,v 1.4 2006-03-12 12:28:31 tat Exp $
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  ***************************************************************************/
00016 #ifndef _MIMETIC_CONTENT_DESCRIPTION_H_
00017 #define _MIMETIC_CONTENT_DESCRIPTION_H_
00018 #include <string>
00019 #include <mimetic/rfc822/fieldvalue.h>
00020 
00021 namespace mimetic
00022 {
00023 
00024 /// Content-Description field value
00025 struct ContentDescription: public FieldValue
00026 {
00027     static const char label[];
00028     ContentDescription();
00029     ContentDescription(const char*);
00030     ContentDescription(const std::string&);
00031     void set(const std::string&);
00032     std::string str() const;
00033 protected:
00034     FieldValue* clone() const;
00035 private:
00036     std::string m_value;
00037 };
00038 
00039 }
00040 
00041 #endif
00042