Jump to content

wpDeleteAllJobs

From EDM2
Revision as of 06:14, 4 November 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:wpDeleteAllJobs}} This instance method is called to delete all jobs in a printer (print destination) object. ==Syntax== _wpDeleteAllJobs(somSelf) ==Parameters== ;''somSelf'' (WPPrinter *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPPrinter. ==Returns== ;''rc'' (BOOL) - returns :Success indicator. :'''TRUE''' Successful completion. :'''FALSE''' Error occurred. ==How to Override== This...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This instance method is called to delete all jobs in a printer (print destination) object.

Syntax

_wpDeleteAllJobs(somSelf)

Parameters

somSelf (WPPrinter *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPPrinter.

Returns

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

How to Override

This method is generally not overridden.

Usage

This method is not covered in the provided text.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPPrinter *somSelf; /* Pointer to the object on which the method is being invoked. */
BOOL rc; /* Success indicator. */

rc = _wpDeleteAllJobs(somSelf);

Example Code

VOID Abort_All_Jobs( SOMAny *self )
{
    CHAR szTitle[256]; /* Title of printer object */

    strcpy( szTitle, _wpQueryTitle( self ) );

    somPrintf("%s: Deleting all jobs.\n", szTitle);

    _wpSetDefaultPrinter( self );

    _wpHoldPrinter( self );

    _wpDeleteAllJobs( self );
}

Related Methods