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

/*
 * 
 *  SCC: @(#) 01 3/11/93 10:48:59 1.4 @(#)
 *  Module Header
 * 
 *  Module Name: PENSOUND
 * 
 *  OS/2 Presentation Manager Workplace class definitions
 * 
 *  Copyright (c) International Business Machines Corporation 1991, 1992
 * 
 */


#ifndef pensound_h
#define pensound_h


#include <som.h>

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

#define PenSound_MajorVersion 1
#define PenSound_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define PenSoundNewClass Psndc
#pragma linkage(Psndc, system)
#define PenSoundClassData Psndd
#define PenSoundCClassData Psndx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define PenSound_classObj PenSoundClassData.classObject
#define _PenSound PenSound_classObj

/*
 * New and Renew macros for PenSound
 */
#define _PenSoundNew() (_somNew(PenSoundClassData.classObject))
#define PenSoundNew() \
	( PenSoundClassData.classObject \
		? _PenSoundNew() \
		: ( PenSoundNewClass(PenSound_MajorVersion, PenSound_MinorVersion), _PenSoundNew() ) )
#define PenSoundRenew(buf) \
	( _somRenew(PenSoundClassData.classObject, buf) )

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

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

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

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

/*
 * New Method: penAddPenPauseBeepPage
 */
typedef ULONG    SOMLINK somTP_PenSound_penAddPenPauseBeepPage(PenSound *somSelf,
		HWND hwndNotebook);
#pragma linkage(somTP_PenSound_penAddPenPauseBeepPage, system)
typedef somTP_PenSound_penAddPenPauseBeepPage *somTD_PenSound_penAddPenPauseBeepPage;
#define somMD_PenSound_penAddPenPauseBeepPage "----"
#define PenSound_penAddPenPauseBeepPage(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, PenSound, penAddPenPauseBeepPage) \
	(somSelf,hwndNotebook))
#define _penAddPenPauseBeepPage PenSound_penAddPenPauseBeepPage

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct PenSoundClassDataStructure {
	SOMAny *classObject;
	somMToken penAddPenPauseBeepPage;
	somMToken penGetPauseFreqSliderPos;
	somMToken penSetPauseFreqSliderPos;
} PenSoundClassData;

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

#endif       /* pensound_h */

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

#ifndef pensound_mh
#define pensound_mh


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

#define M_PenSound_MajorVersion 1
#define M_PenSound_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define M_PenSoundNewClass Psndc
#pragma linkage(Psndc, system)
#define M_PenSoundClassData Psndd
#define M_PenSoundCClassData Psndx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define M_PenSound_classObj M_PenSoundClassData.classObject
#define _M_PenSound M_PenSound_classObj

/*
 * New and Renew macros for M_PenSound
 */
#define _M_PenSoundNew() (_somNew(M_PenSoundClassData.classObject))
#define M_PenSoundNew() \
	( M_PenSoundClassData.classObject \
		? _M_PenSoundNew() \
		: ( M_PenSoundNewClass(M_PenSound_MajorVersion, M_PenSound_MinorVersion), _M_PenSoundNew() ) )
#define M_PenSoundRenew(buf) \
	( _somRenew(M_PenSoundClassData.classObject, buf) )

/*
 * New Method: penclsPenSoundDummyMethod
 */
typedef VOID    SOMLINK somTP_M_PenSound_penclsPenSoundDummyMethod(M_PenSound *somSelf);
#pragma linkage(somTP_M_PenSound_penclsPenSoundDummyMethod, system)
typedef somTP_M_PenSound_penclsPenSoundDummyMethod *somTD_M_PenSound_penclsPenSoundDummyMethod;
#define somMD_M_PenSound_penclsPenSoundDummyMethod "----"
#define M_PenSound_penclsPenSoundDummyMethod(somSelf) \
    (SOM_Resolve(somSelf, M_PenSound, penclsPenSoundDummyMethod) \
	(somSelf))
#define _penclsPenSoundDummyMethod M_PenSound_penclsPenSoundDummyMethod

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct M_PenSoundClassDataStructure {
	SOMAny *classObject;
	somMToken penclsPenSoundDummyMethod;
} M_PenSoundClassData;

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

#endif       /* pensound_h */
