#include <Mime.h>
|
enum | EFileType {
FileTypeUnknown = 0
, FileTypeHtml
, FileTypeXml
, FileTypePlainText
,
FileTypeZip
, FileTypeGZip
, FileTypeRar
, FileTypeBmp
,
FileTypeGif
, FileTypePng
, FileTypeJpeg
} |
|
◆ EFileType
Enumerator |
---|
FileTypeUnknown | |
FileTypeHtml | |
FileTypeXml | |
FileTypePlainText | |
FileTypeZip | |
FileTypeGZip | |
FileTypeRar | |
FileTypeBmp | |
FileTypeGif | |
FileTypePng | |
FileTypeJpeg | |
◆ GetFileTypeFromContent()
CMime::EFileType CMime::GetFileTypeFromContent |
( |
const std::string & | fileContent | ) |
|
|
static |
- Todo
- add detection for text types
- Todo
- add detection for other types if required
◆ GetFileTypeFromMime()
◆ GetMimeType() [1/3]
std::string CMime::GetMimeType |
( |
const CFileItem & | item | ) |
|
|
static |
◆ GetMimeType() [2/3]
std::string CMime::GetMimeType |
( |
const CURL & | url, |
|
|
bool | lookup = true ) |
|
static |
◆ GetMimeType() [3/3]
std::string CMime::GetMimeType |
( |
const std::string & | extension | ) |
|
|
static |
The documentation for this class was generated from the following files: