diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-07-05 16:58:42 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-07-05 16:58:42 +0400 |
commit | f6883a2c09507d0acb9ccbf0156e5948211dc480 (patch) | |
tree | 7789b4fecd6b2e846f070e2e0bdb1e16ea7555e9 /src/apps/mplayerc/MediaFormats.h | |
parent | e9b446380bc3bc122e3e3a1d0622163a5f1920a3 (diff) |
astyle formatting
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2103 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/MediaFormats.h')
-rw-r--r-- | src/apps/mplayerc/MediaFormats.h | 126 |
1 files changed, 63 insertions, 63 deletions
diff --git a/src/apps/mplayerc/MediaFormats.h b/src/apps/mplayerc/MediaFormats.h index 15a606827..287537d49 100644 --- a/src/apps/mplayerc/MediaFormats.h +++ b/src/apps/mplayerc/MediaFormats.h @@ -30,81 +30,81 @@ class CMediaFormatCategory
{
protected:
- CString m_label, m_specreqnote;
- CAtlList<CString> m_exts, m_backupexts;
- bool m_fAudioOnly;
- engine_t m_engine;
+ CString m_label, m_specreqnote;
+ CAtlList<CString> m_exts, m_backupexts;
+ bool m_fAudioOnly;
+ engine_t m_engine;
public:
- CMediaFormatCategory();
- CMediaFormatCategory(
- CString label, CAtlList<CString>& exts, bool fAudioOnly = false,
- CString specreqnote = _T(""), engine_t e = DirectShow);
- CMediaFormatCategory(
- CString label, CString exts, bool fAudioOnly = false,
- CString specreqnote = _T(""), engine_t e = DirectShow);
- virtual ~CMediaFormatCategory();
-
- void UpdateData(bool fSave);
-
- CMediaFormatCategory(const CMediaFormatCategory& mfc);
- CMediaFormatCategory& operator = (const CMediaFormatCategory& mfc);
-
- void RestoreDefaultExts();
- void SetExts(CAtlList<CString>& exts);
- void SetExts(CString exts);
-
- bool FindExt(CString ext)
- {
- return m_exts.Find(ext.TrimLeft(_T(".")).MakeLower()) != NULL;
- }
-
- CString GetLabel() const
- {
- return m_label;
- }
- CString GetFilter();
- CString GetExts(bool fAppendEngine = false);
- CString GetExtsWithPeriod(bool fAppendEngine = false);
- CString GetBackupExtsWithPeriod(bool fAppendEngine = false);
- CString GetSpecReqNote() const
- {
- return m_specreqnote;
- }
- bool IsAudioOnly() const
- {
- return m_fAudioOnly;
- }
- engine_t GetEngineType() const
- {
- return m_engine;
- }
- void SetEngineType(engine_t e)
- {
- m_engine = e;
- }
+ CMediaFormatCategory();
+ CMediaFormatCategory(
+ CString label, CAtlList<CString>& exts, bool fAudioOnly = false,
+ CString specreqnote = _T(""), engine_t e = DirectShow);
+ CMediaFormatCategory(
+ CString label, CString exts, bool fAudioOnly = false,
+ CString specreqnote = _T(""), engine_t e = DirectShow);
+ virtual ~CMediaFormatCategory();
+
+ void UpdateData(bool fSave);
+
+ CMediaFormatCategory(const CMediaFormatCategory& mfc);
+ CMediaFormatCategory& operator = (const CMediaFormatCategory& mfc);
+
+ void RestoreDefaultExts();
+ void SetExts(CAtlList<CString>& exts);
+ void SetExts(CString exts);
+
+ bool FindExt(CString ext)
+ {
+ return m_exts.Find(ext.TrimLeft(_T(".")).MakeLower()) != NULL;
+ }
+
+ CString GetLabel() const
+ {
+ return m_label;
+ }
+ CString GetFilter();
+ CString GetExts(bool fAppendEngine = false);
+ CString GetExtsWithPeriod(bool fAppendEngine = false);
+ CString GetBackupExtsWithPeriod(bool fAppendEngine = false);
+ CString GetSpecReqNote() const
+ {
+ return m_specreqnote;
+ }
+ bool IsAudioOnly() const
+ {
+ return m_fAudioOnly;
+ }
+ engine_t GetEngineType() const
+ {
+ return m_engine;
+ }
+ void SetEngineType(engine_t e)
+ {
+ m_engine = e;
+ }
};
class CMediaFormats : public CAtlArray<CMediaFormatCategory>
{
protected:
- engine_t m_iRtspHandler;
- bool m_fRtspFileExtFirst;
+ engine_t m_iRtspHandler;
+ bool m_fRtspFileExtFirst;
public:
- CMediaFormats();
- virtual ~CMediaFormats();
+ CMediaFormats();
+ virtual ~CMediaFormats();
- void UpdateData(bool fSave);
+ void UpdateData(bool fSave);
- engine_t GetRtspHandler(bool& fRtspFileExtFirst);
- void SetRtspHandler(engine_t e, bool fRtspFileExtFirst);
+ engine_t GetRtspHandler(bool& fRtspFileExtFirst);
+ void SetRtspHandler(engine_t e, bool fRtspFileExtFirst);
- bool IsUsingEngine(CString path, engine_t e);
- engine_t GetEngine(CString path);
+ bool IsUsingEngine(CString path, engine_t e);
+ engine_t GetEngine(CString path);
- bool FindExt(CString ext, bool fAudioOnly = false);
+ bool FindExt(CString ext, bool fAudioOnly = false);
- void GetFilter(CString& filter, CAtlArray<CString>& mask);
- void GetAudioFilter(CString& filter, CAtlArray<CString>& mask);
+ void GetFilter(CString& filter, CAtlArray<CString>& mask);
+ void GetAudioFilter(CString& filter, CAtlArray<CString>& mask);
};
|