Formats minimally release source files based on former clang-format
This commit is contained in:
387 files changed
+37323
-38074
No files matched your search
@@ -11,12 +11,15 @@
|
||||
namespace LtsWebSocket
|
||||
{
|
||||
|
||||
class LTSWEBSOCKETCOMMON_EXPORT AbstractClientMessage
|
||||
{
|
||||
class LTSWEBSOCKETCOMMON_EXPORT AbstractClientMessage
|
||||
{
|
||||
public:
|
||||
AbstractClientMessage(ReplyHandler* client, const QString& type, const int typeId, const QString& uuid,
|
||||
const QJsonValue& data = QJsonValue())
|
||||
: m_type(type), m_typeId(typeId), m_uuid(uuid), m_data(data), m_client(client)
|
||||
AbstractClientMessage(ReplyHandler *client, const QString &type, const int typeId, const QString &uuid, const QJsonValue &data = QJsonValue())
|
||||
: m_type(type)
|
||||
, m_typeId(typeId)
|
||||
, m_uuid(uuid)
|
||||
, m_data(data)
|
||||
, m_client(client)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -26,29 +29,26 @@ class LTSWEBSOCKETCOMMON_EXPORT AbstractClientMessage
|
||||
|
||||
virtual bool hasValidData() const = 0;
|
||||
|
||||
void reply(ReplyMessage* reply)
|
||||
{
|
||||
m_client->addReply(reply);
|
||||
}
|
||||
void reply(ReplyMessage *reply) { m_client->addReply(reply); }
|
||||
|
||||
protected:
|
||||
const QString m_type;
|
||||
const int m_typeId;
|
||||
const QString m_uuid;
|
||||
const QJsonValue m_data;
|
||||
ReplyHandler* m_client;
|
||||
};
|
||||
ReplyHandler *m_client;
|
||||
};
|
||||
|
||||
class LTSWEBSOCKETCOMMON_EXPORT InvalidMessage final : public AbstractClientMessage
|
||||
{
|
||||
class LTSWEBSOCKETCOMMON_EXPORT InvalidMessage final : public AbstractClientMessage
|
||||
{
|
||||
public:
|
||||
explicit InvalidMessage(ReplyHandler* client, const QString& uuid, const QString& errorText);
|
||||
explicit InvalidMessage(ReplyHandler *client, const QString &uuid, const QString &errorText);
|
||||
|
||||
void process() override;
|
||||
bool hasValidData() const override;
|
||||
|
||||
private:
|
||||
QString m_errorText;
|
||||
};
|
||||
};
|
||||
|
||||
} // namespace LtsWebSocket
|
||||
Reference in new issue
Block a user