Add a new struct to include the stream info and save it in qsettings

This commit is contained in:
jfmcarreira committed 2014-07-06 03:18:31 +01:00
1 parent 4307d1a24c
commit bfa649d5e6
7 files changed
+70 -8

No files matched your search

+23 -2
View File
@@ -38,8 +38,21 @@
namespace plaYUVer
{
class SubWindowHandle;
struct structPlaYUVERStreamInfo
{
QString m_cFilename;
QSize m_cResolution;
Int m_iPelFormat;
UInt m_uiFrameRate;
};
//typedef QVector<PlaYUVERStreamInfo> PlaYUVerRecentFileListInfo;
typedef struct structPlaYUVERStreamInfo PlaYUVerRecentFileListInfo;
typedef struct structPlaYUVERStreamInfo PlaYUVerStreamInfo;
class SubWindowHandle: public QMdiSubWindow
{
Q_OBJECT
@@ -49,6 +62,8 @@ private:
QScrollArea* m_cScrollArea;
ViewArea* m_cViewArea;
PlaYUVerStreamInfo m_sStreamInfo;
PlaYUVerStream* m_pCurrStream;
PlaYUVerFrame* m_pcCurrFrame;
@@ -57,7 +72,6 @@ private:
SubWindowHandle* m_pcReferenceSubWindow;
QString m_cWindowName;
QString m_cCurrFileName;
Bool m_bIsPlaying;
Bool m_bIsModule;
@@ -91,6 +105,11 @@ public:
Void refreshFrame();
Void setCurrFrame( PlaYUVerFrame* pcCurrFrame );
PlaYUVerStreamInfo getStreamInfo()
{
return m_sStreamInfo;
}
PlaYUVerStream* getInputStream()
{
return m_pCurrStream;
@@ -191,7 +210,7 @@ public:
QString currentFile()
{
return m_cCurrFileName;
return m_sStreamInfo.m_cFilename;
}
Bool getIsModule()
@@ -210,4 +229,6 @@ public Q_SLOTS:
} // NAMESPACE
Q_DECLARE_METATYPE(plaYUVer::PlaYUVerRecentFileListInfo);
#endif // __SUBWINDOWHANDLE_H__