PrinterBridge Class Reference

Printer Bridge. More...

#include <PrinterBridge.h>

List of all members.

Public Slots

void destroy (JNIEnv *env)
 Destroys the PrinterBridge object.
void pageDialog (JNIEnv *env)
 Displays page dialog.
jboolean printerDialog (JNIEnv *env)
 Displays printer dialog.

Public Member Functions

QPrinter * qPrinter () const
 Returns QPrinter adaptee.

Static Public Member Functions

static void initialize (JNIEnv *env, jclass cls)
 Initializes PrinterBridge class.
static jlong newInstance (JNIEnv *env, jobject obj)
 Returns new instance of the bridge object.
static QPrinter * toQPrinter (JNIEnv *env, jobject printer)
 Returns QPrinter object of the specified QSwing Printer object.

Protected Member Functions

 PrinterBridge (JNIEnv *env, jobject obj)
 Constructs new PrinterBridge object.
virtual ~PrinterBridge ()
 Destructs PrinterBridge object.


Detailed Description

Printer Bridge.

Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)
Version:
0.2.0

Constructor & Destructor Documentation

PrinterBridge::PrinterBridge ( JNIEnv *  env,
jobject  obj 
) [protected]

Constructs new PrinterBridge object.

Parameters:
env the JNIEnv pointer
obj the QSwing Printer object


Member Function Documentation

void PrinterBridge::destroy ( JNIEnv *  env  )  [slot]

Destroys the PrinterBridge object.

Parameters:
env the JNIEnv pointer

void PrinterBridge::pageDialog ( JNIEnv *  env  )  [slot]

Displays page dialog.

Parameters:
env the JNIEnv pointer

jboolean PrinterBridge::printerDialog ( JNIEnv *  env  )  [slot]

Displays printer dialog.

Parameters:
env the JNIEnv pointer
Returns:
it the dialog is accepted

void PrinterBridge::initialize ( JNIEnv *  env,
jclass  cls 
) [static]

Initializes PrinterBridge class.

Parameters:
env the JNIEnv pointer
cls the Printer class
Exceptions:
FatalError if failed

jlong PrinterBridge::newInstance ( JNIEnv *  env,
jobject  obj 
) [static]

Returns new instance of the bridge object.

Parameters:
env the JNIEnv pointer
obj the Printer object
Returns:
new instance of the bridge object

QPrinter * PrinterBridge::qPrinter (  )  const [inline]

Returns QPrinter adaptee.

Returns:
QPrinter adaptee

QPrinter * PrinterBridge::toQPrinter ( JNIEnv *  env,
jobject  printer 
) [static]

Returns QPrinter object of the specified QSwing Printer object.

Parameters:
env the JNIEnv pointer
printer the QSwing printer object
Returns:
QPrinter object of the specified QSwing Printer object


Copyright © 2007 ETF and contributors. All Rights Reserved.