Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsCharsetMenu.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NS_CHARSETMENU_CID   {0x42c52b81, 0xa200, 0x11d3, { 0x9d, 0xb, 0x0, 0x50, 0x4, 0x0, 0x7, 0xb2}}
#define NS_CHARSETMENU_PID   "charset-menu"

Functions

NS_IMETHODIMP NS_NewCharsetMenu (nsISupports *aOuter, const nsIID &aIID, void **aResult)

Define Documentation

#define NS_CHARSETMENU_CID   {0x42c52b81, 0xa200, 0x11d3, { 0x9d, 0xb, 0x0, 0x50, 0x4, 0x0, 0x7, 0xb2}}

Definition at line 41 of file nsCharsetMenu.h.

#define NS_CHARSETMENU_PID   "charset-menu"

Definition at line 44 of file nsCharsetMenu.h.


Function Documentation

NS_IMETHODIMP NS_NewCharsetMenu ( nsISupports *  aOuter,
const nsIID aIID,
void **  aResult 
)

Definition at line 330 of file nsCharsetMenu.cpp.

{
  if (!aResult) {
    return NS_ERROR_NULL_POINTER;
  }
  if (aOuter) {
    *aResult = nsnull;
    return NS_ERROR_NO_AGGREGATION;
  }
  nsCharsetMenu* inst = new nsCharsetMenu();
  if (!inst) {
    *aResult = nsnull;
    return NS_ERROR_OUT_OF_MEMORY;
  }
  nsresult res = inst->QueryInterface(aIID, aResult);
  if (NS_FAILED(res)) {
    *aResult = nsnull;
    delete inst;
  }
  return res;
}