Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions
nsPropertyElement Class Reference

#include <nsPersistentProperties.h>

Inheritance diagram for nsPropertyElement:
Inheritance graph
[legend]
Collaboration diagram for nsPropertyElement:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsPropertyElement ()
 nsPropertyElement (const nsACString &aKey, const nsAString &aValue)

Static Public Member Functions

NS_DECL_ISUPPORTS static
NS_DECL_NSIPROPERTYELEMENT
NS_METHOD 
Create (nsISupports *aOuter, REFNSIID aIID, void **aResult)

Public Attributes

attribute AUTF8String key
attribute AString value

Protected Attributes

nsCString mKey
nsString mValue

Private Member Functions

 ~nsPropertyElement ()

Detailed Description

Definition at line 80 of file nsPersistentProperties.h.


Constructor & Destructor Documentation

Definition at line 83 of file nsPersistentProperties.h.

  {
  }

Here is the caller graph for this function:

nsPropertyElement::nsPropertyElement ( const nsACString &  aKey,
const nsAString &  aValue 
) [inline]

Definition at line 87 of file nsPersistentProperties.h.

    : mKey(aKey), mValue(aValue)
  {
  }

Definition at line 99 of file nsPersistentProperties.h.

{}

Member Function Documentation

NS_METHOD nsPropertyElement::Create ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
) [static]

Definition at line 449 of file nsPersistentProperties.cpp.

{
  if (aOuter)
    return NS_ERROR_NO_AGGREGATION;
  nsPropertyElement* propElem = new nsPropertyElement();
  if (propElem == nsnull)
    return NS_ERROR_OUT_OF_MEMORY;
  NS_ADDREF(propElem);
  nsresult rv = propElem->QueryInterface(aIID, aResult);
  NS_RELEASE(propElem);
  return rv;
}

Here is the call graph for this function:


Member Data Documentation

attribute AUTF8String nsIPropertyElement::key [inherited]

Definition at line 47 of file nsIPersistentProperties2.idl.

Definition at line 102 of file nsPersistentProperties.h.

Definition at line 103 of file nsPersistentProperties.h.

attribute AString nsIPropertyElement::value [inherited]

Definition at line 48 of file nsIPersistentProperties2.idl.


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