Public Member Functions | |
| void | clean () |
| int | getMIME (int id, string &ext, string &dest, string &dest2) |
| int | getMIME (string &ext, string &dest, string &dest2) |
| int | getMIME (int id, char *ext, char *dest, char **dest2) |
| int | getMIME (char *ext, char *dest, char **dest2) |
| u_long | getNumMIMELoaded () |
| MimeRecord * | getRecord (string const &ext) |
| int | isLoaded () |
| int | loadXML (string &filename) |
| int | loadXML (const char *filename) |
| MimeManager () | |
| int | saveXML (string &filename) |
| int | saveXML (const char *filename) |
| ~MimeManager () | |
Protected Member Functions | |
| int | addRecord (MimeRecord &record) |
| const char * | getFilename () |
| void | removeAllRecords () |
| void | removeRecord (const string &ext) |
Private Attributes | |
| HashMap< string, MimeRecord * > * | data |
| string * | filename |
| int | loaded |
| u_long | numMimeTypesLoaded |
| ReadWriteLock | rwLock |
|
|
Constructor of the class. |
|
|
Destroy the object. |
|
|
Add a new record. Returns zero on success. |
|
|
Clean the memory allocated by the structure. |
|
|
Get the name of the file opened by the class. |
|
||||||||||||||||||||
|
Get a MIME type by the position of the record in the list. |
|
||||||||||||||||
|
This function returns the type of action to do for handle this file type. Passing a file extension ext this function fills the strings dest and dest2 respectly with the MIME type description and if there are the path to the CGI manager. |
|
||||||||||||||||||||
|
Get a MIME type by the position of the record in the list. |
|
||||||||||||||||
|
This function returns the type of action to do for handle this file type. Passing a file extension ext this function fills the strings dest and dest2 respectly with the MIME type description and if there are the path to the CGI manager. |
|
|
Returns the number of MIME types loaded. |
|
|
Get a pointer to an existing record passing its extension. |
|
|
Check if the MIME manager is loaded. |
|
|
|
|
|
Load the MIME types from a XML file. Returns the number of MIME types loaded successfully. |
|
|
Remove all records from the linked list. |
|
|
Remove a record by the extension of the MIME type. |
|
|
|
|
|
Save the MIME types to a XML file. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.9.1