summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/packetreader.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-11 13:33:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-11 13:33:42 +0000
commit85bd008c039eb1d93894e94fba9d158a42a71a12 (patch)
tree2d72d10759f6928e9e4b960175d2de01b5cf7e12 /protocols/Xfire/src/packetreader.h
parent222802c2986dcaf029fdfb828b7679bdabfa7bb2 (diff)
massive code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@14910 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/packetreader.h')
-rw-r--r--protocols/Xfire/src/packetreader.h44
1 files changed, 21 insertions, 23 deletions
diff --git a/protocols/Xfire/src/packetreader.h b/protocols/Xfire/src/packetreader.h
index 6108500565..1a4d99aded 100644
--- a/protocols/Xfire/src/packetreader.h
+++ b/protocols/Xfire/src/packetreader.h
@@ -25,33 +25,31 @@
#ifndef __PACKETREADER_H
#define __PACKETREADER_H
-#include <vector>
#include "xfirepacketcontent.h"
#include "packetlistener.h"
namespace xfirelib {
- struct PacketListener;
- struct XFirePacket;
-
-class PacketReader {
- public:
- PacketReader(Socket *socket);
- ~PacketReader();
-
- void setSocket(Socket *socket);
- void startListening();
- XFirePacketContent *getPacketContentClass(int packetId);
- void addPacketListener( PacketListener *listener );
- void run();
- private:
- void initPackets();
- void fireListeners( XFirePacket *packet );
-
- Socket *socket;
- std::vector <XFirePacketContent *> *packets;
- std::vector <PacketListener *> *packetListeners;
-};
-
+ struct PacketListener;
+ struct XFirePacket;
+
+ class PacketReader {
+ public:
+ PacketReader(Socket *socket);
+ ~PacketReader();
+
+ void setSocket(Socket *socket);
+ void startListening();
+ XFirePacketContent *getPacketContentClass(int packetId);
+ void addPacketListener( PacketListener *listener );
+ void run();
+ private:
+ void initPackets();
+ void fireListeners( XFirePacket *packet );
+
+ Socket *socket;
+ std::vector <XFirePacketContent *> *packets;
+ std::vector <PacketListener *> *packetListeners;
+ };
};
#endif