diff options
Diffstat (limited to 'protocols/Xfire/src/sendmessagepacket.h')
-rw-r--r-- | protocols/Xfire/src/sendmessagepacket.h | 64 |
1 files changed, 30 insertions, 34 deletions
diff --git a/protocols/Xfire/src/sendmessagepacket.h b/protocols/Xfire/src/sendmessagepacket.h index f54efd778c..7ca5943599 100644 --- a/protocols/Xfire/src/sendmessagepacket.h +++ b/protocols/Xfire/src/sendmessagepacket.h @@ -25,8 +25,6 @@ #ifndef __SENDMESSAGEPACKET_H #define __SENDMESSAGEPACKET_H - - #include "xfiresendpacketcontent.h" #include "variablevalue.h" #include <string.h> @@ -34,44 +32,42 @@ namespace xfirelib {
- class SendMessagePacket : public XFireSendPacketContent {
- public:
- SendMessagePacket() {
- imindex = 0;
- }
- virtual ~SendMessagePacket() { }
-
- void init(Client *client, string username, string message);
- void setSid(const char *sid);
+ class SendMessagePacket : public XFireSendPacketContent {
+ public:
+ SendMessagePacket() {
+ imindex = 0;
+ }
+ virtual ~SendMessagePacket() { }
- XFirePacketContent* newPacket() { return new SendMessagePacket(); }
+ void init(Client *client, string username, string message);
+ void setSid(const char *sid);
- int getPacketId() { return 2; }
- int getPacketContent(char *buf);
- int getPacketAttributeCount() {return 2;};
- int getPacketSize() { return 5024; };
+ XFirePacketContent* newPacket() { return new SendMessagePacket(); }
- /**
- * SID of the user to who the message should be sent.
- */
- char sid[16];
- /**
- * A running counter for each buddy. (will be initialized to 0 by default.. and..
- * shouldn't be a problem to leave it 0)
- */
- long imindex;
- /**
- * Message body to be sent.
- */
- std::string message;
+ int getPacketId() { return 2; }
+ int getPacketContent(char *buf);
+ int getPacketAttributeCount() {return 2;};
+ int getPacketSize() { return 5024; };
- protected:
- void initIMIndex();
+ /**
+ * SID of the user to who the message should be sent.
+ */
+ char sid[16];
+ /**
+ * A running counter for each buddy. (will be initialized to 0 by default.. and..
+ * shouldn't be a problem to leave it 0)
+ */
+ long imindex;
+ /**
+ * Message body to be sent.
+ */
+ std::string message;
- static std::map<std::string,int> imindexes;
-
- };
+ protected:
+ void initIMIndex();
+ static std::map<std::string,int> imindexes;
+ };
}; #endif |