Jump to content

wpJobChanged

From EDM2

This method is specific to version 3, or higher, of the OS/2 operating system.

This instance method notifies the printer object that a job in the print queue has been changed in some way.

Syntax

_wpJobChanged(somSelf, ulJobId, ulField)

Parameters

somSelf (WPPrinter *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPPrinter.
ulJobId (ULONG) - input
ID of the job that was changed.
ulField (ULONG) - input
The new status of the job.
May be one of the following values:
  • **PO_JOB_HELD** The job is being held.
  • **PO_JOB_RELEASE** The job has been released.

Returns

rc (BOOL) - returns
Success indicator.
  • TRUE Successful completion.
  • FALSE Error occurred.

How to Override

This method can be overridden, but the parent must be called for proper functioning of the printer object.

Usage

This method can be called at any time.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPPrinter *somSelf; /* Pointer to the object on which the method is being invoked. */
ULONG ulJobId; /* ID of the job that was changed. */
ULONG ulField; /* The new status of the job. */
BOOL rc; /* Success indicator. */

rc = _wpJobChanged(somSelf, ulJobId, ulField);

Related Methods