summaryrefslogtreecommitdiffstats
path: root/signet/protocol/PacketMaker.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-11-02 01:44:43 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-11-02 01:44:43 +0000
commit7fb827cb9b76990e0c00d9681e7d7411bfde871c (patch)
treea929797513322d388a79f1f8416150687211179e /signet/protocol/PacketMaker.h
parent1f94903f6f0d4eb86c6752d31b8e6cb1956794f7 (diff)
downloadsigen-7fb827cb9b76990e0c00d9681e7d7411bfde871c.tar.gz
sigen-7fb827cb9b76990e0c00d9681e7d7411bfde871c.tar.xz
sigen-7fb827cb9b76990e0c00d9681e7d7411bfde871c.zip
[FIX] Working on Packet structure yet
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@294 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'signet/protocol/PacketMaker.h')
-rw-r--r--signet/protocol/PacketMaker.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/signet/protocol/PacketMaker.h b/signet/protocol/PacketMaker.h
index 4fca41a8..24ab1b17 100644
--- a/signet/protocol/PacketMaker.h
+++ b/signet/protocol/PacketMaker.h
@@ -34,12 +34,14 @@ namespace Protocol
class SIGNET_EXPORT PacketMaker
{
public:
- static void rawData(QIODevice* device, const QByteArray& data);
+ static void rawData(QIODevice* device, const QByteArray& data, const QStringList& receivers = QStringList());
- static void deny(QIODevice* device);
- static void accept(QIODevice* device);
+ static void deny(QIODevice* device, const QStringList& receivers = QStringList());
+ static void accept(QIODevice* device, const QStringList& receivers = QStringList());
- static void challenge(QIODevice* device, const QByteArray& id);
+ static void challenge(QIODevice* device, const QByteArray& id, const QStringList& receivers = QStringList());
+
+ static void message(QIODevice* device, const QString& message, const QStringList& receivers = QStringList());
static Packet unwrap(QIODevice* device);
};