1 | /*
|
---|
2 | * This file is (C) Chris Wohlgemuth 2002
|
---|
3 | */
|
---|
4 |
|
---|
5 | #ifndef M3UFOLDER_HH_INCLUDED
|
---|
6 | #define M3UFOLDER_HH_INCLUDED
|
---|
7 |
|
---|
8 | #include "mediafolder.hh"
|
---|
9 | #include "mediafolderres.h"
|
---|
10 |
|
---|
11 | #pragma SOMAsDefault(on)
|
---|
12 | #include <som.hh>
|
---|
13 | #include <somcls.hh>
|
---|
14 | #pragma SOMNoMangling(on)
|
---|
15 |
|
---|
16 | #include "cwaudio.hh"
|
---|
17 |
|
---|
18 | #pragma SOMAsDefault(off)
|
---|
19 | #pragma SOMNonDTS(on)
|
---|
20 |
|
---|
21 | /* The help panel for the M3U folder */
|
---|
22 | #define IDHLP_M3UFOLDERMAIN 300
|
---|
23 |
|
---|
24 | typedef struct _M3UTHREADPARMS
|
---|
25 | {
|
---|
26 | WPObject* thisPtr;
|
---|
27 | HWND hwndCnr;
|
---|
28 | HWND hwndFrame;
|
---|
29 | BOOL fSaveOnly;
|
---|
30 | }M3UTHREADPARMS;
|
---|
31 |
|
---|
32 | #pragma SOMAsDefault(on)
|
---|
33 | //#pragma SOMNonDTS(on)
|
---|
34 |
|
---|
35 | class M_CWM3UFolder:public M_CWMediaFolder
|
---|
36 | {
|
---|
37 | /* The name of of the new class */
|
---|
38 | #pragma SOMClassName(*,"M_CWM3UFolder")
|
---|
39 | /* Required SOM version */
|
---|
40 | #pragma SOMClassVersion(*,1,2)
|
---|
41 | #pragma SOMCallstyle(oidl)
|
---|
42 | public:
|
---|
43 | virtual PSZ wpclsQueryTitle();
|
---|
44 | virtual ULONG wpclsQueryStyle();
|
---|
45 | virtual ULONG wpclsQueryIconData(PICONINFO pIconInfo);
|
---|
46 | virtual ULONG wpclsQueryIconDataN(PICONINFO pIconInfo, ULONG ulIconIndex);
|
---|
47 | virtual void wpclsInitData();
|
---|
48 | virtual BOOL wpclsQueryDefaultHelp(PULONG HelpPanelId,PSZ HelpLibrary);
|
---|
49 | virtual BOOL wpclsCreateDefaultTemplates(WPObject * wpObject);
|
---|
50 | /*
|
---|
51 | virtual void wpclsUnInitData();
|
---|
52 |
|
---|
53 | */
|
---|
54 | #pragma SOMReleaseOrder()
|
---|
55 | #pragma SOMIDLPass(*,"Implementation-End","dllname = mediafld;")
|
---|
56 | };
|
---|
57 |
|
---|
58 | class CWM3UFolder:public CWMediaFolder
|
---|
59 | {
|
---|
60 | #pragma SOMClassName(*,"CWM3UFolder")
|
---|
61 | #pragma SOMMetaClass(*,"M_CWM3UFolder")
|
---|
62 | #pragma SOMClassVersion(*,1,2)
|
---|
63 | #pragma SOMCallstyle(oidl)
|
---|
64 | private:
|
---|
65 |
|
---|
66 | public:
|
---|
67 |
|
---|
68 | BOOL fContentsChanged;
|
---|
69 | BOOL fClosing;
|
---|
70 |
|
---|
71 | virtual HWND wpOpen(HWND hwndCnr,ULONG ulView,ULONG ulParam);
|
---|
72 | // virtual BOOL wpSetup(PSZ pSetupString);
|
---|
73 | virtual BOOL cwInsertAllTracks(char* chrM3UFile);
|
---|
74 | virtual BOOL cwSavePlaylist(char* chrM3UFile, BOOL fClose);
|
---|
75 | virtual BOOL wpDeleteFromContent(WPObject* Object);
|
---|
76 | virtual ULONG wpFilterPopupMenu(ULONG ulFlags, HWND hwndCnr, BOOL fMultiSelect);
|
---|
77 | virtual BOOL wpModifyPopupMenu(HWND hwndMenu, HWND hwndCnr, ULONG ulPosition);
|
---|
78 | #if 0
|
---|
79 | virtual BOOL wpRestoreState(ULONG ulReserved);
|
---|
80 | virtual BOOL wpSaveState();
|
---|
81 | virtual BOOL wpSetupOnce(PSZ pSetupString);
|
---|
82 | virtual MRESULT wpDragOver(HWND hwndCnr,PDRAGINFO pDragInfo);
|
---|
83 | virtual BOOL wpRefresh(ULONG ulView, PVOID pReserved);
|
---|
84 | virtual ULONG wpAddObjectGeneralPage2(HWND hwndNotebook);
|
---|
85 | virtual ULONG wpAddFolderSortPage(HWND hwndNotebook);
|
---|
86 | virtual ULONG wpAddFolderIncludePage(HWND hwndNotebook);
|
---|
87 | virtual ULONG wpQueryConcurrentView();
|
---|
88 | virtual ULONG cwPlayAudioFile(HWND hwndFrame, ULONG ulWhich);
|
---|
89 | virtual BOOL cwSeekAudioFile(LONG lPosSec);
|
---|
90 | virtual void cwPlayTimeCallback(HWND hwndFrame, LONG lPosSec);
|
---|
91 | virtual MRESULT wpDrop(HWND hwndCnr,PDRAGINFO pDragInfo,PDRAGITEM pDragItem);
|
---|
92 | virtual BOOL wpDeleteFromContent(WPObject* Object);
|
---|
93 | #endif
|
---|
94 | virtual BOOL cwClose(HWND hwndFrame);
|
---|
95 | #pragma SOMReleaseOrder( \
|
---|
96 | "cwSavePlaylist")
|
---|
97 |
|
---|
98 | #pragma SOMIDLPass(CWMediaFolder,"Implementation-End","dllname = mediafld;")
|
---|
99 | };
|
---|
100 |
|
---|
101 | #pragma SOMAsDefault(pop)
|
---|
102 | #pragma SOMNonDTS(pop)
|
---|
103 |
|
---|
104 | #endif /* CDFOLDER_HH_INCLUDED */
|
---|
105 |
|
---|
106 |
|
---|
107 |
|
---|
108 |
|
---|
109 |
|
---|
110 |
|
---|
111 |
|
---|
112 |
|
---|
113 |
|
---|
114 |
|
---|
115 |
|
---|
116 |
|
---|