Codebase list mimetic / 2f8759d3-addd-40ef-aa42-c3a248b16a31/upstream mimetic / contentdescription.h
2f8759d3-addd-40ef-aa42-c3a248b16a31/upstream

Tree @2f8759d3-addd-40ef-aa42-c3a248b16a31/upstream (Download .tar.gz)

contentdescription.h @2f8759d3-addd-40ef-aa42-c3a248b16a31/upstreamraw · history · blame

/***************************************************************************
    copyright            : (C) 2002-2008 by Stefano Barbato
    email                : stefano@codesink.org

    $Id: contentdescription.h,v 1.12 2008-10-07 11:06:25 tat Exp $
 ***************************************************************************/
#ifndef _MIMETIC_CONTENT_DESCRIPTION_H_
#define _MIMETIC_CONTENT_DESCRIPTION_H_
#include <string>
#include <mimetic/rfc822/fieldvalue.h>

namespace mimetic
{

/// Content-Description field value
struct ContentDescription: public FieldValue
{
    static const char label[];
    ContentDescription();
    ContentDescription(const char*);
    ContentDescription(const std::string&);
    void set(const std::string&);
    std::string str() const;
protected:
    FieldValue* clone() const;
private:
    std::string m_value;
};

}

#endif