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 |
|
---|
20 | #ifndef CDFOLDER_HH_INCLUDED
|
---|
21 | #define CDFOLDER_HH_INCLUDED
|
---|
22 |
|
---|
23 | #define IDHLP_CDFOLDERMAIN 200
|
---|
24 | //#define OPEN_MMDISK 0x6500+0x400
|
---|
25 |
|
---|
26 | #include "mediafolder.hh"
|
---|
27 | #include "mediafolderres.h"
|
---|
28 |
|
---|
29 | typedef struct _DISKUSEITEM
|
---|
30 | {
|
---|
31 | WPObject* wpDiskObj;
|
---|
32 | USEITEM useItem;
|
---|
33 | VIEWITEM viewItem;
|
---|
34 | }DISKUSEITEM;
|
---|
35 |
|
---|
36 | #pragma SOMAsDefault(on)
|
---|
37 | #include <som.hh>
|
---|
38 | #include <somcls.hh>
|
---|
39 | #pragma SOMNoMangling(on)
|
---|
40 |
|
---|
41 | #include "cwaudio.hh"
|
---|
42 |
|
---|
43 | #pragma SOMNonDTS(on)
|
---|
44 |
|
---|
45 | class M_CWCDFolder:public M_CWMediaFolder
|
---|
46 | {
|
---|
47 | /* The name of of the new class */
|
---|
48 | #pragma SOMClassName(*,"M_CWCDFolder")
|
---|
49 | /* Required SOM version */
|
---|
50 | #pragma SOMClassVersion(*,1,2)
|
---|
51 | #pragma SOMCallstyle(oidl)
|
---|
52 | public:
|
---|
53 | virtual PSZ wpclsQueryTitle();
|
---|
54 | virtual ULONG wpclsQueryStyle();
|
---|
55 | virtual ULONG wpclsQueryIconData(PICONINFO pIconInfo);
|
---|
56 | virtual ULONG wpclsQueryIconDataN(PICONINFO pIconInfo, ULONG ulIconIndex);
|
---|
57 | virtual void wpclsInitData();
|
---|
58 | virtual BOOL wpclsQueryDefaultHelp(PULONG HelpPanelId,PSZ HelpLibrary);
|
---|
59 | virtual BOOL wpclsCreateDefaultTemplates(WPObject * wpObject);
|
---|
60 | /* virtual void wpclsInitData();
|
---|
61 | virtual void wpclsUnInitData();
|
---|
62 |
|
---|
63 | */
|
---|
64 | #pragma SOMReleaseOrder()
|
---|
65 | #pragma SOMIDLPass(*,"Implementation-End","dllname = mediafld;")
|
---|
66 | };
|
---|
67 |
|
---|
68 | class CWCDFolder:public CWMediaFolder
|
---|
69 | {
|
---|
70 | #pragma SOMClassName(*,"CWCDFolder")
|
---|
71 | #pragma SOMMetaClass(*,"M_CWCDFolder")
|
---|
72 | #pragma SOMClassVersion(*,1,2)
|
---|
73 | #pragma SOMCallstyle(oidl)
|
---|
74 | private:
|
---|
75 | char chrDrive[3];
|
---|
76 | ULONG ulNumTracks;
|
---|
77 | DISKUSEITEM diskUseItem;
|
---|
78 | HWND hwndFrameCDFldr;
|
---|
79 | public:
|
---|
80 |
|
---|
81 | PFNWP pfnwpCDFrame;
|
---|
82 | #if 0
|
---|
83 | virtual BOOL wpMenuItemHelpSelected(ULONG MenuId);
|
---|
84 | virtual BOOL cwIsWaveFile(WPObject* wpObject);
|
---|
85 | virtual ULONG cwSetWriteFlags(ULONG ulNewWriteFlags,ULONG ulMask);
|
---|
86 | virtual ULONG cwQueryWriteFlags();
|
---|
87 | virtual BOOL wpMenuItemSelected(HWND hwndFrame,ULONG ulMenuId);
|
---|
88 | virtual void wpInitData();
|
---|
89 | virtual void wpUnInitData();
|
---|
90 | virtual BOOL wpModifyPopupMenu(HWND hwndMenu, HWND hwndCnr, ULONG ulPosition);
|
---|
91 | virtual BOOL wpAddSettingsPages(HWND hwndNotebook);
|
---|
92 | #endif
|
---|
93 | virtual BOOL wpRestoreState(ULONG ulReserved);
|
---|
94 | virtual BOOL wpSaveState();
|
---|
95 | virtual BOOL wpSetup(PSZ pSetupString);
|
---|
96 | virtual BOOL wpSetupOnce(PSZ pSetupString);
|
---|
97 | virtual MRESULT wpDragOver(HWND hwndCnr,PDRAGINFO pDragInfo);
|
---|
98 | virtual BOOL wpRefresh(ULONG ulView, PVOID pReserved);
|
---|
99 | virtual HWND wpOpen(HWND hwndCnr,ULONG ulView,ULONG ulParam);
|
---|
100 | virtual ULONG wpFilterPopupMenu(ULONG ulFlags, HWND hwndCnr, BOOL fMultiSelect);
|
---|
101 | virtual ULONG wpAddObjectGeneralPage2(HWND hwndNotebook);
|
---|
102 | virtual ULONG wpAddFolderSortPage(HWND hwndNotebook);
|
---|
103 | virtual ULONG wpAddFolderIncludePage(HWND hwndNotebook);
|
---|
104 | virtual ULONG wpQueryConcurrentView();
|
---|
105 | virtual ULONG cwPlayAudioFile(HWND hwndFrame, ULONG ulWhich);
|
---|
106 | virtual BOOL cwSeekAudioFile(LONG lPosSec);
|
---|
107 | virtual void cwPlayTimeCallback(HWND hwndFrame, LONG lPosSec);
|
---|
108 | virtual BOOL cwInsertAllTracks(char* chrCDDrive);
|
---|
109 | virtual BOOL cwClose(HWND hwndFrame);
|
---|
110 | #pragma SOMReleaseOrder(\
|
---|
111 | )
|
---|
112 |
|
---|
113 | #pragma SOMIDLPass(CWMediaFolder,"Implementation-End","dllname = mediafld;")
|
---|
114 | };
|
---|
115 |
|
---|
116 | #pragma SOMAsDefault(pop)
|
---|
117 | #pragma SOMNonDTS(pop)
|
---|
118 |
|
---|
119 | #endif /* CDFOLDER_HH_INCLUDED */
|
---|
120 |
|
---|
121 |
|
---|
122 |
|
---|
123 |
|
---|
124 |
|
---|
125 |
|
---|
126 |
|
---|
127 |
|
---|
128 |
|
---|
129 |
|
---|
130 |
|
---|
131 |
|
---|