mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 15:41:34 +08:00
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
#ifndef DockingStateReaderH
|
|
#define DockingStateReaderH
|
|
//============================================================================
|
|
/// \file DockingStateReader.h
|
|
/// \author Uwe Kindler
|
|
/// \date 29.11.2019
|
|
/// \brief Declaration of CDockingStateReader
|
|
//============================================================================
|
|
|
|
//============================================================================
|
|
// INCLUDES
|
|
//============================================================================
|
|
#include <QXmlStreamReader>
|
|
|
|
namespace ads
|
|
{
|
|
|
|
/**
|
|
* Extends QXmlStreamReader with file version information
|
|
*/
|
|
class CDockingStateReader : public QXmlStreamReader
|
|
{
|
|
private:
|
|
int m_FileVersion;
|
|
|
|
public:
|
|
using QXmlStreamReader::QXmlStreamReader;
|
|
|
|
/**
|
|
* Set the file version for this state reader
|
|
*/
|
|
void setFileVersion(int FileVersion);
|
|
|
|
/**
|
|
* Returns the file version set via setFileVersion
|
|
*/
|
|
int fileVersion() const;
|
|
};
|
|
|
|
} // namespace ads
|
|
|
|
//---------------------------------------------------------------------------
|
|
#endif // DockingStateReaderH
|