
/*
 * This file was generated by the SOM Compiler.
 * FileName: F:\wpwpsh\rel\ppc\include\os2\wppower.h.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.3
 *     SOM Emitter emith: 2.41
 */

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


#ifndef SOM_WPPower_h
#define SOM_WPPower_h


/*
 * Passthru lines: File: "C.h", "before"
 */
#define OPEN_STATUS  131
    #define OPEN_BATTERY 132
    #define QWL_POWERPAGE2 QWL_USER+sizeof(ULONG)


#include <som.h>

/*
 * -- This emitter treats Method Tokens as Thunks by default.
 * -- Use the sc modifier "nothunks" to change this default
 */
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))

/*
 * Define the class name as an object type
 */
#ifndef WPPower
#define WPPower SOMObject
#endif
#include <wpabs.h>

/*
 * Start of bindings for IDL types
 */

#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef WPFolder
    #define WPFolder SOMObject
#endif /* WPFolder */
#ifndef M_WPObject
    #define M_WPObject SOMObject
#endif /* M_WPObject */
#ifndef WPObject
    #define WPObject SOMObject
#endif /* WPObject */
#ifndef M_WPAbstract
    #define M_WPAbstract SOMObject
#endif /* M_WPAbstract */
#ifndef M_WPPower
    #define M_WPPower SOMObject
#endif /* M_WPPower */

/*
 * End of bindings for IDL types.
 */

#define WPPower_MajorVersion 1
#define WPPower_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define WPPowerNewClass WPPowerc
#define WPPowerClassData WPPowerd
#define WPPowerCClassData WPPowerx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */

/*
 * Include the meta class file
 */
#include <wppower.h>
/*--------------Migration------------*/
#define WPPower_classObj WPPowerClassData.classObject
#define _WPPower WPPower_classObj

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMClass * SOMLINK WPPowerNewClass(integer4 somtmajorVersion,
		integer4 somtminorVersion);

/*
 * Declare the class data structure
 */
SOMEXTERN struct WPPowerClassDataStructure {
	SOMClass *classObject;
	somMToken wpChangePowerState;
	somMToken wpSetPowerManagement;
	somMToken wpQueryPowerManagement;
	somMToken wpSetPowerConfirmation;
	somMToken wpQueryPowerConfirmation;
	somMToken wpAddPowerPage;
	somMToken wpAddPowerViewPage;
	somMToken wpSetAutoRefresh;
	somMToken wpQueryAutoRefresh;
	somMToken wpQueryRefreshRate;
	somMToken wpSetRefreshRate;
	somMToken wpQueryEventSemaphore;
	somMToken wpSetEventSemaphore;
	somMToken wpQueryDefStatusView;
	somMToken wpSetDefStatusView;
	somMToken wpAddPowerPage2;
	somMToken wpQueryMachineStateSettings;
	somMToken wpSetMachineStateSettings;
	somMToken wpQueryDischarge;
	somMToken wpSetDischarge;
	somMToken wpChangePPCPowerState;
} SOMDLINK WPPowerClassData;

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct WPPowerCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOMDLINK WPPowerCClassData;

/*
 * New and Renew macros for WPPower
 */
#define WPPowerNew() \
   (_somNew(_WPPower ? _WPPower : WPPowerNewClass(WPPower_MajorVersion, WPPower_MinorVersion)))
#define WPPowerRenew(buf) \
   (_somRenew(_WPPower ? _WPPower : WPPowerNewClass(WPPower_MajorVersion, WPPower_MinorVersion), buf))

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

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

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

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

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

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

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

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

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

/*
 * Override method: wpAddObjectWindowPage
 */
#define WPPower_wpAddObjectWindowPage(somSelf,hwndNotebook) \
	WPObject_wpAddObjectWindowPage(somSelf,hwndNotebook)

/*
 * Override method: somDefaultInit
 */
#define WPPower_somDefaultInit(somSelf,ctrl) \
	SOMObject_somDefaultInit(somSelf,ctrl)

/*
 * Override method: somDestruct
 */
#define WPPower_somDestruct(somSelf,doFree,ctrl) \
	SOMObject_somDestruct(somSelf,doFree,ctrl)

/*
 * New Method: wpAddPowerPage2
 */
typedef ULONG   SOMLINK somTP_WPPower_wpAddPowerPage2(WPPower *somSelf, 
		HWND hwndNotebook);
typedef somTP_WPPower_wpAddPowerPage2 *somTD_WPPower_wpAddPowerPage2;
#define somMD_WPPower_wpAddPowerPage2 "::WPPower::wpAddPowerPage2"
#define WPPower_wpAddPowerPage2(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPPower, wpAddPowerPage2) \
	(somSelf,hwndNotebook))
#ifndef SOMGD_wpAddPowerPage2
    #if (defined(_wpAddPowerPage2) || defined(__wpAddPowerPage2))
        #undef _wpAddPowerPage2
        #undef __wpAddPowerPage2
        #define SOMGD_wpAddPowerPage2 1
    #else
        #define _wpAddPowerPage2 WPPower_wpAddPowerPage2
    #endif /* _wpAddPowerPage2 */
#endif /* SOMGD_wpAddPowerPage2 */

/*
 * New Method: wpQueryMachineStateSettings
 */
typedef ULONG   SOMLINK somTP_WPPower_wpQueryMachineStateSettings(WPPower *somSelf, 
		ULONG ulEvent);
typedef somTP_WPPower_wpQueryMachineStateSettings *somTD_WPPower_wpQueryMachineStateSettings;
#define somMD_WPPower_wpQueryMachineStateSettings "::WPPower::wpQueryMachineStateSettings"
#define WPPower_wpQueryMachineStateSettings(somSelf,ulEvent) \
    (SOM_Resolve(somSelf, WPPower, wpQueryMachineStateSettings) \
	(somSelf,ulEvent))
#ifndef SOMGD_wpQueryMachineStateSettings
    #if (defined(_wpQueryMachineStateSettings) || defined(__wpQueryMachineStateSettings))
        #undef _wpQueryMachineStateSettings
        #undef __wpQueryMachineStateSettings
        #define SOMGD_wpQueryMachineStateSettings 1
    #else
        #define _wpQueryMachineStateSettings WPPower_wpQueryMachineStateSettings
    #endif /* _wpQueryMachineStateSettings */
#endif /* SOMGD_wpQueryMachineStateSettings */

/*
 * New Method: wpSetMachineStateSettings
 */
typedef BOOL   SOMLINK somTP_WPPower_wpSetMachineStateSettings(WPPower *somSelf, 
		ULONG ulEvent, 
		ULONG ulState);
typedef somTP_WPPower_wpSetMachineStateSettings *somTD_WPPower_wpSetMachineStateSettings;
#define somMD_WPPower_wpSetMachineStateSettings "::WPPower::wpSetMachineStateSettings"
#define WPPower_wpSetMachineStateSettings(somSelf,ulEvent,ulState) \
    (SOM_Resolve(somSelf, WPPower, wpSetMachineStateSettings) \
	(somSelf,ulEvent,ulState))
#ifndef SOMGD_wpSetMachineStateSettings
    #if (defined(_wpSetMachineStateSettings) || defined(__wpSetMachineStateSettings))
        #undef _wpSetMachineStateSettings
        #undef __wpSetMachineStateSettings
        #define SOMGD_wpSetMachineStateSettings 1
    #else
        #define _wpSetMachineStateSettings WPPower_wpSetMachineStateSettings
    #endif /* _wpSetMachineStateSettings */
#endif /* SOMGD_wpSetMachineStateSettings */

/*
 * New Method: wpQueryDischarge
 */
typedef BOOL   SOMLINK somTP_WPPower_wpQueryDischarge(WPPower *somSelf);
typedef somTP_WPPower_wpQueryDischarge *somTD_WPPower_wpQueryDischarge;
#define somMD_WPPower_wpQueryDischarge "::WPPower::wpQueryDischarge"
#define WPPower_wpQueryDischarge(somSelf) \
    (SOM_Resolve(somSelf, WPPower, wpQueryDischarge) \
	(somSelf))
#ifndef SOMGD_wpQueryDischarge
    #if (defined(_wpQueryDischarge) || defined(__wpQueryDischarge))
        #undef _wpQueryDischarge
        #undef __wpQueryDischarge
        #define SOMGD_wpQueryDischarge 1
    #else
        #define _wpQueryDischarge WPPower_wpQueryDischarge
    #endif /* _wpQueryDischarge */
#endif /* SOMGD_wpQueryDischarge */

/*
 * New Method: wpSetDischarge
 */
typedef BOOL   SOMLINK somTP_WPPower_wpSetDischarge(WPPower *somSelf, 
		BOOL bDischarge);
typedef somTP_WPPower_wpSetDischarge *somTD_WPPower_wpSetDischarge;
#define somMD_WPPower_wpSetDischarge "::WPPower::wpSetDischarge"
#define WPPower_wpSetDischarge(somSelf,bDischarge) \
    (SOM_Resolve(somSelf, WPPower, wpSetDischarge) \
	(somSelf,bDischarge))
#ifndef SOMGD_wpSetDischarge
    #if (defined(_wpSetDischarge) || defined(__wpSetDischarge))
        #undef _wpSetDischarge
        #undef __wpSetDischarge
        #define SOMGD_wpSetDischarge 1
    #else
        #define _wpSetDischarge WPPower_wpSetDischarge
    #endif /* _wpSetDischarge */
#endif /* SOMGD_wpSetDischarge */

/*
 * New Method: wpChangePPCPowerState
 */
typedef BOOL   SOMLINK somTP_WPPower_wpChangePPCPowerState(WPPower *somSelf, 
		ULONG ulParm1, 
		ULONG ulParm2);
typedef somTP_WPPower_wpChangePPCPowerState *somTD_WPPower_wpChangePPCPowerState;
#define somMD_WPPower_wpChangePPCPowerState "::WPPower::wpChangePPCPowerState"
#define WPPower_wpChangePPCPowerState(somSelf,ulParm1,ulParm2) \
    (SOM_Resolve(somSelf, WPPower, wpChangePPCPowerState) \
	(somSelf,ulParm1,ulParm2))
#ifndef SOMGD_wpChangePPCPowerState
    #if (defined(_wpChangePPCPowerState) || defined(__wpChangePPCPowerState))
        #undef _wpChangePPCPowerState
        #undef __wpChangePPCPowerState
        #define SOMGD_wpChangePPCPowerState 1
    #else
        #define _wpChangePPCPowerState WPPower_wpChangePPCPowerState
    #endif /* _wpChangePPCPowerState */
#endif /* SOMGD_wpChangePPCPowerState */

/*
 * New Method: wpAddPowerPage
 */
typedef ULONG   SOMLINK somTP_WPPower_wpAddPowerPage(WPPower *somSelf, 
		HWND hwndNotebook);
typedef somTP_WPPower_wpAddPowerPage *somTD_WPPower_wpAddPowerPage;
#define somMD_WPPower_wpAddPowerPage "::WPPower::wpAddPowerPage"
#define WPPower_wpAddPowerPage(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPPower, wpAddPowerPage) \
	(somSelf,hwndNotebook))
#ifndef SOMGD_wpAddPowerPage
    #if (defined(_wpAddPowerPage) || defined(__wpAddPowerPage))
        #undef _wpAddPowerPage
        #undef __wpAddPowerPage
        #define SOMGD_wpAddPowerPage 1
    #else
        #define _wpAddPowerPage WPPower_wpAddPowerPage
    #endif /* _wpAddPowerPage */
#endif /* SOMGD_wpAddPowerPage */

/*
 * New Method: wpAddPowerViewPage
 */
typedef ULONG   SOMLINK somTP_WPPower_wpAddPowerViewPage(WPPower *somSelf, 
		HWND hwndNotebook);
typedef somTP_WPPower_wpAddPowerViewPage *somTD_WPPower_wpAddPowerViewPage;
#define somMD_WPPower_wpAddPowerViewPage "::WPPower::wpAddPowerViewPage"
#define WPPower_wpAddPowerViewPage(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPPower, wpAddPowerViewPage) \
	(somSelf,hwndNotebook))
#ifndef SOMGD_wpAddPowerViewPage
    #if (defined(_wpAddPowerViewPage) || defined(__wpAddPowerViewPage))
        #undef _wpAddPowerViewPage
        #undef __wpAddPowerViewPage
        #define SOMGD_wpAddPowerViewPage 1
    #else
        #define _wpAddPowerViewPage WPPower_wpAddPowerViewPage
    #endif /* _wpAddPowerViewPage */
#endif /* SOMGD_wpAddPowerViewPage */

/*
 * New Method: wpQueryAutoRefresh
 */
typedef BOOL   SOMLINK somTP_WPPower_wpQueryAutoRefresh(WPPower *somSelf);
typedef somTP_WPPower_wpQueryAutoRefresh *somTD_WPPower_wpQueryAutoRefresh;
#define somMD_WPPower_wpQueryAutoRefresh "::WPPower::wpQueryAutoRefresh"
#define WPPower_wpQueryAutoRefresh(somSelf) \
    (SOM_Resolve(somSelf, WPPower, wpQueryAutoRefresh) \
	(somSelf))
#ifndef SOMGD_wpQueryAutoRefresh
    #if (defined(_wpQueryAutoRefresh) || defined(__wpQueryAutoRefresh))
        #undef _wpQueryAutoRefresh
        #undef __wpQueryAutoRefresh
        #define SOMGD_wpQueryAutoRefresh 1
    #else
        #define _wpQueryAutoRefresh WPPower_wpQueryAutoRefresh
    #endif /* _wpQueryAutoRefresh */
#endif /* SOMGD_wpQueryAutoRefresh */

/*
 * New Method: wpQueryDefStatusView
 */
typedef ULONG   SOMLINK somTP_WPPower_wpQueryDefStatusView(WPPower *somSelf);
typedef somTP_WPPower_wpQueryDefStatusView *somTD_WPPower_wpQueryDefStatusView;
#define somMD_WPPower_wpQueryDefStatusView "::WPPower::wpQueryDefStatusView"
#define WPPower_wpQueryDefStatusView(somSelf) \
    (SOM_Resolve(somSelf, WPPower, wpQueryDefStatusView) \
	(somSelf))
#ifndef SOMGD_wpQueryDefStatusView
    #if (defined(_wpQueryDefStatusView) || defined(__wpQueryDefStatusView))
        #undef _wpQueryDefStatusView
        #undef __wpQueryDefStatusView
        #define SOMGD_wpQueryDefStatusView 1
    #else
        #define _wpQueryDefStatusView WPPower_wpQueryDefStatusView
    #endif /* _wpQueryDefStatusView */
#endif /* SOMGD_wpQueryDefStatusView */

/*
 * New Method: wpQueryPowerConfirmation
 */
typedef BOOL   SOMLINK somTP_WPPower_wpQueryPowerConfirmation(WPPower *somSelf);
typedef somTP_WPPower_wpQueryPowerConfirmation *somTD_WPPower_wpQueryPowerConfirmation;
#define somMD_WPPower_wpQueryPowerConfirmation "::WPPower::wpQueryPowerConfirmation"
#define WPPower_wpQueryPowerConfirmation(somSelf) \
    (SOM_Resolve(somSelf, WPPower, wpQueryPowerConfirmation) \
	(somSelf))
#ifndef SOMGD_wpQueryPowerConfirmation
    #if (defined(_wpQueryPowerConfirmation) || defined(__wpQueryPowerConfirmation))
        #undef _wpQueryPowerConfirmation
        #undef __wpQueryPowerConfirmation
        #define SOMGD_wpQueryPowerConfirmation 1
    #else
        #define _wpQueryPowerConfirmation WPPower_wpQueryPowerConfirmation
    #endif /* _wpQueryPowerConfirmation */
#endif /* SOMGD_wpQueryPowerConfirmation */

/*
 * New Method: wpQueryPowerManagement
 */
typedef BOOL   SOMLINK somTP_WPPower_wpQueryPowerManagement(WPPower *somSelf);
typedef somTP_WPPower_wpQueryPowerManagement *somTD_WPPower_wpQueryPowerManagement;
#define somMD_WPPower_wpQueryPowerManagement "::WPPower::wpQueryPowerManagement"
#define WPPower_wpQueryPowerManagement(somSelf) \
    (SOM_Resolve(somSelf, WPPower, wpQueryPowerManagement) \
	(somSelf))
#ifndef SOMGD_wpQueryPowerManagement
    #if (defined(_wpQueryPowerManagement) || defined(__wpQueryPowerManagement))
        #undef _wpQueryPowerManagement
        #undef __wpQueryPowerManagement
        #define SOMGD_wpQueryPowerManagement 1
    #else
        #define _wpQueryPowerManagement WPPower_wpQueryPowerManagement
    #endif /* _wpQueryPowerManagement */
#endif /* SOMGD_wpQueryPowerManagement */

/*
 * New Method: wpQueryRefreshRate
 */
typedef ULONG   SOMLINK somTP_WPPower_wpQueryRefreshRate(WPPower *somSelf);
typedef somTP_WPPower_wpQueryRefreshRate *somTD_WPPower_wpQueryRefreshRate;
#define somMD_WPPower_wpQueryRefreshRate "::WPPower::wpQueryRefreshRate"
#define WPPower_wpQueryRefreshRate(somSelf) \
    (SOM_Resolve(somSelf, WPPower, wpQueryRefreshRate) \
	(somSelf))
#ifndef SOMGD_wpQueryRefreshRate
    #if (defined(_wpQueryRefreshRate) || defined(__wpQueryRefreshRate))
        #undef _wpQueryRefreshRate
        #undef __wpQueryRefreshRate
        #define SOMGD_wpQueryRefreshRate 1
    #else
        #define _wpQueryRefreshRate WPPower_wpQueryRefreshRate
    #endif /* _wpQueryRefreshRate */
#endif /* SOMGD_wpQueryRefreshRate */

/*
 * New Method: wpSetAutoRefresh
 */
typedef void   SOMLINK somTP_WPPower_wpSetAutoRefresh(WPPower *somSelf, 
		BOOL fAutoRefresh);
typedef somTP_WPPower_wpSetAutoRefresh *somTD_WPPower_wpSetAutoRefresh;
#define somMD_WPPower_wpSetAutoRefresh "::WPPower::wpSetAutoRefresh"
#define WPPower_wpSetAutoRefresh(somSelf,fAutoRefresh) \
    (SOM_Resolve(somSelf, WPPower, wpSetAutoRefresh) \
	(somSelf,fAutoRefresh))
#ifndef SOMGD_wpSetAutoRefresh
    #if (defined(_wpSetAutoRefresh) || defined(__wpSetAutoRefresh))
        #undef _wpSetAutoRefresh
        #undef __wpSetAutoRefresh
        #define SOMGD_wpSetAutoRefresh 1
    #else
        #define _wpSetAutoRefresh WPPower_wpSetAutoRefresh
    #endif /* _wpSetAutoRefresh */
#endif /* SOMGD_wpSetAutoRefresh */

/*
 * New Method: wpSetDefStatusView
 */
typedef void   SOMLINK somTP_WPPower_wpSetDefStatusView(WPPower *somSelf, 
		ULONG ulDefStatus);
typedef somTP_WPPower_wpSetDefStatusView *somTD_WPPower_wpSetDefStatusView;
#define somMD_WPPower_wpSetDefStatusView "::WPPower::wpSetDefStatusView"
#define WPPower_wpSetDefStatusView(somSelf,ulDefStatus) \
    (SOM_Resolve(somSelf, WPPower, wpSetDefStatusView) \
	(somSelf,ulDefStatus))
#ifndef SOMGD_wpSetDefStatusView
    #if (defined(_wpSetDefStatusView) || defined(__wpSetDefStatusView))
        #undef _wpSetDefStatusView
        #undef __wpSetDefStatusView
        #define SOMGD_wpSetDefStatusView 1
    #else
        #define _wpSetDefStatusView WPPower_wpSetDefStatusView
    #endif /* _wpSetDefStatusView */
#endif /* SOMGD_wpSetDefStatusView */

/*
 * New Method: wpSetPowerConfirmation
 */
typedef void   SOMLINK somTP_WPPower_wpSetPowerConfirmation(WPPower *somSelf, 
		BOOL fConfirm);
typedef somTP_WPPower_wpSetPowerConfirmation *somTD_WPPower_wpSetPowerConfirmation;
#define somMD_WPPower_wpSetPowerConfirmation "::WPPower::wpSetPowerConfirmation"
#define WPPower_wpSetPowerConfirmation(somSelf,fConfirm) \
    (SOM_Resolve(somSelf, WPPower, wpSetPowerConfirmation) \
	(somSelf,fConfirm))
#ifndef SOMGD_wpSetPowerConfirmation
    #if (defined(_wpSetPowerConfirmation) || defined(__wpSetPowerConfirmation))
        #undef _wpSetPowerConfirmation
        #undef __wpSetPowerConfirmation
        #define SOMGD_wpSetPowerConfirmation 1
    #else
        #define _wpSetPowerConfirmation WPPower_wpSetPowerConfirmation
    #endif /* _wpSetPowerConfirmation */
#endif /* SOMGD_wpSetPowerConfirmation */

/*
 * New Method: wpSetPowerManagement
 */
typedef BOOL   SOMLINK somTP_WPPower_wpSetPowerManagement(WPPower *somSelf, 
		BOOL fPower);
typedef somTP_WPPower_wpSetPowerManagement *somTD_WPPower_wpSetPowerManagement;
#define somMD_WPPower_wpSetPowerManagement "::WPPower::wpSetPowerManagement"
#define WPPower_wpSetPowerManagement(somSelf,fPower) \
    (SOM_Resolve(somSelf, WPPower, wpSetPowerManagement) \
	(somSelf,fPower))
#ifndef SOMGD_wpSetPowerManagement
    #if (defined(_wpSetPowerManagement) || defined(__wpSetPowerManagement))
        #undef _wpSetPowerManagement
        #undef __wpSetPowerManagement
        #define SOMGD_wpSetPowerManagement 1
    #else
        #define _wpSetPowerManagement WPPower_wpSetPowerManagement
    #endif /* _wpSetPowerManagement */
#endif /* SOMGD_wpSetPowerManagement */

/*
 * New Method: wpSetRefreshRate
 */
typedef BOOL   SOMLINK somTP_WPPower_wpSetRefreshRate(WPPower *somSelf, 
		ULONG ulRefreshRate);
typedef somTP_WPPower_wpSetRefreshRate *somTD_WPPower_wpSetRefreshRate;
#define somMD_WPPower_wpSetRefreshRate "::WPPower::wpSetRefreshRate"
#define WPPower_wpSetRefreshRate(somSelf,ulRefreshRate) \
    (SOM_Resolve(somSelf, WPPower, wpSetRefreshRate) \
	(somSelf,ulRefreshRate))
#ifndef SOMGD_wpSetRefreshRate
    #if (defined(_wpSetRefreshRate) || defined(__wpSetRefreshRate))
        #undef _wpSetRefreshRate
        #undef __wpSetRefreshRate
        #define SOMGD_wpSetRefreshRate 1
    #else
        #define _wpSetRefreshRate WPPower_wpSetRefreshRate
    #endif /* _wpSetRefreshRate */
#endif /* SOMGD_wpSetRefreshRate */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define WPPower_wpAddObjectGeneralPage WPObject_wpAddObjectGeneralPage
#define WPPower_wpAddObjectGeneralPage2 WPObject_wpAddObjectGeneralPage2
#define WPPower_wpAddToObjUseList WPObject_wpAddToObjUseList
#define WPPower_wpAllocMem WPObject_wpAllocMem
#define WPPower_wpAppendObject WPObject_wpAppendObject
#define WPPower_wpAssertObjectMutexSem WPObject_wpAssertObjectMutexSem
#define WPPower_wpClose WPObject_wpClose
#define WPPower_wpCnrInsertObject WPObject_wpCnrInsertObject
#define WPPower_wpCnrRemoveObject WPObject_wpCnrRemoveObject
#define WPPower_wpCnrSetEmphasis WPObject_wpCnrSetEmphasis
#define WPPower_wpConfirmDelete WPObject_wpConfirmDelete
#define WPPower_wpConfirmObjectTitle WPObject_wpConfirmObjectTitle
#define WPPower_wpCopiedFromTemplate WPObject_wpCopiedFromTemplate
#define WPPower_wpCopyObject WPObject_wpCopyObject
#define WPPower_wpCreateAnother WPObject_wpCreateAnother
#define WPPower_wpCreateFromTemplate WPObject_wpCreateFromTemplate
#define WPPower_wpCreateShadowObject WPObject_wpCreateShadowObject
#define WPPower_wpDelete WPObject_wpDelete
#define WPPower_wpDeleteFromObjUseList WPObject_wpDeleteFromObjUseList
#define WPPower_wpDisplayHelp WPObject_wpDisplayHelp
#define WPPower_wpDisplayMenu WPObject_wpDisplayMenu
#define WPPower_wpDoesObjectMatch WPObject_wpDoesObjectMatch
#define WPPower_wpDraggedOverObject WPObject_wpDraggedOverObject
#define WPPower_wpDragOver WPObject_wpDragOver
#define WPPower_wpDrop WPObject_wpDrop
#define WPPower_wpDroppedOnObject WPObject_wpDroppedOnObject
#define WPPower_wpEndConversation WPObject_wpEndConversation
#define WPPower_wpFindUseItem WPObject_wpFindUseItem
#define WPPower_wpFormatDragItem WPObject_wpFormatDragItem
#define WPPower_wpFree WPObject_wpFree
#define WPPower_wpFreeMem WPObject_wpFreeMem
#define WPPower_wpHide WPObject_wpHide
#define WPPower_wpInsertPopupMenuItems WPObject_wpInsertPopupMenuItems
#define WPPower_wpInsertSettingsPage WPObject_wpInsertSettingsPage
#define WPPower_wpMoveObject WPObject_wpMoveObject
#define WPPower_wpPrintObject WPObject_wpPrintObject
#define WPPower_wpQueryConcurrentView WPObject_wpQueryConcurrentView
#define WPPower_wpQueryButtonAppearance WPObject_wpQueryButtonAppearance
#define WPPower_wpQueryConfirmations WPObject_wpQueryConfirmations
#define WPPower_wpQueryDefaultHelp WPObject_wpQueryDefaultHelp
#define WPPower_wpQueryDefaultView WPObject_wpQueryDefaultView
#define WPPower_wpQueryDetailsData WPObject_wpQueryDetailsData
#define WPPower_wpQueryError WPObject_wpQueryError
#define WPPower_wpSetFolder WPObject_wpSetFolder
#define WPPower_wpQueryFolder WPObject_wpQueryFolder
#define WPPower_wpQueryIcon WPObject_wpQueryIcon
#define WPPower_wpQueryIconData WPObject_wpQueryIconData
#define WPPower_wpQueryMinWindow WPObject_wpQueryMinWindow
#define WPPower_wpQueryNameClashOptions WPObject_wpQueryNameClashOptions
#define WPPower_wpQueryStyle WPObject_wpQueryStyle
#define WPPower_wpSetTaskRec WPObject_wpSetTaskRec
#define WPPower_wpFindTaskRec WPObject_wpFindTaskRec
#define WPPower_wpQueryTitle WPObject_wpQueryTitle
#define WPPower_wpRegisterView WPObject_wpRegisterView
#define WPPower_wpReleaseObjectMutexSem WPObject_wpReleaseObjectMutexSem
#define WPPower_wpRender WPObject_wpRender
#define WPPower_wpRenderComplete WPObject_wpRenderComplete
#define WPPower_wpReplaceObject WPObject_wpReplaceObject
#define WPPower_wpRequestObjectMutexSem WPObject_wpRequestObjectMutexSem
#define WPPower_wpRestore WPObject_wpRestore
#define WPPower_wpRestoreData WPObject_wpRestoreData
#define WPPower_wpRestoreLong WPObject_wpRestoreLong
#define WPPower_wpRestoreString WPObject_wpRestoreString
#define WPPower_wpSaveData WPObject_wpSaveData
#define WPPower_wpSaveImmediate WPObject_wpSaveImmediate
#define WPPower_wpSaveDeferred WPObject_wpSaveDeferred
#define WPPower_wpSaveLong WPObject_wpSaveLong
#define WPPower_wpSaveString WPObject_wpSaveString
#define WPPower_wpScanSetupString WPObject_wpScanSetupString
#define WPPower_wpSetConcurrentView WPObject_wpSetConcurrentView
#define WPPower_wpSetButtonAppearance WPObject_wpSetButtonAppearance
#define WPPower_wpSetDefaultHelp WPObject_wpSetDefaultHelp
#define WPPower_wpSetDefaultView WPObject_wpSetDefaultView
#define WPPower_wpSetError WPObject_wpSetError
#define WPPower_wpSetIconHandle WPObject_wpSetIconHandle
#define WPPower_wpQueryScreenGroupID WPObject_wpQueryScreenGroupID
#define WPPower_wpSetupOnce WPObject_wpSetupOnce
#define WPPower_wpSetIcon WPObject_wpSetIcon
#define WPPower_wpSetIconData WPObject_wpSetIconData
#define WPPower_wpSetMinWindow WPObject_wpSetMinWindow
#define WPPower_wpSetStyle WPObject_wpSetStyle
#define WPPower_wpModifyStyle WPObject_wpModifyStyle
#define WPPower_wpSetTitle WPObject_wpSetTitle
#define WPPower_wpSetup WPObject_wpSetup
#define WPPower_wpSwitchTo WPObject_wpSwitchTo
#define WPPower_wpUnInitData WPObject_wpUnInitData
#define WPPower_wpViewObject WPObject_wpViewObject
#define WPPower_wpQueryTrueStyle WPObject_wpQueryTrueStyle
#define WPPower_wpQueryHandle WPObject_wpQueryHandle
#define WPPower_wpUnlockObject WPObject_wpUnlockObject
#define WPPower_wpObjectReady WPObject_wpObjectReady
#define WPPower_wpIsObjectInitialized WPObject_wpIsObjectInitialized
#define WPPower_wpCreateShadowObjectExt WPObject_wpCreateShadowObjectExt
#define WPPower_wpCnrDeleteUseItem WPObject_wpCnrDeleteUseItem
#define WPPower_wpIsDeleteable WPObject_wpIsDeleteable
#define WPPower_wpQueryCoreRecord WPObject_wpQueryCoreRecord
#define WPPower_wpSetObjectID WPObject_wpSetObjectID
#define WPPower_wpQueryObjectID WPObject_wpQueryObjectID
#define WPPower_wpSetDefaultIconPos WPObject_wpSetDefaultIconPos
#define WPPower_wpQueryDefaultIconPos WPObject_wpQueryDefaultIconPos
#define WPPower_wpCnrRefreshDetails WPObject_wpCnrRefreshDetails
#define WPPower_wpFindViewItem WPObject_wpFindViewItem
#define WPPower_wpLockObject WPObject_wpLockObject
#define WPPower_wpIsLocked WPObject_wpIsLocked
#define WPPower_wpQueryContainerFlagPtr WPObject_wpQueryContainerFlagPtr
#define WPPower_wpWaitForClose WPObject_wpWaitForClose
#define WPPower_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define WPPower_somDefaultAssign SOMObject_somDefaultAssign
#define WPPower_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define WPPower_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define WPPower_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define WPPower_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define WPPower_somDefaultVAssign SOMObject_somDefaultVAssign
#define WPPower_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define WPPower_somInit SOMObject_somInit
#define WPPower_somFree SOMObject_somFree
#define WPPower_somUninit SOMObject_somUninit
#define WPPower_somGetClass SOMObject_somGetClass
#define WPPower_somGetClassName SOMObject_somGetClassName
#define WPPower_somGetSize SOMObject_somGetSize
#define WPPower_somIsA SOMObject_somIsA
#define WPPower_somIsInstanceOf SOMObject_somIsInstanceOf
#define WPPower_somRespondsTo SOMObject_somRespondsTo
#define WPPower_somDispatch SOMObject_somDispatch
#define WPPower_somClassDispatch SOMObject_somClassDispatch
#define WPPower_somCastObj SOMObject_somCastObj
#define WPPower_somResetObj SOMObject_somResetObj
#define WPPower_somPrintSelf SOMObject_somPrintSelf
#define WPPower_somDumpSelf SOMObject_somDumpSelf
#define WPPower_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_WPPower_h */

#ifndef SOM_M_WPPower_h
#define SOM_M_WPPower_h


#include <som.h>

/*
 * -- This emitter treats Method Tokens as Thunks by default.
 * -- Use the sc modifier "nothunks" to change this default
 */
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))

/*
 * Define the class name as an object type
 */
#ifndef M_WPPower
#define M_WPPower SOMObject
#endif
#include <wpabs.h>

/*
 * Start of bindings for IDL types
 */


/*
 * End of bindings for IDL types.
 */

#define M_WPPower_MajorVersion 1
#define M_WPPower_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define M_WPPowerNewClass WPPowerc
#define M_WPPowerClassData WPPowerd
#define M_WPPowerCClassData WPPowerx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define M_WPPower_classObj M_WPPowerClassData.classObject
#define _M_WPPower M_WPPower_classObj

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMClass * SOMLINK M_WPPowerNewClass(integer4 somtmajorVersion,
		integer4 somtminorVersion);

/*
 * Declare the class data structure
 */
SOMEXTERN struct M_WPPowerClassDataStructure {
	SOMClass *classObject;
} SOMDLINK M_WPPowerClassData;

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct M_WPPowerCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOMDLINK M_WPPowerCClassData;

/*
 * New and Renew macros for M_WPPower
 */
#define M_WPPowerNew() \
   (_somNew(_M_WPPower ? _M_WPPower : M_WPPowerNewClass(M_WPPower_MajorVersion, M_WPPower_MinorVersion)))
#define M_WPPowerRenew(buf) \
   (_somRenew(_M_WPPower ? _M_WPPower : M_WPPowerNewClass(M_WPPower_MajorVersion, M_WPPower_MinorVersion), buf))

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

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

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

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

/*
 * Override method: wpclsQueryTitle
 */
#define M_WPPower_wpclsQueryTitle(somSelf) \
	M_WPObject_wpclsQueryTitle(somSelf)
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define M_WPPower_wpclsQuerySetting M_WPAbstract_wpclsQuerySetting
#define M_WPPower_wpclsSetSetting M_WPAbstract_wpclsSetSetting
#define M_WPPower_wpclsCreateDefaultTemplates M_WPObject_wpclsCreateDefaultTemplates
#define M_WPPower_wpclsInitData M_WPObject_wpclsInitData
#define M_WPPower_wpclsMakeAwake M_WPObject_wpclsMakeAwake
#define M_WPPower_wpclsNew M_WPObject_wpclsNew
#define M_WPPower_wpclsQueryDetails M_WPObject_wpclsQueryDetails
#define M_WPPower_wpclsQueryDetailsInfo M_WPObject_wpclsQueryDetailsInfo
#define M_WPPower_wpclsQueryExtendedCriteria M_WPObject_wpclsQueryExtendedCriteria
#define M_WPPower_wpclsQueryFolder M_WPObject_wpclsQueryFolder
#define M_WPPower_wpclsQueryIcon M_WPObject_wpclsQueryIcon
#define M_WPPower_wpclsQuerySearchInfo M_WPObject_wpclsQuerySearchInfo
#define M_WPPower_wpclsUnInitData M_WPObject_wpclsUnInitData
#define M_WPPower_wpclsFindObjectFirst M_WPObject_wpclsFindObjectFirst
#define M_WPPower_wpclsFindObjectNext M_WPObject_wpclsFindObjectNext
#define M_WPPower_wpclsFindObjectEnd M_WPObject_wpclsFindObjectEnd
#define M_WPPower_wpclsSetError M_WPObject_wpclsSetError
#define M_WPPower_wpclsQueryError M_WPObject_wpclsQueryError
#define M_WPPower_wpclsQuerySettingsPageSize M_WPObject_wpclsQuerySettingsPageSize
#define M_WPPower_wpclsQueryObject M_WPObject_wpclsQueryObject
#define M_WPPower_wpclsQueryButtonAppearance M_WPObject_wpclsQueryButtonAppearance
#define M_WPPower_wpclsDecUsage M_WPObject_wpclsDecUsage
#define M_WPPower_wpclsIncUsage M_WPObject_wpclsIncUsage
#define M_WPPower_wpclsInsertMultipleObjects M_WPObject_wpclsInsertMultipleObjects
#define M_WPPower_wpclsFindOneObject M_WPObject_wpclsFindOneObject
#define M_WPPower_wpclsSetSettingsPageSize M_WPObject_wpclsSetSettingsPageSize
#define M_WPPower_wpclsSetIconData M_WPObject_wpclsSetIconData
#define M_WPPower_wpclsSetIcon M_WPObject_wpclsSetIcon
#define M_WPPower_wpclsObjectFromHandle M_WPObject_wpclsObjectFromHandle
#define M_WPPower_wpclsRemoveObjects M_WPObject_wpclsRemoveObjects
#define M_WPPower__get_somDataAlignment SOMClass__get_somDataAlignment
#define M_WPPower__get_somInstanceDataOffsets SOMClass__get_somInstanceDataOffsets
#define M_WPPower__get_somDirectInitClasses SOMClass__get_somDirectInitClasses
#define M_WPPower__set_somDirectInitClasses SOMClass__set_somDirectInitClasses
#define M_WPPower_somNew SOMClass_somNew
#define M_WPPower_somNewNoInit SOMClass_somNewNoInit
#define M_WPPower_somRenew SOMClass_somRenew
#define M_WPPower_somRenewNoInit SOMClass_somRenewNoInit
#define M_WPPower_somRenewNoZero SOMClass_somRenewNoZero
#define M_WPPower_somRenewNoInitNoZero SOMClass_somRenewNoInitNoZero
#define M_WPPower_somAllocate SOMClass_somAllocate
#define M_WPPower_somDeallocate SOMClass_somDeallocate
#define M_WPPower_somGetInstanceInitMask SOMClass_somGetInstanceInitMask
#define M_WPPower_somGetInstanceDestructionMask SOMClass_somGetInstanceDestructionMask
#define M_WPPower_somGetInstanceAssignmentMask SOMClass_somGetInstanceAssignmentMask
#define M_WPPower_somInitClass SOMClass_somInitClass
#define M_WPPower_somInitMIClass SOMClass_somInitMIClass
#define M_WPPower_somAddStaticMethod SOMClass_somAddStaticMethod
#define M_WPPower_somAddDynamicMethod SOMClass_somAddDynamicMethod
#define M_WPPower_somOverrideSMethod SOMClass_somOverrideSMethod
#define M_WPPower_somClassReady SOMClass_somClassReady
#define M_WPPower_somGetApplyStub SOMClass_somGetApplyStub
#define M_WPPower_somGetClassData SOMClass_somGetClassData
#define M_WPPower_somSetClassData SOMClass_somSetClassData
#define M_WPPower_somGetClassMtab SOMClass_somGetClassMtab
#define M_WPPower_somGetInstanceOffset SOMClass_somGetInstanceOffset
#define M_WPPower_somGetInstancePartSize SOMClass_somGetInstancePartSize
#define M_WPPower_somGetInstanceSize SOMClass_somGetInstanceSize
#define M_WPPower_somGetInstanceToken SOMClass_somGetInstanceToken
#define M_WPPower_somGetMemberToken SOMClass_somGetMemberToken
#define M_WPPower_somGetMethodData SOMClass_somGetMethodData
#define M_WPPower_somGetRdStub SOMClass_somGetRdStub
#define M_WPPower_somGetMethodDescriptor SOMClass_somGetMethodDescriptor
#define M_WPPower_somGetMethodIndex SOMClass_somGetMethodIndex
#define M_WPPower_somGetMethodToken SOMClass_somGetMethodToken
#define M_WPPower_somGetName SOMClass_somGetName
#define M_WPPower_somGetNthMethodData SOMClass_somGetNthMethodData
#define M_WPPower_somGetNthMethodInfo SOMClass_somGetNthMethodInfo
#define M_WPPower_somGetNumMethods SOMClass_somGetNumMethods
#define M_WPPower_somGetNumStaticMethods SOMClass_somGetNumStaticMethods
#define M_WPPower_somGetParent SOMClass_somGetParent
#define M_WPPower_somGetParents SOMClass_somGetParents
#define M_WPPower_somGetPClsMtab SOMClass_somGetPClsMtab
#define M_WPPower_somGetPClsMtabs SOMClass_somGetPClsMtabs
#define M_WPPower_somGetVersionNumbers SOMClass_somGetVersionNumbers
#define M_WPPower_somSetMethodDescriptor SOMClass_somSetMethodDescriptor
#define M_WPPower_somFindMethod SOMClass_somFindMethod
#define M_WPPower_somFindMethodOk SOMClass_somFindMethodOk
#define M_WPPower_somFindSMethod SOMClass_somFindSMethod
#define M_WPPower_somFindSMethodOk SOMClass_somFindSMethodOk
#define M_WPPower_somLookupMethod SOMClass_somLookupMethod
#define M_WPPower_somCheckVersion SOMClass_somCheckVersion
#define M_WPPower_somDescendedFrom SOMClass_somDescendedFrom
#define M_WPPower_somSupportsMethod SOMClass_somSupportsMethod
#define M_WPPower_somDefinedMethod SOMClass_somDefinedMethod
#define M_WPPower_somOverrideMtab SOMClass_somOverrideMtab
#define M_WPPower_somDefaultInit SOMObject_somDefaultInit
#define M_WPPower_somDestruct SOMObject_somDestruct
#define M_WPPower_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define M_WPPower_somDefaultAssign SOMObject_somDefaultAssign
#define M_WPPower_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define M_WPPower_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define M_WPPower_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define M_WPPower_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define M_WPPower_somDefaultVAssign SOMObject_somDefaultVAssign
#define M_WPPower_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define M_WPPower_somInit SOMObject_somInit
#define M_WPPower_somFree SOMObject_somFree
#define M_WPPower_somUninit SOMObject_somUninit
#define M_WPPower_somGetClass SOMObject_somGetClass
#define M_WPPower_somGetClassName SOMObject_somGetClassName
#define M_WPPower_somGetSize SOMObject_somGetSize
#define M_WPPower_somIsA SOMObject_somIsA
#define M_WPPower_somIsInstanceOf SOMObject_somIsInstanceOf
#define M_WPPower_somRespondsTo SOMObject_somRespondsTo
#define M_WPPower_somDispatch SOMObject_somDispatch
#define M_WPPower_somClassDispatch SOMObject_somClassDispatch
#define M_WPPower_somCastObj SOMObject_somCastObj
#define M_WPPower_somResetObj SOMObject_somResetObj
#define M_WPPower_somPrintSelf SOMObject_somPrintSelf
#define M_WPPower_somDumpSelf SOMObject_somDumpSelf
#define M_WPPower_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_M_WPPower_h */
