2004-10-05 10:28:21 +00:00
|
|
|
//
|
|
|
|
// VMime library (http://vmime.sourceforge.net)
|
|
|
|
// Copyright (C) 2002-2004 Vincent Richard <vincent@vincent-richard.net>
|
|
|
|
//
|
|
|
|
// This program is free SOFTWARE; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License as
|
|
|
|
// published by the Free Software FOUNDATION; either version 2 of
|
|
|
|
// the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program 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
|
|
|
|
// General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this PROGRAM; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef VMIME_CONSTANTS_HPP_INCLUDED
|
|
|
|
#define VMIME_CONSTANTS_HPP_INCLUDED
|
|
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "types.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
namespace vmime
|
|
|
|
{
|
2004-10-21 15:05:47 +00:00
|
|
|
/** Constants for media types. */
|
2004-10-05 10:28:21 +00:00
|
|
|
namespace mediaTypes
|
|
|
|
{
|
|
|
|
// Types
|
|
|
|
extern const string::value_type* const TEXT;
|
|
|
|
extern const string::value_type* const MULTIPART;
|
|
|
|
extern const string::value_type* const MESSAGE;
|
|
|
|
extern const string::value_type* const APPLICATION;
|
|
|
|
extern const string::value_type* const IMAGE;
|
|
|
|
extern const string::value_type* const AUDIO;
|
|
|
|
extern const string::value_type* const VIDEO;
|
|
|
|
|
|
|
|
// Sub-types
|
|
|
|
extern const string::value_type* const TEXT_PLAIN;
|
|
|
|
extern const string::value_type* const TEXT_HTML;
|
|
|
|
extern const string::value_type* const TEXT_RICHTEXT;
|
|
|
|
extern const string::value_type* const TEXT_ENRICHED;
|
|
|
|
|
|
|
|
extern const string::value_type* const MULTIPART_MIXED;
|
|
|
|
extern const string::value_type* const MULTIPART_RELATED;
|
|
|
|
extern const string::value_type* const MULTIPART_ALTERNATIVE;
|
|
|
|
extern const string::value_type* const MULTIPART_PARALLEL;
|
|
|
|
extern const string::value_type* const MULTIPART_DIGEST;
|
|
|
|
|
|
|
|
extern const string::value_type* const MESSAGE_RFC822;
|
|
|
|
extern const string::value_type* const MESSAGE_PARTIAL;
|
|
|
|
extern const string::value_type* const MESSAGE_EXTERNAL_BODY;
|
|
|
|
|
|
|
|
extern const string::value_type* const APPLICATION_OCTET_STREAM;
|
|
|
|
|
|
|
|
extern const string::value_type* const IMAGE_JPEG;
|
|
|
|
extern const string::value_type* const IMAGE_GIF;
|
|
|
|
|
|
|
|
extern const string::value_type* const AUDIO_BASIC;
|
|
|
|
|
|
|
|
extern const string::value_type* const VIDEO_MPEG;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-10-21 15:05:47 +00:00
|
|
|
/** Constants for encoding types. */
|
2004-10-05 10:28:21 +00:00
|
|
|
namespace encodingTypes
|
|
|
|
{
|
|
|
|
extern const string::value_type* const SEVEN_BIT;
|
|
|
|
extern const string::value_type* const EIGHT_BIT;
|
|
|
|
extern const string::value_type* const BASE64;
|
|
|
|
extern const string::value_type* const QUOTED_PRINTABLE;
|
|
|
|
extern const string::value_type* const BINARY;
|
|
|
|
extern const string::value_type* const UUENCODE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-10-21 15:05:47 +00:00
|
|
|
/** Constants for disposition types (RFC-2183). */
|
2004-10-05 10:28:21 +00:00
|
|
|
namespace dispositionTypes
|
|
|
|
{
|
|
|
|
extern const string::value_type* const INLINE;
|
|
|
|
extern const string::value_type* const ATTACHMENT;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-10-21 15:05:47 +00:00
|
|
|
/** Constants for charsets. */
|
2004-10-05 10:28:21 +00:00
|
|
|
namespace charsets
|
|
|
|
{
|
|
|
|
extern const string::value_type* const ISO8859_1;
|
|
|
|
extern const string::value_type* const ISO8859_2;
|
|
|
|
extern const string::value_type* const ISO8859_3;
|
|
|
|
extern const string::value_type* const ISO8859_4;
|
|
|
|
extern const string::value_type* const ISO8859_5;
|
|
|
|
extern const string::value_type* const ISO8859_6;
|
|
|
|
extern const string::value_type* const ISO8859_7;
|
|
|
|
extern const string::value_type* const ISO8859_8;
|
|
|
|
extern const string::value_type* const ISO8859_9;
|
|
|
|
extern const string::value_type* const ISO8859_10;
|
|
|
|
extern const string::value_type* const ISO8859_13;
|
|
|
|
extern const string::value_type* const ISO8859_14;
|
|
|
|
extern const string::value_type* const ISO8859_15;
|
|
|
|
extern const string::value_type* const ISO8859_16;
|
|
|
|
|
|
|
|
extern const string::value_type* const CP_437;
|
|
|
|
extern const string::value_type* const CP_737;
|
|
|
|
extern const string::value_type* const CP_775;
|
|
|
|
extern const string::value_type* const CP_850;
|
|
|
|
extern const string::value_type* const CP_852;
|
|
|
|
extern const string::value_type* const CP_853;
|
|
|
|
extern const string::value_type* const CP_855;
|
|
|
|
extern const string::value_type* const CP_857;
|
|
|
|
extern const string::value_type* const CP_858;
|
|
|
|
extern const string::value_type* const CP_860;
|
|
|
|
extern const string::value_type* const CP_861;
|
|
|
|
extern const string::value_type* const CP_862;
|
|
|
|
extern const string::value_type* const CP_863;
|
|
|
|
extern const string::value_type* const CP_864;
|
|
|
|
extern const string::value_type* const CP_865;
|
|
|
|
extern const string::value_type* const CP_866;
|
|
|
|
extern const string::value_type* const CP_869;
|
|
|
|
extern const string::value_type* const CP_874;
|
|
|
|
extern const string::value_type* const CP_1125;
|
|
|
|
extern const string::value_type* const CP_1250;
|
|
|
|
extern const string::value_type* const CP_1251;
|
|
|
|
extern const string::value_type* const CP_1252;
|
|
|
|
extern const string::value_type* const CP_1253;
|
|
|
|
extern const string::value_type* const CP_1254;
|
|
|
|
extern const string::value_type* const CP_1255;
|
|
|
|
extern const string::value_type* const CP_1256;
|
|
|
|
extern const string::value_type* const CP_1257;
|
|
|
|
|
|
|
|
extern const string::value_type* const US_ASCII;
|
|
|
|
|
|
|
|
extern const string::value_type* const UTF_7;
|
|
|
|
extern const string::value_type* const UTF_8;
|
|
|
|
extern const string::value_type* const UTF_16;
|
|
|
|
extern const string::value_type* const UTF_32;
|
|
|
|
|
|
|
|
extern const string::value_type* const WINDOWS_1250;
|
|
|
|
extern const string::value_type* const WINDOWS_1251;
|
|
|
|
extern const string::value_type* const WINDOWS_1252;
|
|
|
|
extern const string::value_type* const WINDOWS_1253;
|
|
|
|
extern const string::value_type* const WINDOWS_1254;
|
|
|
|
extern const string::value_type* const WINDOWS_1255;
|
|
|
|
extern const string::value_type* const WINDOWS_1256;
|
|
|
|
extern const string::value_type* const WINDOWS_1257;
|
|
|
|
extern const string::value_type* const WINDOWS_1258;
|
|
|
|
}
|
2004-10-21 15:05:47 +00:00
|
|
|
|
|
|
|
/** Constants for standard field names. */
|
|
|
|
namespace fields
|
|
|
|
{
|
|
|
|
extern const string::value_type* const RECEIVED;
|
|
|
|
extern const string::value_type* const FROM;
|
|
|
|
extern const string::value_type* const SENDER;
|
|
|
|
extern const string::value_type* const REPLY_TO;
|
|
|
|
extern const string::value_type* const TO;
|
|
|
|
extern const string::value_type* const CC;
|
|
|
|
extern const string::value_type* const BCC;
|
|
|
|
extern const string::value_type* const DATE;
|
|
|
|
extern const string::value_type* const SUBJECT;
|
|
|
|
extern const string::value_type* const ORGANIZATION;
|
|
|
|
extern const string::value_type* const USER_AGENT;
|
|
|
|
extern const string::value_type* const DELIVERED_TO;
|
|
|
|
extern const string::value_type* const RETURN_PATH;
|
|
|
|
extern const string::value_type* const MIME_VERSION;
|
|
|
|
extern const string::value_type* const MESSAGE_ID;
|
|
|
|
extern const string::value_type* const CONTENT_TYPE;
|
|
|
|
extern const string::value_type* const CONTENT_TRANSFER_ENCODING;
|
|
|
|
extern const string::value_type* const CONTENT_DESCRIPTION;
|
|
|
|
extern const string::value_type* const CONTENT_DISPOSITION;
|
|
|
|
extern const string::value_type* const CONTENT_ID;
|
|
|
|
extern const string::value_type* const CONTENT_LOCATION;
|
|
|
|
|
|
|
|
extern const string::value_type* const X_MAILER;
|
|
|
|
extern const string::value_type* const X_PRIORITY;
|
|
|
|
}
|
2004-10-05 10:28:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif // VMIME_CONSTANTS_HPP_INCLUDED
|