mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-29 14:07:58 +03:00
27 lines
578 B
C++
27 lines
578 B
C++
#ifndef _MAINWINDOW_H_
|
|
#define _MAINWINDOW_H_
|
|
|
|
#include "win32/Window.h"
|
|
#include "FrameBufferWindow.h"
|
|
#include "../VideoDecoder.h"
|
|
#include <memory>
|
|
|
|
class CMainWindow : public Framework::Win32::CWindow
|
|
{
|
|
public:
|
|
CMainWindow();
|
|
virtual ~CMainWindow();
|
|
|
|
protected:
|
|
long OnCommand(unsigned short, unsigned short, HWND);
|
|
|
|
private:
|
|
void OnNewFrame(const Framework::CBitmap&);
|
|
void OnFileOpen();
|
|
|
|
CFrameBufferWindow* m_frameBufferWindow;
|
|
std::shared_ptr<CVideoDecoder> m_videoDecoder;
|
|
NewFrameEvent::Connection m_onNewFrameConnection;
|
|
};
|
|
|
|
#endif
|