#ifndef AVRECEIVERDATA_H
#define AVRECEIVERDATA_H
#include <QString>
#include "GlobalDefine.h"

#define MAIN_ZONE_MIN_VOLUME (float)-80.5
#define MAIN_ZONE_MAX_VOLUME (float)16.5

enum eAVReceiverZones
{
    AV_RECEIVER_MAIN_ZONE = 1,
    AV_RECEIVER_ZONE_2,

    AV_RECEIVER_MAX_ZONE
};

class CAvReceiverMainStatus
{
public:

    QByteArray ToByteArray();
    int FromByteArray(QByteArray Data);

    CAvReceiverMainStatus();

    bool mMainPwrStatus;
    bool mMainSleepStatus;
    float mMainVolume;
    bool mIsMute;
    QString mInput;
    QString mProgram;
    bool mSyncZonesVolumes;

    bool mDataValid;
    bool mReceiverOnline;

};

QDataStream &operator<<(QDataStream &out, const CAvReceiverMainStatus &source);
QDataStream &operator>>(QDataStream &in, CAvReceiverMainStatus &dest);
#endif // AVRECEIVERDATA_H
