/* Copyright (c) 1992 Colin Jensen.  All Rights Reserved. */


/*
 * 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 JO
#define JO SOMAny
#endif
#include "wptrans.h"

#define JO_MajorVersion 1
#define JO_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define JONewClass joc
#pragma linkage(joc, system)
#define JOClassData jod
#define JOCClassData jox
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define JO_classObj JOClassData.classObject
#define _JO JO_classObj

/*
 * New and Renew macros for JO
 */
#define _JONew() (_somNew(JOClassData.classObject))
#define JONew() \
	( JOClassData.classObject \
		? _JONew() \
		: ( JONewClass(JO_MajorVersion, JO_MinorVersion), _JONew() ) )
#define JORenew(buf) \
	( _somRenew(JOClassData.classObject, buf) )

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/*
 * New Method: wpDeleteJob
 */
typedef BOOL    SOMLINK somTP_JO_wpDeleteJob(JO *somSelf);
#pragma linkage(somTP_JO_wpDeleteJob, system)
typedef somTP_JO_wpDeleteJob *somTD_JO_wpDeleteJob;
#define somMD_JO_wpDeleteJob "----"
#define JO_wpDeleteJob(somSelf) \
    (SOM_Resolve(somSelf, JO, wpDeleteJob) \
	(somSelf))
#define _wpDeleteJob JO_wpDeleteJob

/*
 * New Method: wpHoldJob
 */
typedef BOOL    SOMLINK somTP_JO_wpHoldJob(JO *somSelf);
#pragma linkage(somTP_JO_wpHoldJob, system)
typedef somTP_JO_wpHoldJob *somTD_JO_wpHoldJob;
#define somMD_JO_wpHoldJob "----"
#define JO_wpHoldJob(somSelf) \
    (SOM_Resolve(somSelf, JO, wpHoldJob) \
	(somSelf))
#define _wpHoldJob JO_wpHoldJob

/*
 * New Method: wpReleaseJob
 */
typedef BOOL    SOMLINK somTP_JO_wpReleaseJob(JO *somSelf);
#pragma linkage(somTP_JO_wpReleaseJob, system)
typedef somTP_JO_wpReleaseJob *somTD_JO_wpReleaseJob;
#define somMD_JO_wpReleaseJob "----"
#define JO_wpReleaseJob(somSelf) \
    (SOM_Resolve(somSelf, JO, wpReleaseJob) \
	(somSelf))
#define _wpReleaseJob JO_wpReleaseJob

/*
 * New Method: wpPrintJobNext
 */
typedef BOOL    SOMLINK somTP_JO_wpPrintJobNext(JO *somSelf);
#pragma linkage(somTP_JO_wpPrintJobNext, system)
typedef somTP_JO_wpPrintJobNext *somTD_JO_wpPrintJobNext;
#define somMD_JO_wpPrintJobNext "----"
#define JO_wpPrintJobNext(somSelf) \
    (SOM_Resolve(somSelf, JO, wpPrintJobNext) \
	(somSelf))
#define _wpPrintJobNext JO_wpPrintJobNext

/*
 * New Method: wpStartJobAgain
 */
typedef BOOL    SOMLINK somTP_JO_wpStartJobAgain(JO *somSelf);
#pragma linkage(somTP_JO_wpStartJobAgain, system)
typedef somTP_JO_wpStartJobAgain *somTD_JO_wpStartJobAgain;
#define somMD_JO_wpStartJobAgain "----"
#define JO_wpStartJobAgain(somSelf) \
    (SOM_Resolve(somSelf, JO, wpStartJobAgain) \
	(somSelf))
#define _wpStartJobAgain JO_wpStartJobAgain

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct JOClassDataStructure {
	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;
} JOClassData;

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

#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_JO
#define M_JO SOMAny
#endif

#define M_JO_MajorVersion 1
#define M_JO_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define M_JONewClass joc
#pragma linkage(joc, system)
#define M_JOClassData jod
#define M_JOCClassData jox
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define M_JO_classObj M_JOClassData.classObject
#define _M_JO M_JO_classObj

/*
 * New and Renew macros for M_JO
 */
#define _M_JONew() (_somNew(M_JOClassData.classObject))
#define M_JONew() \
	( M_JOClassData.classObject \
		? _M_JONew() \
		: ( M_JONewClass(M_JO_MajorVersion, M_JO_MinorVersion), _M_JONew() ) )
#define M_JORenew(buf) \
	( _somRenew(M_JOClassData.classObject, buf) )

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

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

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

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

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

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

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct M_JOClassDataStructure {
	SOMAny *classObject;
} M_JOClassData;

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

#endif       /* wpjob_h */
