Public Member Functions | |
| int | addExt (const char *) |
| int | addMime (const char *) |
| void | clear () |
| int | getCmd (int) |
| const char * | getManager (int) |
| int | getType (int) |
| int | load (const char *) |
| int | load_core (XmlParser &) |
| int | loadMemBuf (MemBuf &) |
| void | populateExt (Fl_Browser *) |
| void | populateMime (Fl_Choice *) |
| void | removeExt (int) |
| int | save (const char *) |
| int | save_core (XmlParser &) |
| int | saveMemBuf (MemBuf &) |
| void | setCmd (int, int) |
| void | setManager (int, const char *) |
| void | setType (int, int) |
| ~MIMEtypeXML () | |
Private Member Functions | |
| void | ClearExt () |
| void | DeleteMimeNode (MimeNode *) |
Private Attributes | |
| Vector | Ext |
| Vector | Mime |
|
|
Constructor. |
|
|
Adds an ext name to the ext list. If the ext given in name is already in the list, just return the location in the list. Otherwise add the ext name and return the location in the list. |
|
|
Adds a MIME type to the MIME list. If the MIME given in name is already in the list, just return the location in the list. Otherwise add the ext name and return the location in the list. |
|
|
Clear all memory. |
|
|
Clear the ext list. |
|
|
Remove a MIME type. Take a pointer to the MIME type node. |
|
|
Gets the cgi command type of the ext. Takes the location number of the ext and returns the command type number. (see mimetype.h) |
|
|
Gets the cgi manager of the ext. Takes the location number of the ext and returns a pointer to an internal string of the manager with compleat path. |
|
|
Gets the MIME type of the ext. Takes the location number of the ext and returns the MIME location number. |
|
|
Load the MIME types configuration file. Returns -1 on error. |
|
|
Load the values from xml data. Copied and modified from mime_manager.cpp Only returns 0. |
|
|
Load the MIME types configuration from memory. returns -1 on error. |
|
|
Populate the list box in the interface with the ext names. Takes a pointer to the Fl_Browser FLTK class. |
|
|
Populate the slection box in the interface with the MIME types. Takes a pointer to the Fl_Choice FLTK class. |
|
|
Removes an ext from the list. Takes the location number in the list. |
|
|
Save the MIME types configuration to file. Returns negative on error. |
|
|
Save the MIME types configuration to xml data. Returns negative on error. |
|
|
Save the MIME types configuration to a memory buffer. Returns negative on error. |
|
||||||||||||
|
Sets the command type of the ext. extNumber is the location number of the ext. cmdNumber is the enum of the command. See mimetype.h |
|
||||||||||||
|
Sets the cgi manager for the ext. extNumber is the location number of the ext. name is the compleate path and exe name of the manager. |
|
||||||||||||
|
Sets an ext to a MIME type. extNumber is the location number of the ext. mimeNumber is the location number of the MIME type. |
|
|
|
|
|
|
1.3.9.1