SyncMessages.hpp   SyncMessages.hpp 
skipping to change at line 25 skipping to change at line 25
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef SYNCMESSAGES_HPP_ #ifndef SYNCMESSAGES_HPP_
#define SYNCMESSAGES_HPP_ #define SYNCMESSAGES_HPP_
#include "SyncProtocol.hpp" #include "SyncProtocol.hpp"
#include "StelLocation.hpp" #include "StelLocation.hpp"
#include "VecMath.hpp"
namespace SyncProtocol
{
class ErrorMessage : public SyncMessage class ErrorMessage : public SyncMessage
{ {
public: public:
ErrorMessage(); ErrorMessage();
ErrorMessage(const QString& msg); ErrorMessage(const QString& msg);
SyncProtocol::SyncMessageType getMessageType() const Q_DECL_OVERRIDE { return SyncProtocol::ERROR; } SyncProtocol::SyncMessageType getMessageType() const Q_DECL_OVERRIDE { return SyncProtocol::ERROR; }
void serialize(QDataStream& stream) const Q_DECL_OVERRIDE; void serialize(QDataStream& stream) const Q_DECL_OVERRIDE;
bool deserialize(QDataStream& stream, SyncProtocol::tPayloadSize dat aSize) Q_DECL_OVERRIDE; bool deserialize(QDataStream& stream, SyncProtocol::tPayloadSize dat aSize) Q_DECL_OVERRIDE;
skipping to change at line 117 skipping to change at line 121
}; };
class Selection : public SyncMessage class Selection : public SyncMessage
{ {
public: public:
SyncProtocol::SyncMessageType getMessageType() const Q_DECL_OVERRIDE { return SyncProtocol::SELECTION; } SyncProtocol::SyncMessageType getMessageType() const Q_DECL_OVERRIDE { return SyncProtocol::SELECTION; }
void serialize(QDataStream &stream) const Q_DECL_OVERRIDE; void serialize(QDataStream &stream) const Q_DECL_OVERRIDE;
bool deserialize(QDataStream &stream, SyncProtocol::tPayloadSize dat aSize) Q_DECL_OVERRIDE; bool deserialize(QDataStream &stream, SyncProtocol::tPayloadSize dat aSize) Q_DECL_OVERRIDE;
QList<QString> selectedObjectNames; QDebug debugOutput(QDebug dbg) const Q_DECL_OVERRIDE
{
return dbg<<selectedObjects;
}
//list of type/ID pairs
QList< QPair<QString,QString> > selectedObjects;
}; };
class Alive : public SyncMessage class Alive : public SyncMessage
{ {
public: public:
SyncProtocol::SyncMessageType getMessageType() const Q_DECL_OVERRIDE { return SyncProtocol::ALIVE; } SyncProtocol::SyncMessageType getMessageType() const Q_DECL_OVERRIDE { return SyncProtocol::ALIVE; }
}; };
class StelPropertyUpdate : public SyncMessage
{
public:
SyncMessageType getMessageType() const Q_DECL_OVERRIDE { return Sync
Protocol::STELPROPERTY; }
void serialize(QDataStream &stream) const Q_DECL_OVERRIDE;
bool deserialize(QDataStream &stream, SyncProtocol::tPayloadSize dat
aSize) Q_DECL_OVERRIDE;
QDebug debugOutput(QDebug dbg) const Q_DECL_OVERRIDE
{
return dbg<<propId<<value;
}
QString propId;
QVariant value;
};
class View : public SyncMessage
{
public:
SyncMessageType getMessageType() const Q_DECL_OVERRIDE { return Sync
Protocol::VIEW; }
void serialize(QDataStream& stream) const Q_DECL_OVERRIDE;
bool deserialize(QDataStream &stream, tPayloadSize dataSize) Q_DECL_
OVERRIDE;
Vec3d viewAltAz;
};
class Fov : public SyncMessage
{
public:
SyncMessageType getMessageType() const Q_DECL_OVERRIDE { return Sync
Protocol::FOV; }
void serialize(QDataStream& stream) const Q_DECL_OVERRIDE;
bool deserialize(QDataStream &stream, tPayloadSize dataSize) Q_DECL_
OVERRIDE;
double fov;
};
}
#endif #endif
 End of changes. 3 change blocks. 
1 lines changed or deleted 58 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/