Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::MIMEType Class Reference

Specification for this MIME Types may be found at RFC 2045 http://www.faqs.org/rfcs/rfc2045.html. More...

#include <vcf/FoundationKit/MIMEType.h>

List of all members.

Public Types

typedef std::pair< String,
String
Parameter

Public Member Functions

 MIMEType ()
 MIMEType (const String &data)
 MIMEType (const String &type, const String &subType)
 MIMEType (const String &type, const String &subType, const std::vector< Parameter > &parameters)
 operator String () const
MIMETypeoperator= (const String &rhs)
MIMETypeoperator= (const FilePath &rhs)
bool operator== (const MIMEType &rhs) const
bool operator!= (const MIMEType &rhs) const
void setFromFileName (const String &fileName)
String getType () const
String getSubType () const
std::vector< ParametergetParameters () const
bool isTextType () const
bool isImageType () const
bool isAudioType () const
bool isVideoType () const
bool isApplicationType () const

Static Public Member Functions

static void registerExtension (const String &extension, const String &mimeType)

Protected Member Functions

void setFromFileName (const FilePath &fileName)
bool compare (const MIMEType &rhs) const

Static Protected Member Functions

static String canonicalValue (const String &value)

Protected Attributes

String data_

Static Protected Attributes

static std::map< String, StringregisteredFileExtensions


Detailed Description

Specification for this MIME Types may be found at RFC 2045 http://www.faqs.org/rfcs/rfc2045.html.

This is a simple class that makes it easy to deal with strings that signify mime-type information.


Member Typedef Documentation

typedef std::pair<String,String> VCF::MIMEType::Parameter
 


Constructor & Destructor Documentation

VCF::MIMEType::MIMEType  ) 
 

VCF::MIMEType::MIMEType const String data  ) 
 

VCF::MIMEType::MIMEType const String type,
const String subType
 

VCF::MIMEType::MIMEType const String type,
const String subType,
const std::vector< Parameter > &  parameters
 


Member Function Documentation

static String VCF::MIMEType::canonicalValue const String value  )  [static, protected]
 

bool VCF::MIMEType::compare const MIMEType rhs  )  const [protected]
 

std::vector<Parameter> VCF::MIMEType::getParameters  )  const
 

String VCF::MIMEType::getSubType  )  const
 

String VCF::MIMEType::getType  )  const
 

bool VCF::MIMEType::isApplicationType  )  const
 

bool VCF::MIMEType::isAudioType  )  const
 

bool VCF::MIMEType::isImageType  )  const
 

bool VCF::MIMEType::isTextType  )  const
 

bool VCF::MIMEType::isVideoType  )  const
 

VCF::MIMEType::operator String  )  const [inline]
 

bool VCF::MIMEType::operator!= const MIMEType rhs  )  const [inline]
 

MIMEType& VCF::MIMEType::operator= const FilePath rhs  )  [inline]
 

MIMEType& VCF::MIMEType::operator= const String rhs  )  [inline]
 

bool VCF::MIMEType::operator== const MIMEType rhs  )  const [inline]
 

static void VCF::MIMEType::registerExtension const String extension,
const String mimeType
[static]
 

void VCF::MIMEType::setFromFileName const FilePath fileName  )  [protected]
 

void VCF::MIMEType::setFromFileName const String fileName  )  [inline]
 


Member Data Documentation

String VCF::MIMEType::data_ [protected]
 

std::map<String,String> VCF::MIMEType::registeredFileExtensions [static, protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information