source: trunk/mediafolder/include/audioshadow.hh@ 150

Last change on this file since 150 was 51, checked in by gyoung, 2 years ago

hh files that are needed and don't seem to be generated.

  • Property svn:eol-style set to native
File size: 3.7 KB
Line 
1/*
2 * This file is (C) Chris Wohlgemuth 2002
3 */
4/*
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; see the file COPYING. If not, write to
17 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19#define INCL_DOS
20#define INCL_WIN
21#define INCL_GPIBITMAPS
22#include <os2.h>
23
24#define INCL_MCIOS2
25#include <os2me.h>
26
27
28#include "except.h"
29
30#define IDTIMER_PLAY 5L
31#define PLAYTIMER_DELAY 1000
32
33#define STATUS_LENGTH 200
34
35#define CWAUDIO_CLASS_NAME "MMAudio"
36
37#ifdef DEBUG
38 void writeDebugLog(char *text);
39#endif
40
41
42#pragma SOMAsDefault(on)
43#include <som.hh>
44#include <somcls.hh>
45#pragma SOMNoMangling(on)
46/*#include "progfolder.h"*/
47#include "wpshadow.hh"
48
49#pragma SOMAsDefault(off)
50typedef struct _MYVIEWITEM
51{
52 BOOL bIsInUseList;
53 USEITEM useItem;
54 VIEWITEM viewItem;
55}MYVIEWITEM;
56
57typedef struct
58{
59 INT id;
60 RECTL rclSource;
61 HBITMAP hbmSource;
62 RECTL rclDest;
63}CONTROLINFO;
64
65typedef struct
66{
67 BITMAPINFOHEADER bmpInfoHdr;
68 HBITMAP hbm;
69}LOADEDBITMAP;
70
71
72#pragma SOMAsDefault(on)
73
74class M_CWAudioShadow:public M_WPShadow
75{
76/* The name of of the new class */
77#pragma SOMClassName(*,"M_CWAudioShadow")
78/* Required SOM version */
79#pragma SOMClassVersion(*,1,2)
80#pragma SOMCallstyle(oidl)
81public:
82 virtual PSZ wpclsQueryTitle();
83 virtual ULONG wpclsQueryDetailsInfo( PCLASSFIELDINFO* ppClassFieldInfo, PULONG pSize);
84#if 0
85 virtual void wpclsInitData();
86 virtual ULONG wpclsQueryIconData(PICONINFO pIconInfo);
87 virtual ULONG wpclsQueryIconDataN(PICONINFO pIconInfo, ULONG ulIconIndex);
88 virtual void wpclsUnInitData();
89 virtual ULONG wpclsQueryStyle();
90 virtual BOOL wpclsQueryDefaultHelp(PULONG HelpPanelId,PSZ HelpLibrary);
91 virtual BOOL wpclsCreateDefaultTemplates(WPObject * wpObject);
92#endif
93
94#pragma SOMReleaseOrder()
95#pragma SOMIDLPass(*,"Implementation-End","dllname = mediafld;")
96};
97
98class CWAudioShadow:public WPShadow
99{
100#pragma SOMClassName(*,"CWAudioShadow")
101#pragma SOMMetaClass(CWAudioShadow,"M_CWAudioShadow")
102#pragma SOMClassVersion(CWAudioShadow,1,2)
103#pragma SOMCallstyle(oidl)
104private:
105
106public:
107
108 virtual ULONG wpQueryDetailsData(PVOID* ppDetailsData, PULONG pcp);
109 // virtual void wpInitData();
110#if 0
111 virtual BOOL wpMenuItemHelpSelected(ULONG MenuId);
112 virtual ULONG wpFilterPopupMenu(ULONG ulFlags, HWND hwndCnr, BOOL fMultiSelect);
113 virtual BOOL wpModifyPopupMenu(HWND hwndMenu, HWND hwndCnr, ULONG ulPosition);
114 virtual BOOL wpMenuItemSelected(HWND hwndFrame,ULONG ulMenuId);
115 virtual ULONG wpAddFolderView2Page(HWND hwndNotebook);
116 virtual MRESULT wpDragOver(HWND hwndCnr,PDRAGINFO pDragInfo);
117 virtual BOOL wpAddSettingsPages(HWND hwndNotebook);
118 virtual BOOL wpAddToContent(WPObject* Object);
119 virtual BOOL wpDeleteFromContent(WPObject* Object);
120 virtual BOOL cwIsWaveFile(WPObject* wpObject);
121 virtual ULONG cwSetWriteFlags(ULONG ulNewWriteFlags,ULONG ulMask);
122 virtual ULONG cwQueryWriteFlags();
123 virtual BOOL wpRestoreState(ULONG ulReserved);
124 virtual BOOL wpSaveState();
125 virtual MRESULT wpDragOver(HWND hwndCnr,PDRAGINFO pDragInfo);
126 virtual MRESULT wpDrop(HWND hwndCnr,PDRAGINFO pDragInfo,PDRAGITEM pDragItem);
127#endif
128
129#pragma SOMReleaseOrder()
130
131#pragma SOMIDLPass(CWAudioShadow,"Implementation-End","dllname = mediafld;")
132};
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
Note: See TracBrowser for help on using the repository browser.