Back to index

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

#include <nsPrintSessionX.h>

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

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIPRINTSESSIONX 
nsPrintSessionX ()
virtual ~nsPrintSessionX ()
nsresult Init ()

Public Attributes

readonly attribute nsPMPrintSession nativeSession
 nativeSession attribute

Protected Attributes

PMPrintSession mSession

Detailed Description

Definition at line 49 of file nsPrintSessionX.h.


Constructor & Destructor Documentation

Definition at line 55 of file nsPrintSessionX.cpp.

{
  if (mSession) {
    ::PMRelease(mSession);
    mSession = nsnull;
  }
}

Member Function Documentation

Definition at line 64 of file nsPrintSessionX.cpp.

{
  nsresult rv = nsPrintSession::Init();
  if (NS_FAILED(rv))
    return rv;
  
  OSStatus status = ::PMCreateSession(&mSession);
  if (status != noErr)
    return NS_ERROR_FAILURE;
    
  return NS_OK;
}

Here is the call graph for this function:


Member Data Documentation

PMPrintSession nsPrintSessionX::mSession [protected]

Definition at line 62 of file nsPrintSessionX.h.

nativeSession attribute

Does NOT do PMRetain() on result.

Definition at line 68 of file nsIPrintSessionX.idl.


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