sbPropertyUnit Class Reference

#include <sbPropertyUnitConverter.h>

Inheritance diagram for sbPropertyUnit:
[legend]
Collaboration diagram for sbPropertyUnit:
[legend]

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_SBIPROPERTYUNIT 
sbPropertyUnit ()
 
 sbPropertyUnit (const nsAString &aName, const nsAString &aShortName, const nsAString &aID)
 
virtual ~sbPropertyUnit ()
 
NS_IMETHODIMP Init (const nsAString &aName, const nsAString &aShortName, const nsAString &aID)
 

Protected Attributes

PRLock * mLock
 
nsString mName
 
nsString mShortName
 
nsString mID
 
PRBool mInitialized
 

Additional Inherited Members

- Public Attributes inherited from sbIPropertyUnit
readonly attribute AString id
 The id of the unit. This string is not localized and is used in calls to sbIPropertyUnitConverter's convert function to specify to and from which unit to convert, it should be unique within the list units in an sbIPropertyUnitConverter. More...
 
readonly attribute AString name
 The full name of the unit, ie. Kilobyte. This is a localized string, ie. a partial entity such as "&my.partial.entity", which needs to be translated before being shown on a user interface. More...
 
readonly attribute AString shortName
 The short name of the unit, ie. kB. This is a localized string, ie. a partial entity such as "&my.partial.entity", which needs to be translated before being shown on a user interface. More...
 

Detailed Description

Definition at line 42 of file sbPropertyUnitConverter.h.

Constructor & Destructor Documentation

sbPropertyUnit::sbPropertyUnit ( )

Definition at line 63 of file sbPropertyUnitConverter.cpp.

sbPropertyUnit::sbPropertyUnit ( const nsAString &  aName,
const nsAString &  aShortName,
const nsAString &  aID 
)

Definition at line 72 of file sbPropertyUnitConverter.cpp.

sbPropertyUnit::~sbPropertyUnit ( )
virtual

Definition at line 86 of file sbPropertyUnitConverter.cpp.

Member Function Documentation

NS_IMETHODIMP sbPropertyUnit::Init ( const nsAString &  aName,
const nsAString &  aShortName,
const nsAString &  aID 
)

Definition at line 94 of file sbPropertyUnitConverter.cpp.

Member Data Documentation

nsString sbPropertyUnit::mID
protected

Definition at line 62 of file sbPropertyUnitConverter.h.

PRBool sbPropertyUnit::mInitialized
protected

Definition at line 63 of file sbPropertyUnitConverter.h.

PRLock* sbPropertyUnit::mLock
protected

Definition at line 59 of file sbPropertyUnitConverter.h.

nsString sbPropertyUnit::mName
protected

Definition at line 60 of file sbPropertyUnitConverter.h.

nsString sbPropertyUnit::mShortName
protected

Definition at line 61 of file sbPropertyUnitConverter.h.


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