Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Protected Attributes
nsMimeType Class Reference

#include <nsMimeTypeArray.h>

Inheritance diagram for nsMimeType:
Inheritance graph
Collaboration diagram for nsMimeType:
Collaboration graph

List of all members.

Public Member Functions

 nsMimeType (nsIDOMPlugin *aPlugin, nsIDOMMimeType *aMimeType)
virtual ~nsMimeType ()
NS_DECL_ISUPPORTS NS_IMETHOD GetDescription (nsAString &aDescription)
NS_IMETHOD GetEnabledPlugin (nsIDOMPlugin **aEnabledPlugin)
NS_IMETHOD GetSuffixes (nsAString &aSuffixes)
NS_IMETHOD GetType (nsAString &aType)

Public Attributes

readonly attribute DOMString description
readonly attribute nsIDOMPlugin enabledPlugin
readonly attribute DOMString suffixes
readonly attribute DOMString type

Protected Attributes

nsCOMPtr< nsIDOMMimeTypemMimeType

Detailed Description

Definition at line 71 of file nsMimeTypeArray.h.

Constructor & Destructor Documentation

nsMimeType::nsMimeType ( nsIDOMPlugin aPlugin,
nsIDOMMimeType aMimeType 

Definition at line 244 of file nsMimeTypeArray.cpp.

  mPlugin = aPlugin;
  mMimeType = aMimeType;
nsMimeType::~nsMimeType ( ) [virtual]

Definition at line 250 of file nsMimeTypeArray.cpp.


Member Function Documentation

Definition at line 268 of file nsMimeTypeArray.cpp.

  return mMimeType->GetDescription(aDescription);

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 274 of file nsMimeTypeArray.cpp.

  nsAutoString type;

  PRBool disabled = PR_FALSE;

  if (type.Length() == 1 && type.First() == '*') {
    // Check if the default plugin is disabled.
    disabled = nsContentUtils::GetBoolPref("plugin.default_plugin_disabled");

  *aEnabledPlugin = disabled ? nsnull : mPlugin;


  return NS_OK;

Here is the call graph for this function:

NS_IMETHODIMP nsMimeType::GetSuffixes ( nsAString &  aSuffixes)

Definition at line 294 of file nsMimeTypeArray.cpp.

  return mMimeType->GetSuffixes(aSuffixes);
NS_IMETHODIMP nsMimeType::GetType ( nsAString &  aType)

Definition at line 300 of file nsMimeTypeArray.cpp.

  return mMimeType->GetType(aType);

Here is the caller graph for this function:

Member Data Documentation

readonly attribute DOMString nsIDOMMimeType::description [inherited]

Definition at line 45 of file nsIDOMMimeType.idl.

Definition at line 46 of file nsIDOMMimeType.idl.

Definition at line 86 of file nsMimeTypeArray.h.

Definition at line 85 of file nsMimeTypeArray.h.

readonly attribute DOMString nsIDOMMimeType::suffixes [inherited]

Definition at line 47 of file nsIDOMMimeType.idl.

readonly attribute DOMString nsIDOMMimeType::type [inherited]

Definition at line 48 of file nsIDOMMimeType.idl.

The documentation for this class was generated from the following files: