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


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

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


#ifndef wpclock_h
#define wpclock_h


#include <som.h>

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

#define WPClock_MajorVersion 1
#define WPClock_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define WPClockNewClass WPclkc
#pragma linkage(WPclkc, system)
#define WPClockClassData WPclkd
#define WPClockCClassData WPclkx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define WPClock_classObj WPClockClassData.classObject
#define _WPClock WPClock_classObj

/*
 * New and Renew macros for WPClock
 */
#define _WPClockNew() (_somNew(WPClockClassData.classObject))
#define WPClockNew() \
	( WPClockClassData.classObject \
		? _WPClockNew() \
		: ( WPClockNewClass(WPClock_MajorVersion, WPClock_MinorVersion), _WPClockNew() ) )
#define WPClockRenew(buf) \
	( _somRenew(WPClockClassData.classObject, buf) )

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

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

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

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

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

/*
 * Override method: wpSaveState
 */
#define WPClock_wpSaveState(somSelf) \
	WPObject_wpSaveState(somSelf)

/*
 * Override method: wpRestoreState
 */
#define WPClock_wpRestoreState(somSelf,ulReserved) \
	WPObject_wpRestoreState(somSelf,ulReserved)

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

/*
 * New Method: wpAddClockView1Page
 */
typedef ULONG    SOMLINK somTP_WPClock_wpAddClockView1Page(WPClock *somSelf,
		HWND hwndNotebook);
#pragma linkage(somTP_WPClock_wpAddClockView1Page, system)
typedef somTP_WPClock_wpAddClockView1Page *somTD_WPClock_wpAddClockView1Page;
#define somMD_WPClock_wpAddClockView1Page "----"
#define WPClock_wpAddClockView1Page(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPClock, wpAddClockView1Page) \
	(somSelf,hwndNotebook))
#define _wpAddClockView1Page WPClock_wpAddClockView1Page

/*
 * New Method: wpAddClockView2Page
 */
typedef ULONG    SOMLINK somTP_WPClock_wpAddClockView2Page(WPClock *somSelf,
		HWND hwndNotebook);
#pragma linkage(somTP_WPClock_wpAddClockView2Page, system)
typedef somTP_WPClock_wpAddClockView2Page *somTD_WPClock_wpAddClockView2Page;
#define somMD_WPClock_wpAddClockView2Page "----"
#define WPClock_wpAddClockView2Page(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPClock, wpAddClockView2Page) \
	(somSelf,hwndNotebook))
#define _wpAddClockView2Page WPClock_wpAddClockView2Page

/*
 * New Method: wpAddClockDateTimePage
 */
typedef ULONG    SOMLINK somTP_WPClock_wpAddClockDateTimePage(WPClock *somSelf,
		HWND hwndNotebook);
#pragma linkage(somTP_WPClock_wpAddClockDateTimePage, system)
typedef somTP_WPClock_wpAddClockDateTimePage *somTD_WPClock_wpAddClockDateTimePage;
#define somMD_WPClock_wpAddClockDateTimePage "----"
#define WPClock_wpAddClockDateTimePage(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPClock, wpAddClockDateTimePage) \
	(somSelf,hwndNotebook))
#define _wpAddClockDateTimePage WPClock_wpAddClockDateTimePage

/*
 * New Method: wpAddClockAlarmPage
 */
typedef ULONG    SOMLINK somTP_WPClock_wpAddClockAlarmPage(WPClock *somSelf,
		HWND hwndNotebook);
#pragma linkage(somTP_WPClock_wpAddClockAlarmPage, system)
typedef somTP_WPClock_wpAddClockAlarmPage *somTD_WPClock_wpAddClockAlarmPage;
#define somMD_WPClock_wpAddClockAlarmPage "----"
#define WPClock_wpAddClockAlarmPage(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPClock, wpAddClockAlarmPage) \
	(somSelf,hwndNotebook))
#define _wpAddClockAlarmPage WPClock_wpAddClockAlarmPage

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct WPClockClassDataStructure {
	SOMAny *classObject;
	somMToken wpAddClockView1Page;
	somMToken wpAddClockView2Page;
	somMToken wpAddClockDateTimePage;
	somMToken wpAddClockAlarmPage;
} WPClockClassData;

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

#endif       /* wpclock_h */

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

#ifndef wpclock_mh
#define wpclock_mh


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

#define M_WPClock_MajorVersion 1
#define M_WPClock_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define M_WPClockNewClass WPclkc
#pragma linkage(WPclkc, system)
#define M_WPClockClassData WPclkd
#define M_WPClockCClassData WPclkx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define M_WPClock_classObj M_WPClockClassData.classObject
#define _M_WPClock M_WPClock_classObj

/*
 * New and Renew macros for M_WPClock
 */
#define _M_WPClockNew() (_somNew(M_WPClockClassData.classObject))
#define M_WPClockNew() \
	( M_WPClockClassData.classObject \
		? _M_WPClockNew() \
		: ( M_WPClockNewClass(M_WPClock_MajorVersion, M_WPClock_MinorVersion), _M_WPClockNew() ) )
#define M_WPClockRenew(buf) \
	( _somRenew(M_WPClockClassData.classObject, buf) )

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

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

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

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

/*
 * Override method: wpclsQueryIconData
 */
#define M_WPClock_wpclsQueryIconData(somSelf,pIconInfo) \
	M_WPObject_wpclsQueryIconData(somSelf,pIconInfo)

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct M_WPClockClassDataStructure {
	SOMAny *classObject;
} M_WPClockClassData;

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

#endif       /* wpclock_h */
