Index
Purpose:
Use this class to represent a MIME type object. This class provides
methods to get and set the details of a MIME type.
Since: Version 8
Class summary:
class DKEXPORT DKMimeTypeDefICM
{
public :
DKMimeTypeDefICM();
virtual ~DKMimeTypeDefICM();
DKString getApplicationFlags();
DKString getApplicationName();
DKString getDisplayName();
long getId();
DKString getMimeType();
long getMimeTypeFlag();
DKString getName();
DKString getSuffixes();
void setApplicationFlags(const char* applicationFlags);
void setApplicationName(const char* appName);
void setDisplayName(const char* displayName);
void setId(long id);
void setMimeType(const char* mimeType);
void setMimeTypeFlag(long mimeTypeFlag);
void setName(const char* name);
void setSuffixes(const char* suffixes);
};
Members:
-
-
- Constructors and destructor
-
DKMimeTypeDefICM();
Default constructor. Creates and initializes a new MIME type
object.
virtual ~DKMimeTypeDefICM();
Destructor for this object.
- Member functions
-
- getApplicationFlags
- Retrieves the application flags. Returns:
application flag for this MIME type object as a DKString variable.
DKString getApplicationFlags();
- getApplicationName
- Retrieves the name of the application that would handle resources which
are of this MIME type. Returns: application name for
this MIME type object as a DKString variable.
DKString getApplicationName()
- getDisplayName
- Retrieves the display name for this MIME type object.
Returns: display name for this MIME type object as a string
variable.
DKString getDisplayName()
- getID
- Retrieves the identifier assigned to this MIME type object.
Returns: identifier for this MIME type object.
long getId()
- getMimeType
- Retrieves the MIME type associated with this MIME type object.
Returns: MIME type as a DKString.
DKString getMimeType()
- getMimeTypeFlag
- Retrieves the MIME type flag for this MIME type object.
Returns: MIME type flag. Valid return values
are:
- NONE_ENABLED
- TEXT_SEARCH_ENABLED
- STREAMING_ENABLED
long getMimeTypeFlag()
- getName
- Retrieves the MIME type object name. Returns: MIME
type object name as a DKString variable.
DKString getName();
- getSuffixes
- Retrieves the MIME type suffixes. Returns: MIME
type suffixes as a string variable.
DKString getSuffixes()
- setApplicationFlags
- Sets the application Flags. Parameters:
applicationFlags - new application flags to be set on this MIME type object
void setApplicationFlags(const char* applicationName);
- setApplicationName
- Sets the application name of the application that would handle the
resources which are of this MIME type. The application name can be up
to 512 characters. Parameters: applicationName -new
application name to be associated with this MIME type object.
void setApplicationName( const char* applicationName );
- setDisplayName
- Sets the display name to be assigned to this MIME type. The display
name can be up to 254 characters. Parameters:
displayName - new display name for this MIME type object.
void setDisplayName(const char* displayName)
- setId
- Sets MIME type ID. Parameters: id - new id to be
set to this MIME type object.
void setId(long ID)
- setMimeType
- Sets the MIME type. The MIME type value can be up to 512 characters
long. Parameters: mimeType - new MIME type to be
set.
void setMimeType(const char* mimeType)
- setMimeTypeFlag
- sets MIME type flag. Parameters: mimeTypeFlag -
MIME type flag to be set. Valid values are:
- NONE_ENABLED
- TEXT_SEARCH_ENABLED
- STREAMING_ENABLED
void setMimeTypeFlag(long mimeTypeFlag)
- setName
- Sets the name to be assigned to this MIME Type. A display name can
also be provided if an application would like to display a more user-friendly
name. Parameters: name - new name to be set for this
MIME type object.
void setName(const char* name)
- setSuffixes
- Sets suffixes. Sets the MIME Type suffixes. The suffixes can
be up to 512 characters. Parameters: suffixes -
suffixes to be set to that will be supported by this MIME type object.
void setSuffixes(const char* suffixes)
(c) Copyright International Business Machines Corporation 1996, 2003. IBM Corp. All rights reserved.