
/*
 * This file was generated by the SOM Compiler.
 * FileName: ..\..\ibmh\wpjob.h.
 * Generated using:
 *     SOM Precompiler spc: 1.22
 *     SOM Emitter emith: 1.11
 */

/*
 * 
 *  Module Header
 * 
 *  Module Name: WPJOB
 * 
 *  OS/2 Presentation Manager Workplace class definitions
 * 
 *  Copyright (c) International Business Machines Corporation 1991, 1992
 * 
 */


#ifndef wpjob_h
#define wpjob_h


/*
 * Passthru lines: File: "C.h", "before"
 */

#include <som.h>

/*
 * Define the class name as an object type
 */
#ifndef WPJob
#define WPJob SOMAny
#endif
#include "wptrans.h"

#define WPJob_MajorVersion 1
#define WPJob_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define WPJobNewClass WPjobc
#pragma linkage(WPjobc, system)
#define WPJobClassData WPjobd
#define WPJobCClassData WPjobx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define WPJob_classObj WPJobClassData.classObject
#define _WPJob WPJob_classObj

/*
 * New and Renew macros for WPJob
 */
#define _WPJobNew() (_somNew(WPJobClassData.classObject))
#define WPJobNew() \
	( WPJobClassData.classObject \
		? _WPJobNew() \
		: ( WPJobNewClass(WPJob_MajorVersion, WPJob_MinorVersion), _WPJobNew() ) )
#define WPJobRenew(buf) \
	( _somRenew(WPJobClassData.classObject, buf) )

/*
 * Override method: wpInitData
 */
#define WPJob_wpInitData(somSelf) \
	WPObject_wpInitData(somSelf)

/*
 * Override method: wpUnInitData
 */
#define WPJob_wpUnInitData(somSelf) \
	WPObject_wpUnInitData(somSelf)

/*
 * Override method: somDumpSelfInt
 */
#define WPJob_somDumpSelfInt(somSelf,level) \
	SOMObject_somDumpSelfInt(somSelf,level)

/*
 * Override method: wpAddSettingsPages
 */
#define WPJob_wpAddSettingsPages(somSelf,hwndNotebook) \
	WPObject_wpAddSettingsPages(somSelf,hwndNotebook)

/*
 * Override method: wpAddObjectGeneralPage
 */
#define WPJob_wpAddObjectGeneralPage(somSelf,hwndNotebook) \
	WPObject_wpAddObjectGeneralPage(somSelf,hwndNotebook)

/*
 * Override method: wpQueryTitle
 */
#define WPJob_wpQueryTitle(somSelf) \
	WPObject_wpQueryTitle(somSelf)

/*
 * Override method: wpQueryIcon
 */
#define WPJob_wpQueryIcon(somSelf) \
	WPObject_wpQueryIcon(somSelf)

/*
 * Override method: wpFilterPopupMenu
 */
#define WPJob_wpFilterPopupMenu(somSelf,ulFlags,hwndCnr,fMultiSelect) \
	WPObject_wpFilterPopupMenu(somSelf,ulFlags,hwndCnr,fMultiSelect)

/*
 * Override method: wpFree
 */
#define WPJob_wpFree(somSelf) \
	WPObject_wpFree(somSelf)

/*
 * Override method: wpModifyPopupMenu
 */
#define WPJob_wpModifyPopupMenu(somSelf,hwndMenu,hwndCnr,iPosition) \
	WPObject_wpModifyPopupMenu(somSelf,hwndMenu,hwndCnr,iPosition)

/*
 * Override method: wpMenuItemSelected
 */
#define WPJob_wpMenuItemSelected(somSelf,hwndFrame,ulMenuId) \
	WPObject_wpMenuItemSelected(somSelf,hwndFrame,ulMenuId)

/*
 * Override method: wpMenuItemHelpSelected
 */
#define WPJob_wpMenuItemHelpSelected(somSelf,MenuId) \
	WPObject_wpMenuItemHelpSelected(somSelf,MenuId)

/*
 * Override method: wpOpen
 */
#define WPJob_wpOpen(somSelf,hwndCnr,ulView,param) \
	WPObject_wpOpen(somSelf,hwndCnr,ulView,param)

/*
 * Override method: wpDrop
 */
#define WPJob_wpDrop(somSelf,hwndCnr,pdrgInfo,pdrgItem) \
	WPObject_wpDrop(somSelf,hwndCnr,pdrgInfo,pdrgItem)

/*
 * Override method: wpDragOver
 */
#define WPJob_wpDragOver(somSelf,hwndCnr,pdrgInfo) \
	WPObject_wpDragOver(somSelf,hwndCnr,pdrgInfo)

/*
 * Override method: wpQueryDetailsData
 */
#define WPJob_wpQueryDetailsData(somSelf,ppDetailsData,pcp) \
	WPObject_wpQueryDetailsData(somSelf,ppDetailsData,pcp)

/*
 * Override method: wpSetTitle
 */
#define WPJob_wpSetTitle(somSelf,pszNewTitle) \
	WPObject_wpSetTitle(somSelf,pszNewTitle)

/*
 * New Method: wpDeleteJob
 */
typedef BOOL    SOMLINK somTP_WPJob_wpDeleteJob(WPJob *somSelf);
#pragma linkage(somTP_WPJob_wpDeleteJob, system)
typedef somTP_WPJob_wpDeleteJob *somTD_WPJob_wpDeleteJob;
#define somMD_WPJob_wpDeleteJob "----"
#define WPJob_wpDeleteJob(somSelf) \
    (SOM_Resolve(somSelf, WPJob, wpDeleteJob) \
	(somSelf))
#define _wpDeleteJob WPJob_wpDeleteJob

/*
 * New Method: wpHoldJob
 */
typedef BOOL    SOMLINK somTP_WPJob_wpHoldJob(WPJob *somSelf);
#pragma linkage(somTP_WPJob_wpHoldJob, system)
typedef somTP_WPJob_wpHoldJob *somTD_WPJob_wpHoldJob;
#define somMD_WPJob_wpHoldJob "----"
#define WPJob_wpHoldJob(somSelf) \
    (SOM_Resolve(somSelf, WPJob, wpHoldJob) \
	(somSelf))
#define _wpHoldJob WPJob_wpHoldJob

/*
 * New Method: wpReleaseJob
 */
typedef BOOL    SOMLINK somTP_WPJob_wpReleaseJob(WPJob *somSelf);
#pragma linkage(somTP_WPJob_wpReleaseJob, system)
typedef somTP_WPJob_wpReleaseJob *somTD_WPJob_wpReleaseJob;
#define somMD_WPJob_wpReleaseJob "----"
#define WPJob_wpReleaseJob(somSelf) \
    (SOM_Resolve(somSelf, WPJob, wpReleaseJob) \
	(somSelf))
#define _wpReleaseJob WPJob_wpReleaseJob

/*
 * New Method: wpPrintJobNext
 */
typedef BOOL    SOMLINK somTP_WPJob_wpPrintJobNext(WPJob *somSelf);
#pragma linkage(somTP_WPJob_wpPrintJobNext, system)
typedef somTP_WPJob_wpPrintJobNext *somTD_WPJob_wpPrintJobNext;
#define somMD_WPJob_wpPrintJobNext "----"
#define WPJob_wpPrintJobNext(somSelf) \
    (SOM_Resolve(somSelf, WPJob, wpPrintJobNext) \
	(somSelf))
#define _wpPrintJobNext WPJob_wpPrintJobNext

/*
 * New Method: wpStartJobAgain
 */
typedef BOOL    SOMLINK somTP_WPJob_wpStartJobAgain(WPJob *somSelf);
#pragma linkage(somTP_WPJob_wpStartJobAgain, system)
typedef somTP_WPJob_wpStartJobAgain *somTD_WPJob_wpStartJobAgain;
#define somMD_WPJob_wpStartJobAgain "----"
#define WPJob_wpStartJobAgain(somSelf) \
    (SOM_Resolve(somSelf, WPJob, wpStartJobAgain) \
	(somSelf))
#define _wpStartJobAgain WPJob_wpStartJobAgain

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMAny * SOMLINK WPJobNewClass(integer4 scemajorVersion,
		integer4 sceminorVersion);
#pragma linkage(WPJobNewClass, system)

/*
 * Declare the class data structure
 */
SOMEXTERN struct WPJobClassDataStructure {
	SOMAny *classObject;
	somMToken prtGetJobID;
	somMToken prtSetJobID;
	somMToken prtGetJobInfo2;
	somMToken prtSetJobInfo2;
	somMToken prtGetJobInfo3;
	somMToken prtSetJobInfo3;
	somMToken prtFreeJobInfo2;
	somMToken prtFreeJobInfo3;
	somMToken prtGetPDObject;
	somMToken prtSetPDObject;
	somMToken prtGetDocument;
	somMToken prtSetDocument;
	somMToken prtDupJobInfo2;
	somMToken prtDupJobInfo3;
	somMToken wpDeleteJob;
	somMToken wpHoldJob;
	somMToken wpReleaseJob;
	somMToken wpPrintJobNext;
	somMToken wpStartJobAgain;
} WPJobClassData;

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct WPJobCClassDataStructure {
	somMethodTab *parentMtab;
	somDToken instanceDataToken;
} WPJobCClassData;

#endif       /* wpjob_h */

/*
 * This file was generated by the SOM Compiler.
 * FileName: ..\..\ibmh\wpjob.h.
 * Generated using:
 *     SOM Precompiler spc: 1.22
 *     SOM Emitter emith: 1.11
 */

#ifndef wpjob_mh
#define wpjob_mh


/*
 * Define the class name as an object type
 */
#ifndef M_WPJob
#define M_WPJob SOMAny
#endif

#define M_WPJob_MajorVersion 1
#define M_WPJob_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define M_WPJobNewClass WPjobc
#pragma linkage(WPjobc, system)
#define M_WPJobClassData WPjobd
#define M_WPJobCClassData WPjobx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define M_WPJob_classObj M_WPJobClassData.classObject
#define _M_WPJob M_WPJob_classObj

/*
 * New and Renew macros for M_WPJob
 */
#define _M_WPJobNew() (_somNew(M_WPJobClassData.classObject))
#define M_WPJobNew() \
	( M_WPJobClassData.classObject \
		? _M_WPJobNew() \
		: ( M_WPJobNewClass(M_WPJob_MajorVersion, M_WPJob_MinorVersion), _M_WPJobNew() ) )
#define M_WPJobRenew(buf) \
	( _somRenew(M_WPJobClassData.classObject, buf) )

/*
 * Override method: wpclsQueryTitle
 */
#define M_WPJob_wpclsQueryTitle(somSelf) \
	M_WPObject_wpclsQueryTitle(somSelf)

/*
 * Override method: wpclsQueryIcon
 */
#define M_WPJob_wpclsQueryIcon(somSelf) \
	M_WPObject_wpclsQueryIcon(somSelf)

/*
 * Override method: wpclsQueryDefaultHelp
 */
#define M_WPJob_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary) \
	M_WPObject_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary)

/*
 * Override method: wpclsQueryDefaultView
 */
#define M_WPJob_wpclsQueryDefaultView(somSelf) \
	M_WPObject_wpclsQueryDefaultView(somSelf)

/*
 * Override method: wpclsQueryDetailsInfo
 */
#define M_WPJob_wpclsQueryDetailsInfo(somSelf,ppClassFieldInfo,pSize) \
	M_WPObject_wpclsQueryDetailsInfo(somSelf,ppClassFieldInfo,pSize)

/*
 * Override method: wpclsQueryStyle
 */
#define M_WPJob_wpclsQueryStyle(somSelf) \
	M_WPObject_wpclsQueryStyle(somSelf)

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMAny * SOMLINK M_WPJobNewClass(integer4 scemajorVersion,
		integer4 sceminorVersion);
#pragma linkage(M_WPJobNewClass, system)

/*
 * Declare the class data structure
 */
SOMEXTERN struct M_WPJobClassDataStructure {
	SOMAny *classObject;
} M_WPJobClassData;

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct M_WPJobCClassDataStructure {
	somMethodTab *parentMtab;
	somDToken instanceDataToken;
} M_WPJobCClassData;

#endif       /* wpjob_h */
