home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / WPPGMF.XH < prev    next >
Text File  |  1997-07-09  |  22KB  |  685 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: E:\cwpsh\rel\os2c\include\base\os2\wppgmf.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.29.1.14
  7.  *     SOM Emitter emitxh: 2.43
  8.  */
  9.  
  10. /*
  11.  *   Module Header
  12.  * 
  13.  *   Module Name: WPPGMF
  14.  * 
  15.  *   OS/2 Presentation Manager Workplace class definitions
  16.  * 
  17.  *   Copyright (c) International Business Machines Corporation 1991, 1992
  18.  * 
  19.  */
  20.  
  21.  
  22. #ifndef SOM_WPProgramFile_xh
  23. #define SOM_WPProgramFile_xh
  24.  
  25. class WPProgramFile;
  26.  
  27. #define WPProgramFile_MajorVersion 1
  28. #define WPProgramFile_MinorVersion 2
  29.  
  30. /* C++ SOM defs */
  31. #include <somcls.xh>
  32. #include <somcm.xh>
  33.  
  34. /* C++ parent defs */
  35. #ifndef SOM_WPDataFile_xh
  36. #include <wpdataf.xh>
  37. #endif
  38.  
  39. #ifndef WPProgramFile_API
  40. #define WPProgramFile_API
  41. /*
  42.  * -- The Class API
  43.  */
  44.  
  45. /*
  46.  * Start of bindings for IDL types
  47.  */
  48.  
  49. class SOMClass;
  50. class SOMObject;
  51. class WPFolder;
  52. class M_WPObject;
  53. class WPObject;
  54. class WPImageFile;
  55. class M_WPFileSystem;
  56. class M_WPDataFile;
  57. class M_WPProgramFile;
  58.  
  59. /*
  60.  * End of bindings for IDL types.
  61.  */
  62.  
  63. /* A procedure to create the WPProgramFile Class */
  64. class M_WPProgramFile;
  65. SOMEXTERN M_WPProgramFile * SOMLINK WPProgramFileNewClass(
  66.         integer4 majorVersion,
  67.         integer4 minorVersion);
  68.  
  69. /* The API to the WPProgramFile class object, and the methods it introduces. */
  70. SOMEXTERN struct WPProgramFileClassDataStructure {
  71.     M_WPProgramFile *classObject;
  72.     somMToken wpAddProgramAssociationPage;
  73.     somMToken wpAddProgramPage;
  74.     somMToken wpAddProgramSessionPage;
  75.     somMToken wpSetProgDetails;
  76.     somMToken wpQueryProgDetails;
  77.     somMToken wpSetProgIcon;
  78.     somMToken wpQueryAssociationFilter;
  79.     somMToken wpQueryAssociationType;
  80.     somMToken wpSetAssociationFilter;
  81.     somMToken wpSetAssociationType;
  82.     somMToken wpQueryProgramAssociations;
  83.     somMToken wpSetProgramAssociations;
  84.     somMToken wpQueryWarnBeforeStart;
  85.     somMToken wpSetWarnBeforeStart;
  86. } SOMDLINK WPProgramFileClassData;
  87. #define _WPProgramFile WPProgramFileClassData.classObject
  88.  
  89. /* The API to parentMtabs for WPProgramFile, and the instance data it introduces. */
  90. SOMEXTERN struct WPProgramFileCClassDataStructure {
  91.     somMethodTabs parentMtab;
  92.     somDToken              instanceDataToken;
  93. } SOMDLINK WPProgramFileCClassData;
  94.  
  95. /*
  96.  * -- Typedefs for WPProgramFile Method Procedures
  97.  */
  98. SOMEXTERN {
  99. typedef ULONG   SOMLINK somTP_WPProgramFile_wpAddProgramAssociationPage(WPProgramFile *somSelf, 
  100.         HWND hwndNotebook);
  101. typedef somTP_WPProgramFile_wpAddProgramAssociationPage *somTD_WPProgramFile_wpAddProgramAssociationPage;
  102. typedef BOOL   SOMLINK somTP_WPProgramFile_wpQueryProgDetails(WPProgramFile *somSelf, 
  103.         PPROGDETAILS pProgDetails, 
  104.         PULONG pulSize);
  105. typedef somTP_WPProgramFile_wpQueryProgDetails *somTD_WPProgramFile_wpQueryProgDetails;
  106. typedef BOOL   SOMLINK somTP_WPProgramFile_wpSetProgDetails(WPProgramFile *somSelf, 
  107.         PPROGDETAILS pProgDetails);
  108. typedef somTP_WPProgramFile_wpSetProgDetails *somTD_WPProgramFile_wpSetProgDetails;
  109. typedef ULONG   SOMLINK somTP_WPProgramFile_wpAddProgramPage(WPProgramFile *somSelf, 
  110.         HWND hwndNotebook);
  111. typedef somTP_WPProgramFile_wpAddProgramPage *somTD_WPProgramFile_wpAddProgramPage;
  112. typedef ULONG   SOMLINK somTP_WPProgramFile_wpAddProgramSessionPage(WPProgramFile *somSelf, 
  113.         HWND hwndNotebook);
  114. typedef somTP_WPProgramFile_wpAddProgramSessionPage *somTD_WPProgramFile_wpAddProgramSessionPage;
  115. typedef PSZ   SOMLINK somTP_WPProgramFile_wpQueryAssociationFilter(WPProgramFile *somSelf);
  116. typedef somTP_WPProgramFile_wpQueryAssociationFilter *somTD_WPProgramFile_wpQueryAssociationFilter;
  117. typedef PSZ   SOMLINK somTP_WPProgramFile_wpQueryAssociationType(WPProgramFile *somSelf);
  118. typedef somTP_WPProgramFile_wpQueryAssociationType *somTD_WPProgramFile_wpQueryAssociationType;
  119. typedef BOOL   SOMLINK somTP_WPProgramFile_wpSetAssociationFilter(WPProgramFile *somSelf, 
  120.         PSZ pszFilter);
  121. typedef somTP_WPProgramFile_wpSetAssociationFilter *somTD_WPProgramFile_wpSetAssociationFilter;
  122. typedef BOOL   SOMLINK somTP_WPProgramFile_wpSetAssociationType(WPProgramFile *somSelf, 
  123.         PSZ pszType);
  124. typedef somTP_WPProgramFile_wpSetAssociationType *somTD_WPProgramFile_wpSetAssociationType;
  125. typedef PSZ   SOMLINK somTP_WPProgramFile_wpQueryProgramAssociations(WPProgramFile *somSelf, 
  126.         PBYTE ptr, 
  127.         PSZ pszAssoc, 
  128.         BOOL fFilter);
  129. typedef somTP_WPProgramFile_wpQueryProgramAssociations *somTD_WPProgramFile_wpQueryProgramAssociations;
  130. typedef BOOL   SOMLINK somTP_WPProgramFile_wpSetProgramAssociations(WPProgramFile *somSelf, 
  131.         PSZ pszAssoc, 
  132.         BOOL fFilter);
  133. typedef somTP_WPProgramFile_wpSetProgramAssociations *somTD_WPProgramFile_wpSetProgramAssociations;
  134. typedef BOOL   SOMLINK somTP_WPProgramFile_wpQueryWarnBeforeStart(WPProgramFile *somSelf);
  135. typedef somTP_WPProgramFile_wpQueryWarnBeforeStart *somTD_WPProgramFile_wpQueryWarnBeforeStart;
  136. typedef BOOL   SOMLINK somTP_WPProgramFile_wpSetWarnBeforeStart(WPProgramFile *somSelf, 
  137.         BOOL fWarnBeforeStart);
  138. typedef somTP_WPProgramFile_wpSetWarnBeforeStart *somTD_WPProgramFile_wpSetWarnBeforeStart;
  139. typedef BOOL   SOMLINK somTP_WPProgramFile_wpSetProgIcon(WPProgramFile *somSelf, 
  140.         PFEA2LIST pfeal);
  141. typedef somTP_WPProgramFile_wpSetProgIcon *somTD_WPProgramFile_wpSetProgIcon;
  142.  
  143. /*
  144.  * -- Typedefs for Reintroduced Wrapper Methods
  145.  */
  146. typedef M_WPProgramFile*   SOMLINK somTP_WPProgramFile_somGetClass(WPProgramFile *somSelf);
  147. typedef somTP_WPProgramFile_somGetClass *somTD_WPProgramFile_somGetClass;
  148. }
  149.  
  150. #endif /* WPProgramFile_API */
  151.  
  152.  
  153. /*
  154.  * -- This emitter treats Method Tokens as Thunks by default.
  155.  * -- Use the sc modifier "nothunks" to change this default
  156.  */
  157. #undef somresolve_
  158. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  159.  
  160. /*
  161.  * -- The C++ Wrapper Class for WPProgramFile
  162.  */
  163. class WPProgramFile : public WPDataFile
  164. {
  165. public:
  166.  
  167. // WPProgramFile::new creates the class object if necessary, and then uses somNewNoInit
  168. // to allocate memory and create the object. Initialization is in ctors.
  169. void *operator new(size_t)
  170. {
  171.    if (!_WPProgramFile) WPProgramFileNewClass(WPProgramFile_MajorVersion,WPProgramFile_MinorVersion);
  172.    return (void*)
  173.       SOM_Resolve(_WPProgramFile,SOMClass,somNewNoInit)
  174.          ((SOMClass *)((void*)_WPProgramFile));
  175. }
  176.  
  177. // WPProgramFile::delete uses somDestruct.
  178. void operator delete(void * obj)
  179. {
  180.    if (obj && *(void**)obj) {
  181.       SOM_Resolve(obj,SOMObject,somDestruct)
  182.          ((SOMObject*)obj, 1, 0);
  183.    }
  184. }
  185.  
  186. WPProgramFile& operator=(WPProgramFile& fromObj)
  187. {
  188.    this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
  189.    return *this;
  190. }
  191.  
  192. WPProgramFile()
  193. {
  194.    if (*(void**)this != 
  195.        ((somParentMtabStructPtr)
  196.         (WPProgramFileCClassData.parentMtab))->mtab)
  197.       return;
  198.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  199. }
  200.  
  201. WPProgramFile(WPProgramFile* fromObj)
  202. {
  203.    if (*(void**)this != 
  204.        ((somParentMtabStructPtr)
  205.         (WPProgramFileCClassData.parentMtab))->mtab)
  206.       return;
  207.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  208. }
  209.  
  210. WPProgramFile(const WPProgramFile* fromObj)
  211. {
  212.    if (*(void**)this != 
  213.        ((somParentMtabStructPtr)
  214.         (WPProgramFileCClassData.parentMtab))->mtab)
  215.       return;
  216.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  217. }
  218.  
  219.  
  220. /* method: wpAddProgramAssociationPage */
  221. ULONG   wpAddProgramAssociationPage(HWND hwndNotebook)
  222. {
  223.    return SOM_ResolveD(this,WPProgramFile,WPProgramFile,wpAddProgramAssociationPage)
  224.     (this,hwndNotebook);
  225. }
  226.  
  227.  
  228. /* method: wpQueryProgDetails */
  229. BOOL   wpQueryProgDetails(PPROGDETAILS pProgDetails, 
  230.         PULONG pulSize)
  231. {
  232.    return SOM_ResolveD(this,WPProgramFile,WPProgramFile,wpQueryProgDetails)
  233.     (this,pProgDetails,pulSize);
  234. }
  235.  
  236.  
  237. /* method: wpSetProgDetails */
  238. BOOL   wpSetProgDetails(PPROGDETAILS pProgDetails)
  239. {
  240.    return SOM_ResolveD(this,WPProgramFile,WPProgramFile,wpSetProgDetails)
  241.     (this,pProgDetails);
  242. }
  243.  
  244.  
  245. /* method: wpAddProgramPage */
  246. ULONG   wpAddProgramPage(HWND hwndNotebook)
  247. {
  248.    return SOM_ResolveD(this,WPProgramFile,WPProgramFile,wpAddProgramPage)
  249.     (this,hwndNotebook);
  250. }
  251.  
  252.  
  253. /* method: wpAddProgramSessionPage */
  254. ULONG   wpAddProgramSessionPage(HWND hwndNotebook)
  255. {
  256.    return SOM_ResolveD(this,WPProgramFile,WPProgramFile,wpAddProgramSessionPage)
  257.     (this,hwndNotebook);
  258. }
  259.  
  260.  
  261. /* method: wpQueryAssociationFilter */
  262. PSZ   wpQueryAssociationFilter()
  263. {
  264.    return SOM_ResolveD(this,WPProgramFile,WPProgramFile,wpQueryAssociationFilter)
  265.     (this);
  266. }
  267.  
  268.  
  269. /* method: wpQueryAssociationType */
  270. PSZ   wpQueryAssociationType()
  271. {
  272.    return SOM_ResolveD(this,WPProgramFile,WPProgramFile,wpQueryAssociationType)
  273.     (this);
  274. }
  275.  
  276.  
  277. /* method: wpSetAssociationFilter */
  278. BOOL   wpSetAssociationFilter(PSZ pszFilter)
  279. {
  280.    return SOM_ResolveD(this,WPProgramFile,WPProgramFile,wpSetAssociationFilter)
  281.     (this,pszFilter);
  282. }
  283.  
  284.  
  285. /* method: wpSetAssociationType */
  286. BOOL   wpSetAssociationType(PSZ pszType)
  287. {
  288.    return SOM_ResolveD(this,WPProgramFile,WPProgramFile,wpSetAssociationType)
  289.     (this,pszType);
  290. }
  291.  
  292.  
  293. /* method: wpQueryProgramAssociations */
  294. PSZ   wpQueryProgramAssociations(PBYTE ptr, 
  295.         PSZ pszAssoc, 
  296.         BOOL fFilter)
  297. {
  298.    return SOM_ResolveD(this,WPProgramFile,WPProgramFile,wpQueryProgramAssociations)
  299.     (this,ptr,pszAssoc,fFilter);
  300. }
  301.  
  302.  
  303. /* method: wpSetProgramAssociations */
  304. BOOL   wpSetProgramAssociations(PSZ pszAssoc, 
  305.         BOOL fFilter)
  306. {
  307.    return SOM_ResolveD(this,WPProgramFile,WPProgramFile,wpSetProgramAssociations)
  308.     (this,pszAssoc,fFilter);
  309. }
  310.  
  311.  
  312. /* method: wpQueryWarnBeforeStart */
  313. BOOL   wpQueryWarnBeforeStart()
  314. {
  315.    return SOM_ResolveD(this,WPProgramFile,WPProgramFile,wpQueryWarnBeforeStart)
  316.     (this);
  317. }
  318.  
  319.  
  320. /* method: wpSetWarnBeforeStart */
  321. BOOL   wpSetWarnBeforeStart(BOOL fWarnBeforeStart)
  322. {
  323.    return SOM_ResolveD(this,WPProgramFile,WPProgramFile,wpSetWarnBeforeStart)
  324.     (this,fWarnBeforeStart);
  325. }
  326.  
  327.  
  328. /* method: wpSetProgIcon */
  329. BOOL   wpSetProgIcon(PFEA2LIST pfeal)
  330. {
  331.    return SOM_ResolveD(this,WPProgramFile,WPProgramFile,wpSetProgIcon)
  332.     (this,pfeal);
  333. }
  334.  
  335.  
  336. /*
  337.  * Reintroduce inherited methods
  338.  */
  339.  
  340. /* method: somGetClass */
  341. M_WPProgramFile*  somGetClass()
  342. {
  343. /*
  344.  *  Return the receiver's class.
  345.  */
  346.    return SOM_ResolveD(this,WPProgramFile,SOMObject,somGetClass)
  347.     (this);
  348. }
  349.  
  350.  
  351.  
  352. };   /* WPProgramFile */
  353.  
  354.  
  355.  
  356. /*
  357.  * Type Independent (name lookup) Method Invocation Support
  358.  */
  359.  
  360. #ifndef somLUM_wpAddProgramAssociationPage
  361. #define somLUM_wpAddProgramAssociationPage
  362. static char *somLMN_wpAddProgramAssociationPage = "wpAddProgramAssociationPage";
  363. static somId somLId_wpAddProgramAssociationPage = &somLMN_wpAddProgramAssociationPage;
  364. #define WPProgramFile_lookup_wpAddProgramAssociationPage(somSelf,hwndNotebook) \
  365.     ((( somTD_WPProgramFile_wpAddProgramAssociationPage ) \
  366.     SOM_GetClass(somSelf)->somLookupMethod(somLId_wpAddProgramAssociationPage)) \
  367.         ((WPProgramFile*)somSelf,hwndNotebook))
  368. #define lookup_wpAddProgramAssociationPage WPProgramFile_lookup_wpAddProgramAssociationPage
  369. #endif
  370.  
  371.  
  372. #ifndef somLUM_wpQueryProgDetails
  373. #define somLUM_wpQueryProgDetails
  374. static char *somLMN_wpQueryProgDetails = "wpQueryProgDetails";
  375. static somId somLId_wpQueryProgDetails = &somLMN_wpQueryProgDetails;
  376. #define WPProgramFile_lookup_wpQueryProgDetails(somSelf,pProgDetails,pulSize) \
  377.     ((( somTD_WPProgramFile_wpQueryProgDetails ) \
  378.     SOM_GetClass(somSelf)->somLookupMethod(somLId_wpQueryProgDetails)) \
  379.         ((WPProgramFile*)somSelf,pProgDetails,pulSize))
  380. #define lookup_wpQueryProgDetails WPProgramFile_lookup_wpQueryProgDetails
  381. #endif
  382.  
  383.  
  384. #ifndef somLUM_wpSetProgDetails
  385. #define somLUM_wpSetProgDetails
  386. static char *somLMN_wpSetProgDetails = "wpSetProgDetails";
  387. static somId somLId_wpSetProgDetails = &somLMN_wpSetProgDetails;
  388. #define WPProgramFile_lookup_wpSetProgDetails(somSelf,pProgDetails) \
  389.     ((( somTD_WPProgramFile_wpSetProgDetails ) \
  390.     SOM_GetClass(somSelf)->somLookupMethod(somLId_wpSetProgDetails)) \
  391.         ((WPProgramFile*)somSelf,pProgDetails))
  392. #define lookup_wpSetProgDetails WPProgramFile_lookup_wpSetProgDetails
  393. #endif
  394.  
  395.  
  396. #ifndef somLUM_wpAddProgramPage
  397. #define somLUM_wpAddProgramPage
  398. static char *somLMN_wpAddProgramPage = "wpAddProgramPage";
  399. static somId somLId_wpAddProgramPage = &somLMN_wpAddProgramPage;
  400. #define WPProgramFile_lookup_wpAddProgramPage(somSelf,hwndNotebook) \
  401.     ((( somTD_WPProgramFile_wpAddProgramPage ) \
  402.     SOM_GetClass(somSelf)->somLookupMethod(somLId_wpAddProgramPage)) \
  403.         ((WPProgramFile*)somSelf,hwndNotebook))
  404. #define lookup_wpAddProgramPage WPProgramFile_lookup_wpAddProgramPage
  405. #endif
  406.  
  407.  
  408. #ifndef somLUM_wpAddProgramSessionPage
  409. #define somLUM_wpAddProgramSessionPage
  410. static char *somLMN_wpAddProgramSessionPage = "wpAddProgramSessionPage";
  411. static somId somLId_wpAddProgramSessionPage = &somLMN_wpAddProgramSessionPage;
  412. #define WPProgramFile_lookup_wpAddProgramSessionPage(somSelf,hwndNotebook) \
  413.     ((( somTD_WPProgramFile_wpAddProgramSessionPage ) \
  414.     SOM_GetClass(somSelf)->somLookupMethod(somLId_wpAddProgramSessionPage)) \
  415.         ((WPProgramFile*)somSelf,hwndNotebook))
  416. #define lookup_wpAddProgramSessionPage WPProgramFile_lookup_wpAddProgramSessionPage
  417. #endif
  418.  
  419.  
  420. #ifndef somLUM_wpQueryAssociationFilter
  421. #define somLUM_wpQueryAssociationFilter
  422. static char *somLMN_wpQueryAssociationFilter = "wpQueryAssociationFilter";
  423. static somId somLId_wpQueryAssociationFilter = &somLMN_wpQueryAssociationFilter;
  424. #define WPProgramFile_lookup_wpQueryAssociationFilter(somSelf) \
  425.     ((( somTD_WPProgramFile_wpQueryAssociationFilter ) \
  426.     SOM_GetClass(somSelf)->somLookupMethod(somLId_wpQueryAssociationFilter)) \
  427.         ((WPProgramFile*)somSelf))
  428. #define lookup_wpQueryAssociationFilter WPProgramFile_lookup_wpQueryAssociationFilter
  429. #endif
  430.  
  431.  
  432. #ifndef somLUM_wpQueryAssociationType
  433. #define somLUM_wpQueryAssociationType
  434. static char *somLMN_wpQueryAssociationType = "wpQueryAssociationType";
  435. static somId somLId_wpQueryAssociationType = &somLMN_wpQueryAssociationType;
  436. #define WPProgramFile_lookup_wpQueryAssociationType(somSelf) \
  437.     ((( somTD_WPProgramFile_wpQueryAssociationType ) \
  438.     SOM_GetClass(somSelf)->somLookupMethod(somLId_wpQueryAssociationType)) \
  439.         ((WPProgramFile*)somSelf))
  440. #define lookup_wpQueryAssociationType WPProgramFile_lookup_wpQueryAssociationType
  441. #endif
  442.  
  443.  
  444. #ifndef somLUM_wpSetAssociationFilter
  445. #define somLUM_wpSetAssociationFilter
  446. static char *somLMN_wpSetAssociationFilter = "wpSetAssociationFilter";
  447. static somId somLId_wpSetAssociationFilter = &somLMN_wpSetAssociationFilter;
  448. #define WPProgramFile_lookup_wpSetAssociationFilter(somSelf,pszFilter) \
  449.     ((( somTD_WPProgramFile_wpSetAssociationFilter ) \
  450.     SOM_GetClass(somSelf)->somLookupMethod(somLId_wpSetAssociationFilter)) \
  451.         ((WPProgramFile*)somSelf,pszFilter))
  452. #define lookup_wpSetAssociationFilter WPProgramFile_lookup_wpSetAssociationFilter
  453. #endif
  454.  
  455.  
  456. #ifndef somLUM_wpSetAssociationType
  457. #define somLUM_wpSetAssociationType
  458. static char *somLMN_wpSetAssociationType = "wpSetAssociationType";
  459. static somId somLId_wpSetAssociationType = &somLMN_wpSetAssociationType;
  460. #define WPProgramFile_lookup_wpSetAssociationType(somSelf,pszType) \
  461.     ((( somTD_WPProgramFile_wpSetAssociationType ) \
  462.     SOM_GetClass(somSelf)->somLookupMethod(somLId_wpSetAssociationType)) \
  463.         ((WPProgramFile*)somSelf,pszType))
  464. #define lookup_wpSetAssociationType WPProgramFile_lookup_wpSetAssociationType
  465. #endif
  466.  
  467.  
  468. #ifndef somLUM_wpQueryProgramAssociations
  469. #define somLUM_wpQueryProgramAssociations
  470. static char *somLMN_wpQueryProgramAssociations = "wpQueryProgramAssociations";
  471. static somId somLId_wpQueryProgramAssociations = &somLMN_wpQueryProgramAssociations;
  472. #define WPProgramFile_lookup_wpQueryProgramAssociations(somSelf,ptr,pszAssoc,fFilter) \
  473.     ((( somTD_WPProgramFile_wpQueryProgramAssociations ) \
  474.     SOM_GetClass(somSelf)->somLookupMethod(somLId_wpQueryProgramAssociations)) \
  475.         ((WPProgramFile*)somSelf,ptr,pszAssoc,fFilter))
  476. #define lookup_wpQueryProgramAssociations WPProgramFile_lookup_wpQueryProgramAssociations
  477. #endif
  478.  
  479.  
  480. #ifndef somLUM_wpSetProgramAssociations
  481. #define somLUM_wpSetProgramAssociations
  482. static char *somLMN_wpSetProgramAssociations = "wpSetProgramAssociations";
  483. static somId somLId_wpSetProgramAssociations = &somLMN_wpSetProgramAssociations;
  484. #define WPProgramFile_lookup_wpSetProgramAssociations(somSelf,pszAssoc,fFilter) \
  485.     ((( somTD_WPProgramFile_wpSetProgramAssociations ) \
  486.     SOM_GetClass(somSelf)->somLookupMethod(somLId_wpSetProgramAssociations)) \
  487.         ((WPProgramFile*)somSelf,pszAssoc,fFilter))
  488. #define lookup_wpSetProgramAssociations WPProgramFile_lookup_wpSetProgramAssociations
  489. #endif
  490.  
  491.  
  492. #ifndef somLUM_wpQueryWarnBeforeStart
  493. #define somLUM_wpQueryWarnBeforeStart
  494. static char *somLMN_wpQueryWarnBeforeStart = "wpQueryWarnBeforeStart";
  495. static somId somLId_wpQueryWarnBeforeStart = &somLMN_wpQueryWarnBeforeStart;
  496. #define WPProgramFile_lookup_wpQueryWarnBeforeStart(somSelf) \
  497.     ((( somTD_WPProgramFile_wpQueryWarnBeforeStart ) \
  498.     SOM_GetClass(somSelf)->somLookupMethod(somLId_wpQueryWarnBeforeStart)) \
  499.         ((WPProgramFile*)somSelf))
  500. #define lookup_wpQueryWarnBeforeStart WPProgramFile_lookup_wpQueryWarnBeforeStart
  501. #endif
  502.  
  503.  
  504. #ifndef somLUM_wpSetWarnBeforeStart
  505. #define somLUM_wpSetWarnBeforeStart
  506. static char *somLMN_wpSetWarnBeforeStart = "wpSetWarnBeforeStart";
  507. static somId somLId_wpSetWarnBeforeStart = &somLMN_wpSetWarnBeforeStart;
  508. #define WPProgramFile_lookup_wpSetWarnBeforeStart(somSelf,fWarnBeforeStart) \
  509.     ((( somTD_WPProgramFile_wpSetWarnBeforeStart ) \
  510.     SOM_GetClass(somSelf)->somLookupMethod(somLId_wpSetWarnBeforeStart)) \
  511.         ((WPProgramFile*)somSelf,fWarnBeforeStart))
  512. #define lookup_wpSetWarnBeforeStart WPProgramFile_lookup_wpSetWarnBeforeStart
  513. #endif
  514.  
  515.  
  516. #ifndef somLUM_wpSetProgIcon
  517. #define somLUM_wpSetProgIcon
  518. static char *somLMN_wpSetProgIcon = "wpSetProgIcon";
  519. static somId somLId_wpSetProgIcon = &somLMN_wpSetProgIcon;
  520. #define WPProgramFile_lookup_wpSetProgIcon(somSelf,pfeal) \
  521.     ((( somTD_WPProgramFile_wpSetProgIcon ) \
  522.     SOM_GetClass(somSelf)->somLookupMethod(somLId_wpSetProgIcon)) \
  523.         ((WPProgramFile*)somSelf,pfeal))
  524. #define lookup_wpSetProgIcon WPProgramFile_lookup_wpSetProgIcon
  525. #endif
  526.  
  527.  
  528. #endif       /* SOM_WPProgramFile_xh */
  529.  
  530. #ifndef SOM_M_WPProgramFile_xh
  531. #define SOM_M_WPProgramFile_xh
  532.  
  533. class M_WPProgramFile;
  534.  
  535. #define M_WPProgramFile_MajorVersion 1
  536. #define M_WPProgramFile_MinorVersion 2
  537.  
  538. /* C++ SOM defs */
  539. #include <somcls.xh>
  540. #include <somcm.xh>
  541.  
  542. /* C++ parent defs */
  543. #ifndef SOM_M_WPDataFile_xh
  544. #include <wpdataf.xh>
  545. #endif
  546.  
  547. #ifndef M_WPProgramFile_API
  548. #define M_WPProgramFile_API
  549. /*
  550.  * -- The Class API
  551.  */
  552.  
  553. /*
  554.  * Start of bindings for IDL types
  555.  */
  556.  
  557.  
  558. /*
  559.  * End of bindings for IDL types.
  560.  */
  561.  
  562. /*
  563.  * -- M_WPProgramFile is a metaclass for WPProgramFile. Make sure WPProgramFile is known.
  564.  */
  565. class WPProgramFile;
  566.  
  567.  
  568. /* A procedure to create the M_WPProgramFile Class */
  569. SOMEXTERN SOMClass * SOMLINK M_WPProgramFileNewClass(
  570.         integer4 majorVersion,
  571.         integer4 minorVersion);
  572.  
  573. /* The API to the M_WPProgramFile class object, and the methods it introduces. */
  574. SOMEXTERN struct M_WPProgramFileClassDataStructure {
  575.     SOMClass *classObject;
  576. } SOMDLINK M_WPProgramFileClassData;
  577. #define _M_WPProgramFile M_WPProgramFileClassData.classObject
  578.  
  579. /* The API to parentMtabs for M_WPProgramFile, and the instance data it introduces. */
  580. SOMEXTERN struct M_WPProgramFileCClassDataStructure {
  581.     somMethodTabs parentMtab;
  582.     somDToken              instanceDataToken;
  583. } SOMDLINK M_WPProgramFileCClassData;
  584.  
  585. /*
  586.  * -- Typedefs for M_WPProgramFile Method Procedures
  587.  */
  588. SOMEXTERN {
  589.  
  590. /*
  591.  * -- Typedefs for Reintroduced Wrapper Methods
  592.  */
  593. typedef WPProgramFile*   SOMLINK somTP_M_WPProgramFile_somNew(M_WPProgramFile *somSelf);
  594. typedef somTP_M_WPProgramFile_somNew *somTD_M_WPProgramFile_somNew;
  595. }
  596.  
  597. #endif /* M_WPProgramFile_API */
  598.  
  599.  
  600. /*
  601.  * -- This emitter treats Method Tokens as Thunks by default.
  602.  * -- Use the sc modifier "nothunks" to change this default
  603.  */
  604. #undef somresolve_
  605. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  606.  
  607. /*
  608.  * -- The C++ Wrapper Class for M_WPProgramFile
  609.  */
  610. class M_WPProgramFile : public M_WPDataFile
  611. {
  612. public:
  613.  
  614. // M_WPProgramFile::new creates the class object if necessary, and then uses somNewNoInit
  615. // to allocate memory and create the object. Initialization is in ctors.
  616. void *operator new(size_t)
  617. {
  618.    if (!_M_WPProgramFile) M_WPProgramFileNewClass(M_WPProgramFile_MajorVersion,M_WPProgramFile_MinorVersion);
  619.    return (void*)
  620.       SOM_Resolve(_M_WPProgramFile,SOMClass,somNewNoInit)
  621.          ((SOMClass *)((void*)_M_WPProgramFile));
  622. }
  623.  
  624. // M_WPProgramFile::delete uses somDestruct.
  625. void operator delete(void * obj)
  626. {
  627.    if (obj && *(void**)obj) {
  628.       SOM_Resolve(obj,SOMObject,somDestruct)
  629.          ((SOMObject*)obj, 1, 0);
  630.    }
  631. }
  632.  
  633. M_WPProgramFile& operator=(M_WPProgramFile& fromObj)
  634. {
  635.    this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
  636.    return *this;
  637. }
  638.  
  639. M_WPProgramFile()
  640. {
  641.    if (*(void**)this != 
  642.        ((somParentMtabStructPtr)
  643.         (M_WPProgramFileCClassData.parentMtab))->mtab)
  644.       return;
  645.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  646. }
  647.  
  648. M_WPProgramFile(M_WPProgramFile* fromObj)
  649. {
  650.    if (*(void**)this != 
  651.        ((somParentMtabStructPtr)
  652.         (M_WPProgramFileCClassData.parentMtab))->mtab)
  653.       return;
  654.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  655. }
  656.  
  657. M_WPProgramFile(const M_WPProgramFile* fromObj)
  658. {
  659.    if (*(void**)this != 
  660.        ((somParentMtabStructPtr)
  661.         (M_WPProgramFileCClassData.parentMtab))->mtab)
  662.       return;
  663.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  664. }
  665.  
  666.  
  667. /*
  668.  * Reintroduce inherited methods
  669.  */
  670.  
  671. /* method: somNew */
  672. WPProgramFile*  somNew()
  673. {
  674.    return SOM_ResolveD(this,M_WPProgramFile,SOMClass,somNew)
  675.     (this);
  676. }
  677.  
  678.  
  679.  
  680. };   /* M_WPProgramFile */
  681.  
  682.  
  683.  
  684. #endif       /* SOM_M_WPProgramFile_xh */
  685.