From 0d54e046e0816cccd50b57f264d5558d7ba94a0a Mon Sep 17 00:00:00 2001 From: APTX Date: Mon, 29 Nov 2010 19:49:43 +0100 Subject: [PATCH] Fix line endings --- authcommand.h | 134 +++---- clientqueuedcommandsmodel.cpp | 224 +++++------ clientqueuedcommandsmodel.h | 80 ++-- clientsentcommandsmodel.cpp | 216 +++++------ clientsentcommandsmodel.h | 80 ++-- filecommand.h | 224 +++++------ mylistcommand.cpp | 704 +++++++++++++++++----------------- votecommand.cpp | 312 +++++++-------- votecommand.h | 176 ++++----- 9 files changed, 1075 insertions(+), 1075 deletions(-) diff --git a/authcommand.h b/authcommand.h index 806e5ed..ac44be8 100644 --- a/authcommand.h +++ b/authcommand.h @@ -1,67 +1,67 @@ -#ifndef AUTHCOMMAND_H -#define AUTHCOMMAND_H - -#include "abstractcommand.h" - -namespace AniDBUdpClient { - -class AuthReply; - -class AuthCommand : public AbstractCommand -{ -/* - Q_PROPERTY(QString user READ user WRITE setUser); - Q_PROPERTY(QString pass READ pass WRITE setPass); - Q_PROPERTY(bool compression READ compression WRITE setCompression); -*/ -public: - typedef AuthReply ReplyType; - AuthCommand(); - AuthCommand(const QString &user, const QString &pass); - - QString user() const; - void setUser(const QString &user); - - QString pass() const; - void setPass(const QString &pass); - - bool compression() const; - void setCompression(bool compress); - - - bool waitForResult() const; - bool requiresSession() const; - - Command rawCommand() const; - -private: - QString m_user; - QString m_pass; - - bool m_compression; -}; - -class AuthReply : public AbstractReply -{ - Q_OBJECT - REPLY_DEFINITION_HELPER(Auth) - - Q_PROPERTY(QString sessionId READ sessionId); - Q_PROPERTY(QString errorString READ errorString RESET clearError); - -public: - - QString sessionId() const; - QString errorString() const; - void clearError(); - - void setRawReply(ReplyCode replyCode, const QString &reply); - -private: - QString m_sessionId; - QString m_errorString; -}; - -} // namespace AniDBUdpClient - -#endif // AUTHCOMMAND_H +#ifndef AUTHCOMMAND_H +#define AUTHCOMMAND_H + +#include "abstractcommand.h" + +namespace AniDBUdpClient { + +class AuthReply; + +class AuthCommand : public AbstractCommand +{ +/* + Q_PROPERTY(QString user READ user WRITE setUser); + Q_PROPERTY(QString pass READ pass WRITE setPass); + Q_PROPERTY(bool compression READ compression WRITE setCompression); +*/ +public: + typedef AuthReply ReplyType; + AuthCommand(); + AuthCommand(const QString &user, const QString &pass); + + QString user() const; + void setUser(const QString &user); + + QString pass() const; + void setPass(const QString &pass); + + bool compression() const; + void setCompression(bool compress); + + + bool waitForResult() const; + bool requiresSession() const; + + Command rawCommand() const; + +private: + QString m_user; + QString m_pass; + + bool m_compression; +}; + +class AuthReply : public AbstractReply +{ + Q_OBJECT + REPLY_DEFINITION_HELPER(Auth) + + Q_PROPERTY(QString sessionId READ sessionId); + Q_PROPERTY(QString errorString READ errorString RESET clearError); + +public: + + QString sessionId() const; + QString errorString() const; + void clearError(); + + void setRawReply(ReplyCode replyCode, const QString &reply); + +private: + QString m_sessionId; + QString m_errorString; +}; + +} // namespace AniDBUdpClient + +#endif // AUTHCOMMAND_H diff --git a/clientqueuedcommandsmodel.cpp b/clientqueuedcommandsmodel.cpp index 92a2f0d..58bd1e0 100644 --- a/clientqueuedcommandsmodel.cpp +++ b/clientqueuedcommandsmodel.cpp @@ -1,112 +1,112 @@ -#include "clientqueuedcommandsmodel.h" - -#include "client.h" - -namespace AniDBUdpClient { - -ClientQueuedCommandsModel::ClientQueuedCommandsModel(Client *client, QObject *parent) : - m_client(0), QAbstractTableModel(parent) -{ - setClient(client); -} - -Client *ClientQueuedCommandsModel::client() const -{ - return m_client; -} - -void ClientQueuedCommandsModel::setClient(Client *client) -{ - if (m_client) - disconnect(m_client, 0, this, 0); - - beginResetModel(); - if (client) - { - connect(client, SIGNAL(model_queuedCommandAdded(int)), this, SLOT(commandAdded(int))); - connect(client, SIGNAL(model_queuedCommandRemoved(int)), this, SLOT(commandRemoved(int))); - } - m_client = client; - endResetModel(); -} - -int ClientQueuedCommandsModel::rowCount(const QModelIndex &/*parent*/) const -{ - if (!m_client) - return 0; - return m_client->controlCommandQueue.count() + m_client->commandQueue.count(); -} - -int ClientQueuedCommandsModel::columnCount(const QModelIndex &/*parent*/) const -{ - return 3; -} - -QVariant ClientQueuedCommandsModel::headerData(int section, Qt::Orientation orientation, int role) const -{ - if (role != Qt::DisplayRole) - return QVariant(); - - if (orientation == Qt::Vertical) - { - return section + 1; - } - - switch (section) - { - case 0: - return tr("Control command"); - case 1: - return tr("Command"); - case 2: - return tr("Arguments"); - } - - return QVariant(); -} - -QVariant ClientQueuedCommandsModel::data(const QModelIndex &index, int role) const -{ - if (role != Qt::DisplayRole) - return QVariant(); - - AbstractReply *currentReply; - if (index.row() < m_client->controlCommandQueue.count()) - currentReply = m_client->controlCommandQueue.at(index.row()); - else - currentReply = m_client->commandQueue.at(index.row() - m_client->controlCommandQueue.count()); - - switch (index.column()) - { - case 0: - return currentReply->controlCommand() ? tr("Yes") : tr("No"); - case 1: - return currentReply->command().rawCommand().first; - case 2: - { - Command rawCommand = currentReply->command().rawCommand(); - QString s = QString("(%1) ").arg(rawCommand.second.count()); - for (QVariantMap::const_iterator i = rawCommand.second.constBegin(); i != rawCommand.second.constEnd(); ++i) - { - s += QString("%1=%2; ").arg(i.key(), i.value().toString()); - } - return s; - } - } - return QVariant(); -} - - -void ClientQueuedCommandsModel::commandAdded(int index) -{ - beginInsertRows(QModelIndex(), index, index); - endInsertRows(); -} - -void ClientQueuedCommandsModel::commandRemoved(int index) -{ - beginRemoveRows(QModelIndex(), index, index); - endRemoveRows(); -} - -} // namespace AniDBUdpClient +#include "clientqueuedcommandsmodel.h" + +#include "client.h" + +namespace AniDBUdpClient { + +ClientQueuedCommandsModel::ClientQueuedCommandsModel(Client *client, QObject *parent) : + m_client(0), QAbstractTableModel(parent) +{ + setClient(client); +} + +Client *ClientQueuedCommandsModel::client() const +{ + return m_client; +} + +void ClientQueuedCommandsModel::setClient(Client *client) +{ + if (m_client) + disconnect(m_client, 0, this, 0); + + beginResetModel(); + if (client) + { + connect(client, SIGNAL(model_queuedCommandAdded(int)), this, SLOT(commandAdded(int))); + connect(client, SIGNAL(model_queuedCommandRemoved(int)), this, SLOT(commandRemoved(int))); + } + m_client = client; + endResetModel(); +} + +int ClientQueuedCommandsModel::rowCount(const QModelIndex &/*parent*/) const +{ + if (!m_client) + return 0; + return m_client->controlCommandQueue.count() + m_client->commandQueue.count(); +} + +int ClientQueuedCommandsModel::columnCount(const QModelIndex &/*parent*/) const +{ + return 3; +} + +QVariant ClientQueuedCommandsModel::headerData(int section, Qt::Orientation orientation, int role) const +{ + if (role != Qt::DisplayRole) + return QVariant(); + + if (orientation == Qt::Vertical) + { + return section + 1; + } + + switch (section) + { + case 0: + return tr("Control command"); + case 1: + return tr("Command"); + case 2: + return tr("Arguments"); + } + + return QVariant(); +} + +QVariant ClientQueuedCommandsModel::data(const QModelIndex &index, int role) const +{ + if (role != Qt::DisplayRole) + return QVariant(); + + AbstractReply *currentReply; + if (index.row() < m_client->controlCommandQueue.count()) + currentReply = m_client->controlCommandQueue.at(index.row()); + else + currentReply = m_client->commandQueue.at(index.row() - m_client->controlCommandQueue.count()); + + switch (index.column()) + { + case 0: + return currentReply->controlCommand() ? tr("Yes") : tr("No"); + case 1: + return currentReply->command().rawCommand().first; + case 2: + { + Command rawCommand = currentReply->command().rawCommand(); + QString s = QString("(%1) ").arg(rawCommand.second.count()); + for (QVariantMap::const_iterator i = rawCommand.second.constBegin(); i != rawCommand.second.constEnd(); ++i) + { + s += QString("%1=%2; ").arg(i.key(), i.value().toString()); + } + return s; + } + } + return QVariant(); +} + + +void ClientQueuedCommandsModel::commandAdded(int index) +{ + beginInsertRows(QModelIndex(), index, index); + endInsertRows(); +} + +void ClientQueuedCommandsModel::commandRemoved(int index) +{ + beginRemoveRows(QModelIndex(), index, index); + endRemoveRows(); +} + +} // namespace AniDBUdpClient diff --git a/clientqueuedcommandsmodel.h b/clientqueuedcommandsmodel.h index 304ec47..e6f2c25 100644 --- a/clientqueuedcommandsmodel.h +++ b/clientqueuedcommandsmodel.h @@ -1,40 +1,40 @@ -#ifndef CLIENTQUEUEDCOMMANDSMODEL_H -#define CLIENTQUEUEDCOMMANDSMODEL_H - -#include "anidbudpclient_global.h" - -#include - -namespace AniDBUdpClient { - -class Client; - -class ANIDBUDPCLIENTSHARED_EXPORT ClientQueuedCommandsModel : public QAbstractTableModel -{ - Q_OBJECT -public: - explicit ClientQueuedCommandsModel(Client *client, QObject *parent = 0); - - Client *client() const; - void setClient(Client *client); - - int rowCount(const QModelIndex &parent = QModelIndex()) const; - int columnCount(const QModelIndex &/*parent*/) const; - - QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; - QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; - -signals: - -private slots: - void commandAdded(int index); - void commandRemoved(int index); - -private: - - Client *m_client; -}; - -} // namespace AniDBUdpClient - -#endif // CLIENTQUEUEDCOMMANDSMODEL_H +#ifndef CLIENTQUEUEDCOMMANDSMODEL_H +#define CLIENTQUEUEDCOMMANDSMODEL_H + +#include "anidbudpclient_global.h" + +#include + +namespace AniDBUdpClient { + +class Client; + +class ANIDBUDPCLIENTSHARED_EXPORT ClientQueuedCommandsModel : public QAbstractTableModel +{ + Q_OBJECT +public: + explicit ClientQueuedCommandsModel(Client *client, QObject *parent = 0); + + Client *client() const; + void setClient(Client *client); + + int rowCount(const QModelIndex &parent = QModelIndex()) const; + int columnCount(const QModelIndex &/*parent*/) const; + + QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; + QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; + +signals: + +private slots: + void commandAdded(int index); + void commandRemoved(int index); + +private: + + Client *m_client; +}; + +} // namespace AniDBUdpClient + +#endif // CLIENTQUEUEDCOMMANDSMODEL_H diff --git a/clientsentcommandsmodel.cpp b/clientsentcommandsmodel.cpp index 4603de4..1da5715 100644 --- a/clientsentcommandsmodel.cpp +++ b/clientsentcommandsmodel.cpp @@ -1,108 +1,108 @@ -#include "clientsentcommandsmodel.h" - -#include "client.h" - -namespace AniDBUdpClient { - -ClientSentCommandsModel::ClientSentCommandsModel(Client *client, QObject *parent) : - m_client(0), QAbstractTableModel(parent) -{ - setClient(client); -} - -Client *ClientSentCommandsModel::client() const -{ - return m_client; -} - -void ClientSentCommandsModel::setClient(Client *client) -{ - if (m_client) - disconnect(m_client, 0, this, 0); - - beginResetModel(); - if (client) - { - connect(client, SIGNAL(model_sentCommandAdded(int)), this, SLOT(commandAdded(int))); - connect(client, SIGNAL(model_sentCommandRemoved(int)), this, SLOT(commandRemoved(int))); - } - m_client = client; - endResetModel(); -} - -int ClientSentCommandsModel::rowCount(const QModelIndex &/*parent*/) const -{ - if (!m_client) - return 0; - return m_client->sentCommandOrder.count(); -} - -int ClientSentCommandsModel::columnCount(const QModelIndex &/*parent*/) const -{ - return 3; -} - -QVariant ClientSentCommandsModel::headerData(int section, Qt::Orientation orientation, int role) const -{ - if (role != Qt::DisplayRole) - return QVariant(); - - if (orientation == Qt::Vertical) - { - return section + 1; - } - - switch (section) - { - case 0: - return tr("Time Sent"); - case 1: - return tr("Command"); - case 2: - return tr("Arguments"); - } - - return QVariant(); -} - -QVariant ClientSentCommandsModel::data(const QModelIndex &index, int role) const -{ - if (role != Qt::DisplayRole) - return QVariant(); - - AbstractReply *currentReply = m_client->sentCommands[m_client->sentCommandOrder[index.row()]]; - - switch (index.column()) - { - case 0: - return currentReply->timeSent(); - case 1: - return currentReply->command().rawCommand().first; - case 2: - { - Command rawCommand = currentReply->command().rawCommand(); - QString s = QString("(%1) ").arg(rawCommand.second.count()); - for (QVariantMap::const_iterator i = rawCommand.second.constBegin(); i != rawCommand.second.constEnd(); ++i) - { - s += QString("%1=%2; ").arg(i.key(), i.value().toString()); - } - return s; - } - } - return QVariant(); -} - - -void ClientSentCommandsModel::commandAdded(int index) -{ - beginInsertRows(QModelIndex(), index, index); - endInsertRows(); -} - -void ClientSentCommandsModel::commandRemoved(int index) -{ - beginRemoveRows(QModelIndex(), index, index); - endRemoveRows(); -} - -} // namespace AniDBUdpClient +#include "clientsentcommandsmodel.h" + +#include "client.h" + +namespace AniDBUdpClient { + +ClientSentCommandsModel::ClientSentCommandsModel(Client *client, QObject *parent) : + m_client(0), QAbstractTableModel(parent) +{ + setClient(client); +} + +Client *ClientSentCommandsModel::client() const +{ + return m_client; +} + +void ClientSentCommandsModel::setClient(Client *client) +{ + if (m_client) + disconnect(m_client, 0, this, 0); + + beginResetModel(); + if (client) + { + connect(client, SIGNAL(model_sentCommandAdded(int)), this, SLOT(commandAdded(int))); + connect(client, SIGNAL(model_sentCommandRemoved(int)), this, SLOT(commandRemoved(int))); + } + m_client = client; + endResetModel(); +} + +int ClientSentCommandsModel::rowCount(const QModelIndex &/*parent*/) const +{ + if (!m_client) + return 0; + return m_client->sentCommandOrder.count(); +} + +int ClientSentCommandsModel::columnCount(const QModelIndex &/*parent*/) const +{ + return 3; +} + +QVariant ClientSentCommandsModel::headerData(int section, Qt::Orientation orientation, int role) const +{ + if (role != Qt::DisplayRole) + return QVariant(); + + if (orientation == Qt::Vertical) + { + return section + 1; + } + + switch (section) + { + case 0: + return tr("Time Sent"); + case 1: + return tr("Command"); + case 2: + return tr("Arguments"); + } + + return QVariant(); +} + +QVariant ClientSentCommandsModel::data(const QModelIndex &index, int role) const +{ + if (role != Qt::DisplayRole) + return QVariant(); + + AbstractReply *currentReply = m_client->sentCommands[m_client->sentCommandOrder[index.row()]]; + + switch (index.column()) + { + case 0: + return currentReply->timeSent(); + case 1: + return currentReply->command().rawCommand().first; + case 2: + { + Command rawCommand = currentReply->command().rawCommand(); + QString s = QString("(%1) ").arg(rawCommand.second.count()); + for (QVariantMap::const_iterator i = rawCommand.second.constBegin(); i != rawCommand.second.constEnd(); ++i) + { + s += QString("%1=%2; ").arg(i.key(), i.value().toString()); + } + return s; + } + } + return QVariant(); +} + + +void ClientSentCommandsModel::commandAdded(int index) +{ + beginInsertRows(QModelIndex(), index, index); + endInsertRows(); +} + +void ClientSentCommandsModel::commandRemoved(int index) +{ + beginRemoveRows(QModelIndex(), index, index); + endRemoveRows(); +} + +} // namespace AniDBUdpClient diff --git a/clientsentcommandsmodel.h b/clientsentcommandsmodel.h index 73ac46f..3a4a2db 100644 --- a/clientsentcommandsmodel.h +++ b/clientsentcommandsmodel.h @@ -1,40 +1,40 @@ -#ifndef CLIENTCOMMANDMODEL_H -#define CLIENTCOMMANDMODEL_H - -#include "anidbudpclient_global.h" - -#include - -namespace AniDBUdpClient { - -class Client; - -class ANIDBUDPCLIENTSHARED_EXPORT ClientSentCommandsModel : public QAbstractTableModel -{ - Q_OBJECT -public: - explicit ClientSentCommandsModel(Client *client = 0, QObject *parent = 0); - - Client *client() const; - void setClient(Client *client); - - int rowCount(const QModelIndex &parent = QModelIndex()) const; - int columnCount(const QModelIndex &/*parent*/) const; - - QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; - QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; - -signals: - -private slots: - void commandAdded(int index); - void commandRemoved(int index); - -private: - - Client *m_client; -}; - -} // namespace AniDBUdpClient - -#endif // CLIENTCOMMANDMODEL_H +#ifndef CLIENTCOMMANDMODEL_H +#define CLIENTCOMMANDMODEL_H + +#include "anidbudpclient_global.h" + +#include + +namespace AniDBUdpClient { + +class Client; + +class ANIDBUDPCLIENTSHARED_EXPORT ClientSentCommandsModel : public QAbstractTableModel +{ + Q_OBJECT +public: + explicit ClientSentCommandsModel(Client *client = 0, QObject *parent = 0); + + Client *client() const; + void setClient(Client *client); + + int rowCount(const QModelIndex &parent = QModelIndex()) const; + int columnCount(const QModelIndex &/*parent*/) const; + + QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; + QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; + +signals: + +private slots: + void commandAdded(int index); + void commandRemoved(int index); + +private: + + Client *m_client; +}; + +} // namespace AniDBUdpClient + +#endif // CLIENTCOMMANDMODEL_H diff --git a/filecommand.h b/filecommand.h index dabc761..b3e80f4 100644 --- a/filecommand.h +++ b/filecommand.h @@ -1,112 +1,112 @@ -#ifndef FILECOMMAND_H -#define FILECOMMAND_H - -#include "anidbudpclient_global.h" -#include "abstractcommand.h" - -#include - -namespace AniDBUdpClient { - -class FileReply; - -class ANIDBUDPCLIENTSHARED_EXPORT FileCommand : public AbstractCommand -{ -/* - Q_PROPERTY(int fid READ fid WRITE setFid); - - Q_PROPERTY(QByteArray ed2k READ ed2k WRITE setEd2k); - Q_PROPERTY(qint64 size READ size WRITE setSize); - - Q_PROPERTY(QString aname READ aname WRITE setAname); - Q_PROPERTY(int aid READ aid WRITE setAid); - Q_PROPERTY(QString gname READ gname WRITE setGname); - Q_PROPERTY(int gid READ gid WRITE setGid); - Q_PROPERTY(int epno READ epno WRITE setEpno); - - Q_PROPERTY(FileFlags fmask READ fmask WRITE setFmask); - Q_PROPERTY(FileAnimeFlags amask READ amask WRITE setAmask); -*/ -public: - typedef FileReply ReplyType; - FileCommand(); - FileCommand(int fid, FileFlags fmask = FileFlags(0), FileAnimeFlags = FileAnimeFlags(0)); - FileCommand(const QByteArray &ed2k, qint64 size, FileFlags fmask = FileFlags(0), FileAnimeFlags = FileAnimeFlags(0)); - FileCommand(const QString &aname, const QString &gname, int epno, FileFlags fmask = FileFlags(0), FileAnimeFlags = FileAnimeFlags(0)); - FileCommand(const QString &aname, int gid, int epno, FileFlags fmask = FileFlags(0), FileAnimeFlags = FileAnimeFlags(0)); - FileCommand(int aid, const QString &gname, int epno, FileFlags fmask = FileFlags(0), FileAnimeFlags = FileAnimeFlags(0)); - FileCommand(int aid, int gid, int epno, FileFlags fmask = FileFlags(0), FileAnimeFlags = FileAnimeFlags(0)); - - int fid() const; - void setFid(int fid); - - QByteArray ed2k() const; - void setEd2k(const QByteArray &ed2k); - qint64 size() const; - void setSize(qint64 size); - - QString aname() const; - void setAname(const QString &aname); - int aid() const; - void setAid(int aid); - QString gname() const; - void setGname(const QString &gname); - int gid() const; - void setGid(int gid); - int epno() const; - void setEpno(int epno); - - FileFlags fmask() const; - void setFmask(FileFlags fmask); - FileAnimeFlags amask() const; - void setAmask(FileAnimeFlags amask); - - bool waitForResult() const; - Command rawCommand() const; - -private: - void init(); - - int m_fid; - - QByteArray m_ed2k; - qint64 m_size; - - QString m_aname; - int m_aid; - QString m_gname; - int m_gid; - int m_epno; - - FileFlags m_fmask; - FileAnimeFlags m_amask; -}; - -class ANIDBUDPCLIENTSHARED_EXPORT FileReply : public AbstractReply -{ - Q_OBJECT - REPLY_DEFINITION_HELPER2(File) - - Q_PROPERTY(int fid READ fid); - -public: - int fid() const; - - QVariant value(FileFlags f) const; - QVariant value(FileAnimeFlags f) const; - - void setRawReply(ReplyCode replyCode, const QString &reply); - -private: - void readReplyData(const QString &reply); - void init(); - - int m_fid; - - QMap fileFlagData; - QMap fileAnimeFlagData; -}; - -} // namespace AniDBUdpClient - -#endif // FILECOMMAND_H +#ifndef FILECOMMAND_H +#define FILECOMMAND_H + +#include "anidbudpclient_global.h" +#include "abstractcommand.h" + +#include + +namespace AniDBUdpClient { + +class FileReply; + +class ANIDBUDPCLIENTSHARED_EXPORT FileCommand : public AbstractCommand +{ +/* + Q_PROPERTY(int fid READ fid WRITE setFid); + + Q_PROPERTY(QByteArray ed2k READ ed2k WRITE setEd2k); + Q_PROPERTY(qint64 size READ size WRITE setSize); + + Q_PROPERTY(QString aname READ aname WRITE setAname); + Q_PROPERTY(int aid READ aid WRITE setAid); + Q_PROPERTY(QString gname READ gname WRITE setGname); + Q_PROPERTY(int gid READ gid WRITE setGid); + Q_PROPERTY(int epno READ epno WRITE setEpno); + + Q_PROPERTY(FileFlags fmask READ fmask WRITE setFmask); + Q_PROPERTY(FileAnimeFlags amask READ amask WRITE setAmask); +*/ +public: + typedef FileReply ReplyType; + FileCommand(); + FileCommand(int fid, FileFlags fmask = FileFlags(0), FileAnimeFlags = FileAnimeFlags(0)); + FileCommand(const QByteArray &ed2k, qint64 size, FileFlags fmask = FileFlags(0), FileAnimeFlags = FileAnimeFlags(0)); + FileCommand(const QString &aname, const QString &gname, int epno, FileFlags fmask = FileFlags(0), FileAnimeFlags = FileAnimeFlags(0)); + FileCommand(const QString &aname, int gid, int epno, FileFlags fmask = FileFlags(0), FileAnimeFlags = FileAnimeFlags(0)); + FileCommand(int aid, const QString &gname, int epno, FileFlags fmask = FileFlags(0), FileAnimeFlags = FileAnimeFlags(0)); + FileCommand(int aid, int gid, int epno, FileFlags fmask = FileFlags(0), FileAnimeFlags = FileAnimeFlags(0)); + + int fid() const; + void setFid(int fid); + + QByteArray ed2k() const; + void setEd2k(const QByteArray &ed2k); + qint64 size() const; + void setSize(qint64 size); + + QString aname() const; + void setAname(const QString &aname); + int aid() const; + void setAid(int aid); + QString gname() const; + void setGname(const QString &gname); + int gid() const; + void setGid(int gid); + int epno() const; + void setEpno(int epno); + + FileFlags fmask() const; + void setFmask(FileFlags fmask); + FileAnimeFlags amask() const; + void setAmask(FileAnimeFlags amask); + + bool waitForResult() const; + Command rawCommand() const; + +private: + void init(); + + int m_fid; + + QByteArray m_ed2k; + qint64 m_size; + + QString m_aname; + int m_aid; + QString m_gname; + int m_gid; + int m_epno; + + FileFlags m_fmask; + FileAnimeFlags m_amask; +}; + +class ANIDBUDPCLIENTSHARED_EXPORT FileReply : public AbstractReply +{ + Q_OBJECT + REPLY_DEFINITION_HELPER2(File) + + Q_PROPERTY(int fid READ fid); + +public: + int fid() const; + + QVariant value(FileFlags f) const; + QVariant value(FileAnimeFlags f) const; + + void setRawReply(ReplyCode replyCode, const QString &reply); + +private: + void readReplyData(const QString &reply); + void init(); + + int m_fid; + + QMap fileFlagData; + QMap fileAnimeFlagData; +}; + +} // namespace AniDBUdpClient + +#endif // FILECOMMAND_H diff --git a/mylistcommand.cpp b/mylistcommand.cpp index a37bef1..3a98924 100644 --- a/mylistcommand.cpp +++ b/mylistcommand.cpp @@ -1,352 +1,352 @@ -#include "mylistcommand.h" - -#include - -namespace AniDBUdpClient { - -MyListCommand::MyListCommand() : AbstractCommand() -{ - init(); -} - -MyListCommand::MyListCommand(int lid) : AbstractCommand() -{ - init(); - m_lid = lid; -} - -MyListCommand::MyListCommand(int fid, bool isFid) : AbstractCommand() -{ - Q_UNUSED(isFid); - init(); - m_fid = fid; -} - -MyListCommand::MyListCommand(const QByteArray &ed2k, qint64 size) : AbstractCommand() -{ - init(); - m_ed2k = ed2k; - m_size = size; -} - -MyListCommand::MyListCommand(const QString &aname, const QString &gname, int epno) : AbstractCommand() -{ - init(); - m_aname = aname; - m_gname = gname; - m_epno = epno; -} - -MyListCommand::MyListCommand(const QString &aname, int gid, int epno) : AbstractCommand() -{ - init(); - m_aname = aname; - m_gid = gid; - m_epno = epno; -} - -MyListCommand::MyListCommand(int aid, const QString &gname, int epno) : AbstractCommand() -{ - init(); - m_aid = aid; - m_gname = gname; - m_epno = epno; -} - -MyListCommand::MyListCommand(int aid, int gid, int epno) : AbstractCommand() -{ - init(); - m_aid = aid; - m_gid = gid; - m_epno = epno; -} - -int MyListCommand::lid() const -{ - return m_lid; -} - -void MyListCommand::setLid(int lid) -{ - m_lid = lid; -} - -int MyListCommand::fid() const -{ - return m_fid; -} - -void MyListCommand::setFid(int fid) -{ - m_fid = fid; -} - -QByteArray MyListCommand::ed2k() const -{ - return m_ed2k; -} - -void MyListCommand::setEd2k(const QByteArray &ed2k) -{ - m_ed2k = ed2k; -} - -qint64 MyListCommand::size() const -{ - return m_size; -} - -void MyListCommand::setSize(qint64 size) -{ - m_size = size; -} - -QString MyListCommand::aname() const -{ - return m_aname; -} - -void MyListCommand::setAname(const QString &aname) -{ - m_aname = aname; -} - -int MyListCommand::aid() const -{ - return m_aid; -} - -void MyListCommand::setAid(int aid) -{ - m_aid = aid; -} - -QString MyListCommand::gname() const -{ - return m_gname; -} - -void MyListCommand::setGname(const QString &gname) -{ - m_gname = gname; -} - -int MyListCommand::gid() const -{ - return m_gid; -} - -void MyListCommand::setGid(int gid) -{ - m_gid = gid; -} - - -int MyListCommand::epno() const -{ - return m_epno; -} - -void MyListCommand::setEpno(int epno) -{ - m_epno = epno; -} - -bool MyListCommand::isValid() const -{ - return m_lid || m_fid || m_aid - || !m_aname.isEmpty() - || (!m_ed2k.isEmpty() && m_size); -} - -bool MyListCommand::waitForResult() const -{ - return true; -} - -Command MyListCommand::rawCommand() const -{ - Command cmd; - - cmd.first = "MYLIST"; - - if (m_lid) - { - cmd.second["lid"] = m_lid; - } - else if (m_fid) - { - cmd.second["fid"] = m_fid; - } - else if (!m_ed2k.isEmpty() && m_size) - { - cmd.second["ed2k"] = m_ed2k; - cmd.second["size"] = m_size; - } - else if (!m_aname.isEmpty()) - { - cmd.second["aname"] = m_aname; - if (!m_gname.isEmpty() && m_epno) - { - cmd.second["gname"] = m_gname; - cmd.second["epno"] = m_epno; - } - else if (m_gid && m_epno) - { - cmd.second["gid"] = m_gid; - cmd.second["epno"] = m_epno; - } - } - else if (m_aid) - { - cmd.second["aid"] = m_aid; - if (!m_gname.isEmpty() && m_epno) - { - cmd.second["gname"] = m_gname; - cmd.second["epno"] = m_epno; - } - else if (m_gid && m_epno) - { - cmd.second["gid"] = m_gid; - cmd.second["epno"] = m_epno; - } - } - else - { - // TODO WTF NOW?!? - } - return cmd; -} - -void MyListCommand::init() -{ - m_lid = 0; - m_fid = 0; - m_aid = 0; - m_gid = 0; - - m_size = 0; - m_epno = 0; -} - - -// === - -int MyListReply::lid() const -{ - return m_lid; -} - -int MyListReply::fid() const -{ - return m_fid; -} - -int MyListReply::aid() const -{ - return m_aid; -} - - -int MyListReply::gid() const -{ - return m_gid; -} - - -int MyListReply::eid() const -{ - return m_eid; -} - -QDateTime MyListReply::date() const -{ - return m_date; -} - -State MyListReply::state() const -{ - return m_state; -} - -QDateTime MyListReply::viewDate() const -{ - return m_viewDate; -} - -QString MyListReply::storage() const -{ - return m_storage; -} - -QString MyListReply::source() const -{ - return m_source; -} - -QString MyListReply::other() const -{ - return m_other; -} - -FileState MyListReply::fileState() const -{ - return m_fileState; -} - -QStringList MyListReply::multipleEntries() const -{ - return m_multipleEntries; -} - -void MyListReply::setRawReply(ReplyCode replyCode, const QString &reply) -{ - AbstractReply::setRawReply(replyCode, reply); - - switch (replyCode) - { - case MYLIST: - { - QStringList parts = reply.mid(reply.indexOf("\n")).split('|', QString::KeepEmptyParts); - bool ok; - m_lid = parts[0].toInt(&ok, 10); - m_fid = parts[1].toInt(&ok, 10); - m_eid = parts[2].toInt(&ok, 10); - m_aid = parts[3].toInt(&ok, 10); - m_gid = parts[4].toInt(&ok, 10); - m_date = QDateTime::fromTime_t(parts[5].toUInt(&ok, 10)); - m_state = State(parts[6].toInt(&ok, 10)); - m_viewDate = QDateTime::fromTime_t(parts[7].toUInt(&ok, 10)); - m_storage = parts[8]; - m_source = parts[9]; - m_other = parts[10]; - m_fileState = FileState(parts[11].toInt(&ok, 10)); - emit replyReady(true); - } - break; - case MULTIPLE_MYLIST_ENTRIES: - { - m_multipleEntries = reply.mid(reply.indexOf("\n")).split('|', QString::KeepEmptyParts); - emit replyReady(true); - } - break; - case NO_SUCH_ENTRY: - default: - emit replyReady(false); - break; - } -} - -void MyListReply::init() -{ - m_lid = 0; - m_fid = 0; - m_aid = 0; - m_gid = 0; - m_eid = 0; - - m_state = State(0); - m_fileState = FileState(0); -} - -} // namespace AniDBUdpClient +#include "mylistcommand.h" + +#include + +namespace AniDBUdpClient { + +MyListCommand::MyListCommand() : AbstractCommand() +{ + init(); +} + +MyListCommand::MyListCommand(int lid) : AbstractCommand() +{ + init(); + m_lid = lid; +} + +MyListCommand::MyListCommand(int fid, bool isFid) : AbstractCommand() +{ + Q_UNUSED(isFid); + init(); + m_fid = fid; +} + +MyListCommand::MyListCommand(const QByteArray &ed2k, qint64 size) : AbstractCommand() +{ + init(); + m_ed2k = ed2k; + m_size = size; +} + +MyListCommand::MyListCommand(const QString &aname, const QString &gname, int epno) : AbstractCommand() +{ + init(); + m_aname = aname; + m_gname = gname; + m_epno = epno; +} + +MyListCommand::MyListCommand(const QString &aname, int gid, int epno) : AbstractCommand() +{ + init(); + m_aname = aname; + m_gid = gid; + m_epno = epno; +} + +MyListCommand::MyListCommand(int aid, const QString &gname, int epno) : AbstractCommand() +{ + init(); + m_aid = aid; + m_gname = gname; + m_epno = epno; +} + +MyListCommand::MyListCommand(int aid, int gid, int epno) : AbstractCommand() +{ + init(); + m_aid = aid; + m_gid = gid; + m_epno = epno; +} + +int MyListCommand::lid() const +{ + return m_lid; +} + +void MyListCommand::setLid(int lid) +{ + m_lid = lid; +} + +int MyListCommand::fid() const +{ + return m_fid; +} + +void MyListCommand::setFid(int fid) +{ + m_fid = fid; +} + +QByteArray MyListCommand::ed2k() const +{ + return m_ed2k; +} + +void MyListCommand::setEd2k(const QByteArray &ed2k) +{ + m_ed2k = ed2k; +} + +qint64 MyListCommand::size() const +{ + return m_size; +} + +void MyListCommand::setSize(qint64 size) +{ + m_size = size; +} + +QString MyListCommand::aname() const +{ + return m_aname; +} + +void MyListCommand::setAname(const QString &aname) +{ + m_aname = aname; +} + +int MyListCommand::aid() const +{ + return m_aid; +} + +void MyListCommand::setAid(int aid) +{ + m_aid = aid; +} + +QString MyListCommand::gname() const +{ + return m_gname; +} + +void MyListCommand::setGname(const QString &gname) +{ + m_gname = gname; +} + +int MyListCommand::gid() const +{ + return m_gid; +} + +void MyListCommand::setGid(int gid) +{ + m_gid = gid; +} + + +int MyListCommand::epno() const +{ + return m_epno; +} + +void MyListCommand::setEpno(int epno) +{ + m_epno = epno; +} + +bool MyListCommand::isValid() const +{ + return m_lid || m_fid || m_aid + || !m_aname.isEmpty() + || (!m_ed2k.isEmpty() && m_size); +} + +bool MyListCommand::waitForResult() const +{ + return true; +} + +Command MyListCommand::rawCommand() const +{ + Command cmd; + + cmd.first = "MYLIST"; + + if (m_lid) + { + cmd.second["lid"] = m_lid; + } + else if (m_fid) + { + cmd.second["fid"] = m_fid; + } + else if (!m_ed2k.isEmpty() && m_size) + { + cmd.second["ed2k"] = m_ed2k; + cmd.second["size"] = m_size; + } + else if (!m_aname.isEmpty()) + { + cmd.second["aname"] = m_aname; + if (!m_gname.isEmpty() && m_epno) + { + cmd.second["gname"] = m_gname; + cmd.second["epno"] = m_epno; + } + else if (m_gid && m_epno) + { + cmd.second["gid"] = m_gid; + cmd.second["epno"] = m_epno; + } + } + else if (m_aid) + { + cmd.second["aid"] = m_aid; + if (!m_gname.isEmpty() && m_epno) + { + cmd.second["gname"] = m_gname; + cmd.second["epno"] = m_epno; + } + else if (m_gid && m_epno) + { + cmd.second["gid"] = m_gid; + cmd.second["epno"] = m_epno; + } + } + else + { + // TODO WTF NOW?!? + } + return cmd; +} + +void MyListCommand::init() +{ + m_lid = 0; + m_fid = 0; + m_aid = 0; + m_gid = 0; + + m_size = 0; + m_epno = 0; +} + + +// === + +int MyListReply::lid() const +{ + return m_lid; +} + +int MyListReply::fid() const +{ + return m_fid; +} + +int MyListReply::aid() const +{ + return m_aid; +} + + +int MyListReply::gid() const +{ + return m_gid; +} + + +int MyListReply::eid() const +{ + return m_eid; +} + +QDateTime MyListReply::date() const +{ + return m_date; +} + +State MyListReply::state() const +{ + return m_state; +} + +QDateTime MyListReply::viewDate() const +{ + return m_viewDate; +} + +QString MyListReply::storage() const +{ + return m_storage; +} + +QString MyListReply::source() const +{ + return m_source; +} + +QString MyListReply::other() const +{ + return m_other; +} + +FileState MyListReply::fileState() const +{ + return m_fileState; +} + +QStringList MyListReply::multipleEntries() const +{ + return m_multipleEntries; +} + +void MyListReply::setRawReply(ReplyCode replyCode, const QString &reply) +{ + AbstractReply::setRawReply(replyCode, reply); + + switch (replyCode) + { + case MYLIST: + { + QStringList parts = reply.mid(reply.indexOf("\n")).split('|', QString::KeepEmptyParts); + bool ok; + m_lid = parts[0].toInt(&ok, 10); + m_fid = parts[1].toInt(&ok, 10); + m_eid = parts[2].toInt(&ok, 10); + m_aid = parts[3].toInt(&ok, 10); + m_gid = parts[4].toInt(&ok, 10); + m_date = QDateTime::fromTime_t(parts[5].toUInt(&ok, 10)); + m_state = State(parts[6].toInt(&ok, 10)); + m_viewDate = QDateTime::fromTime_t(parts[7].toUInt(&ok, 10)); + m_storage = parts[8]; + m_source = parts[9]; + m_other = parts[10]; + m_fileState = FileState(parts[11].toInt(&ok, 10)); + emit replyReady(true); + } + break; + case MULTIPLE_MYLIST_ENTRIES: + { + m_multipleEntries = reply.mid(reply.indexOf("\n")).split('|', QString::KeepEmptyParts); + emit replyReady(true); + } + break; + case NO_SUCH_ENTRY: + default: + emit replyReady(false); + break; + } +} + +void MyListReply::init() +{ + m_lid = 0; + m_fid = 0; + m_aid = 0; + m_gid = 0; + m_eid = 0; + + m_state = State(0); + m_fileState = FileState(0); +} + +} // namespace AniDBUdpClient diff --git a/votecommand.cpp b/votecommand.cpp index 1bb28c6..5de0082 100644 --- a/votecommand.cpp +++ b/votecommand.cpp @@ -1,156 +1,156 @@ -#include "votecommand.h" - -namespace AniDBUdpClient { - -VoteCommand::VoteCommand() -{ - init(); -} - -VoteCommand::VoteCommand(VoteType voteType, int id, int value, int epno) -{ - init(); - m_voteType = voteType; - m_id = id; - m_value = value; - m_epno = epno; -} - -VoteCommand::VoteCommand(VoteType voteType, const QString &name, int value, int epno) -{ - init(); - m_voteType = voteType; - m_name = name; - m_value = value; - m_epno = epno; -} - -VoteCommand::VoteType VoteCommand::voteType() const -{ - return m_voteType; -} - -void VoteCommand::setVoteType(VoteType voteType) -{ - m_voteType = voteType; -} - - -int VoteCommand::value() const -{ - return m_value; -} - -void VoteCommand::setValue(int value) -{ - m_value = value; -} - - -int VoteCommand::id() const -{ - return m_id; -} - -void VoteCommand::setId(int id) -{ - m_id = id; -} - - -QString VoteCommand::name() const -{ - return m_name; -} - -void VoteCommand::setName(const QString &name) -{ - m_name = name; -} - - -int VoteCommand::epno() const -{ - return m_epno; -} - -void VoteCommand::setEpno(int epno) -{ - m_epno = epno; -} - - -bool VoteCommand::waitForResult() const -{ - return true; -} - -Command VoteCommand::rawCommand() const -{ - Command cmd; - - cmd.first = "VOTE"; - - cmd.second["type"] = m_voteType; - - if (m_id != 0) - cmd.second["id"] = m_id; - else if (!m_name.isEmpty()) - cmd.second["name"] = m_name; - else - cmd.second["id"] = 0; - - int value = (m_value > 0 && m_value < 100) - || m_value > 1000 ? 0 : m_value; - - cmd.second["value"] = value; - - if (m_epno != 0) - cmd.second["epno"] = m_epno; - - return cmd; -} - -void VoteCommand::init() -{ - m_voteType = AnimeVote; - m_id = 0; - m_value = 0; - m_epno = 0; -} - -// === - -QString VoteReply::entityName() const -{ - return m_entityName; -} - -int VoteReply::value() const -{ - return m_value; -} - -AniDBUdpClient::VoteCommand::VoteType VoteReply::voteType() const -{ - return m_voteType; -} - -int VoteReply::entityId() const -{ - return m_entityId; -} - -void VoteReply::setRawReply(ReplyCode replyCode, const QString &reply) -{ - AbstractReply::setRawReply(replyCode, reply); -} - -void VoteReply::init() -{ - m_value = 0; - m_voteType = VoteCommand::AnimeVote; - m_entityId = 0; -} - -} // namespace AniDBUdpClient +#include "votecommand.h" + +namespace AniDBUdpClient { + +VoteCommand::VoteCommand() +{ + init(); +} + +VoteCommand::VoteCommand(VoteType voteType, int id, int value, int epno) +{ + init(); + m_voteType = voteType; + m_id = id; + m_value = value; + m_epno = epno; +} + +VoteCommand::VoteCommand(VoteType voteType, const QString &name, int value, int epno) +{ + init(); + m_voteType = voteType; + m_name = name; + m_value = value; + m_epno = epno; +} + +VoteCommand::VoteType VoteCommand::voteType() const +{ + return m_voteType; +} + +void VoteCommand::setVoteType(VoteType voteType) +{ + m_voteType = voteType; +} + + +int VoteCommand::value() const +{ + return m_value; +} + +void VoteCommand::setValue(int value) +{ + m_value = value; +} + + +int VoteCommand::id() const +{ + return m_id; +} + +void VoteCommand::setId(int id) +{ + m_id = id; +} + + +QString VoteCommand::name() const +{ + return m_name; +} + +void VoteCommand::setName(const QString &name) +{ + m_name = name; +} + + +int VoteCommand::epno() const +{ + return m_epno; +} + +void VoteCommand::setEpno(int epno) +{ + m_epno = epno; +} + + +bool VoteCommand::waitForResult() const +{ + return true; +} + +Command VoteCommand::rawCommand() const +{ + Command cmd; + + cmd.first = "VOTE"; + + cmd.second["type"] = m_voteType; + + if (m_id != 0) + cmd.second["id"] = m_id; + else if (!m_name.isEmpty()) + cmd.second["name"] = m_name; + else + cmd.second["id"] = 0; + + int value = (m_value > 0 && m_value < 100) + || m_value > 1000 ? 0 : m_value; + + cmd.second["value"] = value; + + if (m_epno != 0) + cmd.second["epno"] = m_epno; + + return cmd; +} + +void VoteCommand::init() +{ + m_voteType = AnimeVote; + m_id = 0; + m_value = 0; + m_epno = 0; +} + +// === + +QString VoteReply::entityName() const +{ + return m_entityName; +} + +int VoteReply::value() const +{ + return m_value; +} + +AniDBUdpClient::VoteCommand::VoteType VoteReply::voteType() const +{ + return m_voteType; +} + +int VoteReply::entityId() const +{ + return m_entityId; +} + +void VoteReply::setRawReply(ReplyCode replyCode, const QString &reply) +{ + AbstractReply::setRawReply(replyCode, reply); +} + +void VoteReply::init() +{ + m_value = 0; + m_voteType = VoteCommand::AnimeVote; + m_entityId = 0; +} + +} // namespace AniDBUdpClient diff --git a/votecommand.h b/votecommand.h index f115382..8e8e78f 100644 --- a/votecommand.h +++ b/votecommand.h @@ -1,88 +1,88 @@ -#ifndef VOTECOMMAND_H -#define VOTECOMMAND_H - -#include "abstractcommand.h" - -namespace AniDBUdpClient { - -class VoteReply; - -class ANIDBUDPCLIENTSHARED_EXPORT VoteCommand : public AbstractCommand -{ - -public: - - enum VoteType - { - AnimeVote = 1, - AnimeTempVote = 2, - GroupVote = 3, - }; - - typedef VoteReply ReplyType; - - VoteCommand(); - VoteCommand(VoteType type, int id, int value, int epno = 0); - VoteCommand(VoteType type, const QString &name, int value, int epno = 0); - - VoteType voteType() const; - void setVoteType(VoteType voteType); - - int value() const; - void setValue(int value); - - int id() const; - void setId(int id); - - QString name() const; - void setName(const QString &name); - - int epno() const; - void setEpno(int epno); - - bool waitForResult() const; - Command rawCommand() const; - -private: - void init(); - - VoteType m_voteType; - int m_value; - - int m_id; - QString m_name; - int m_epno; -}; - -class ANIDBUDPCLIENTSHARED_EXPORT VoteReply : public AbstractReply -{ - Q_OBJECT - REPLY_DEFINITION_HELPER2(Vote) - - Q_PROPERTY(QString entityName READ entityName); - Q_PROPERTY(int value READ value); -// Q_PROPERTY(AniDBUdpClient::VoteCommand::VoteType voteType READ voteType); - Q_PROPERTY(int entityId READ entityId); - -public: - QString entityName() const; - int value() const; - AniDBUdpClient::VoteCommand::VoteType voteType() const; - int entityId() const; - - void setRawReply(ReplyCode replyCode, const QString &reply); - -private: - void init(); - - QString m_entityName; - int m_value; - VoteCommand::VoteType m_voteType; - int m_entityId; - -}; - - -} // namespace AniDBUdpClient - -#endif // VOTECOMMAND_H +#ifndef VOTECOMMAND_H +#define VOTECOMMAND_H + +#include "abstractcommand.h" + +namespace AniDBUdpClient { + +class VoteReply; + +class ANIDBUDPCLIENTSHARED_EXPORT VoteCommand : public AbstractCommand +{ + +public: + + enum VoteType + { + AnimeVote = 1, + AnimeTempVote = 2, + GroupVote = 3, + }; + + typedef VoteReply ReplyType; + + VoteCommand(); + VoteCommand(VoteType type, int id, int value, int epno = 0); + VoteCommand(VoteType type, const QString &name, int value, int epno = 0); + + VoteType voteType() const; + void setVoteType(VoteType voteType); + + int value() const; + void setValue(int value); + + int id() const; + void setId(int id); + + QString name() const; + void setName(const QString &name); + + int epno() const; + void setEpno(int epno); + + bool waitForResult() const; + Command rawCommand() const; + +private: + void init(); + + VoteType m_voteType; + int m_value; + + int m_id; + QString m_name; + int m_epno; +}; + +class ANIDBUDPCLIENTSHARED_EXPORT VoteReply : public AbstractReply +{ + Q_OBJECT + REPLY_DEFINITION_HELPER2(Vote) + + Q_PROPERTY(QString entityName READ entityName); + Q_PROPERTY(int value READ value); +// Q_PROPERTY(AniDBUdpClient::VoteCommand::VoteType voteType READ voteType); + Q_PROPERTY(int entityId READ entityId); + +public: + QString entityName() const; + int value() const; + AniDBUdpClient::VoteCommand::VoteType voteType() const; + int entityId() const; + + void setRawReply(ReplyCode replyCode, const QString &reply); + +private: + void init(); + + QString m_entityName; + int m_value; + VoteCommand::VoteType m_voteType; + int m_entityId; + +}; + + +} // namespace AniDBUdpClient + +#endif // VOTECOMMAND_H -- 2.52.0