ssl: Use QSslSocket directly to avoid redundant qobject_casts
[quassel.git] / src / common / protocol.h
index 8c2a6a6..ad17e17 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2018 by the Quassel Project                        *
+ *   Copyright (C) 2005-2020 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -32,6 +32,8 @@ namespace Protocol {
 
 const quint32 magic = 0x42b33f00;
 
+const quint32 proxyMagic = 0x50524f58;
+
 enum Type
 {
     InternalProtocol = 0x00,
@@ -206,12 +208,12 @@ struct SyncMessage : public SignalProxyMessage
 struct RpcCall : public SignalProxyMessage
 {
     RpcCall() = default;
-    RpcCall(QByteArray slotName, QVariantList params)
-        : slotName(std::move(slotName))
+    RpcCall(QByteArray signalName, QVariantList params)
+        : signalName(std::move(signalName))
         , params(std::move(params))
     {}
 
-    QByteArray slotName;
+    QByteArray signalName;
     QVariantList params;
 };