~ubuntu-branches/debian/experimental/gpac/experimental

« back to all changes in this revision

Viewing changes to applications/osmo4_w32/Playlist.h

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-02-11 17:35:15 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120211173515-ubgyi9lbbnnxb6ax
Tags: 0.4.5+svn3462~dfsg0-1
* Merge upstream SVN snapshot svn3462:
  - DASH: SPTS don't need '-dash-ts-prog' option (+doc added)
  - support in the player for BaseURL as source as specified in
    latest draft and generated by MP4Box
  - Fixed bug in edit list rewrite when concatenating
  - Added simple osd module for perf monitoring (cpu/mem/fps)
  - Fixed some crashes when destroying objects/services before their
    creation is completed (stress mode)
  - Fixed event firing for secondary scenes and
    exported createVRMLfromString
  - Only notify fractionChanged when it actually changes
  - Commented full AAC file scan for duration
  - Made DX module store its YUV config (speeds up startup)
  - Added option to avoid unloading modules
  - use gf_esd_get_textual_description() instead of (incomplete) switches
  - Fixed UPnP detection and removed extension loading
* Drop xulrunner-dev, gpac doesn't build against it.
* Revise repackaging and debian/rules' get-orig-source target.
* Refresh patches.
* Configure with --enable-debug.
* Add -O2 to CFLAGS, use -O0 when optimizations are disabled.
* Implement DEB_BUILD_OPTIONS' noopt flag.
* Install modules in multiarch path.
* Split gpac and install modules into new gpac-modules-base package.
* Add -DBG packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#if !defined(AFX_PLAYLIST_H__EA74376A_83DF_435E_8484_A15BF5B77A32__INCLUDED_)
2
 
#define AFX_PLAYLIST_H__EA74376A_83DF_435E_8484_A15BF5B77A32__INCLUDED_
3
 
 
4
 
#if _MSC_VER > 1000
5
 
#pragma once
6
 
#endif // _MSC_VER > 1000
7
 
// Playlist.h : header file
8
 
//
9
 
 
10
 
 
11
 
class PLEntry 
12
 
{
13
 
public:
14
 
        PLEntry(CString url, char *path = NULL);
15
 
        ~PLEntry();
16
 
 
17
 
        char *m_url;
18
 
        char *m_disp_name;
19
 
        u32 m_duration;
20
 
 
21
 
        Bool m_bIsSelected;
22
 
        Bool m_bIsDead;
23
 
        Bool m_bIsPlaying;
24
 
};
25
 
 
26
 
 
27
 
/////////////////////////////////////////////////////////////////////////////
28
 
// Playlist dialog
29
 
 
30
 
class Playlist : public CDialog
31
 
{
32
 
// Construction
33
 
public:
34
 
        Playlist();
35
 
        virtual ~Playlist();
36
 
        
37
 
        virtual Bool Create() {
38
 
                /*use desktop window to enable playlist behind player*/
39
 
                return CDialog::Create(IDD_PLAYLIST, GetDesktopWindow());
40
 
        }
41
 
 
42
 
        CToolBar    m_toolBar;
43
 
        GF_List *m_entries;
44
 
 
45
 
        void Clear();
46
 
        void ClearButPlaying();
47
 
        void RefreshList();
48
 
        void AddDir(Bool do_recurse);
49
 
        void Truncate();
50
 
        void SetDead();
51
 
        void SetDuration(u32 duration);
52
 
        
53
 
        void Play();
54
 
        void PlayNext();
55
 
        void PlayPrev();
56
 
        Bool HasValidEntries();
57
 
        CString GetDisplayName();
58
 
        CString GetURL();
59
 
 
60
 
        void OpenPlayList(CString fileName);
61
 
 
62
 
        void QueueURL(CString filename);
63
 
        s32 m_cur_entry;
64
 
 
65
 
// Dialog Data
66
 
        //{{AFX_DATA(Playlist)
67
 
        enum { IDD = IDD_PLAYLIST};
68
 
        CListCtrl       m_FileList;
69
 
        //}}AFX_DATA
70
 
 
71
 
// Overrides
72
 
        // ClassWizard generated virtual function overrides
73
 
        //{{AFX_VIRTUAL(Playlist)
74
 
        protected:
75
 
        virtual void DoDataExchange(CDataExchange* pDX);
76
 
        virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
77
 
        //}}AFX_VIRTUAL
78
 
 
79
 
// Implementation
80
 
protected:
81
 
        s32 m_all_dead_entries;
82
 
        void UpdateEntry(u32 idx);
83
 
        void RefreshCurrent();
84
 
        void Sort(u32 type);
85
 
        void Save(char *szPath, Bool save_m3u);
86
 
 
87
 
        // Generated message map functions
88
 
        //{{AFX_MSG(Playlist)
89
 
        virtual BOOL OnInitDialog() ;
90
 
        afx_msg void OnSize(UINT nType, int cx, int cy);
91
 
        afx_msg void OnDropFiles(HDROP hDropInfo);
92
 
        afx_msg void OnPlAddFile();
93
 
        afx_msg void OnPlRemFile();
94
 
        afx_msg void OnSelUp();
95
 
        afx_msg void OnSelDown();
96
 
        afx_msg void OnPlSave();
97
 
        afx_msg void OnClose();
98
 
        afx_msg void OnPlRemDead();
99
 
        afx_msg void OnPlRemAll();
100
 
        afx_msg void OnPlAddDir();
101
 
        afx_msg void OnPlAddDirRec();
102
 
        afx_msg void OnPlAddUrl();
103
 
        afx_msg void OnPlOpen();
104
 
        afx_msg void OnReverseSelection();
105
 
        afx_msg void OnReverseList();
106
 
        afx_msg void OnRandomize();
107
 
        afx_msg void OnSortTitle();
108
 
        afx_msg void OnSortFile();
109
 
        afx_msg void OnSortDuration();
110
 
        afx_msg void OnPlPlay();
111
 
        afx_msg void OnRclickFilelist(NMHDR* pNMHDR, LRESULT* pResult);
112
 
        afx_msg void OnDblclkFilelist(NMHDR* pNMHDR, LRESULT* pResult);
113
 
        //}}AFX_MSG
114
 
        DECLARE_MESSAGE_MAP()
115
 
};
116
 
 
117
 
//{{AFX_INSERT_LOCATION}}
118
 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
119
 
 
120
 
#endif // !defined(AFX_PLAYLIST_H__EA74376A_83DF_435E_8484_A15BF5B77A32__INCLUDED_)