summaryrefslogtreecommitdiffstats
path: root/src/core/pvsChatMsg.h
diff options
context:
space:
mode:
authorSebastian2010-05-12 19:42:27 +0200
committerSebastian2010-05-12 19:42:27 +0200
commitce3329047d378a14006ce74ec273ac59e3375303 (patch)
tree782430f270b4c7aca1b35d5b7813518e3797c555 /src/core/pvsChatMsg.h
downloadpvs-ce3329047d378a14006ce74ec273ac59e3375303.tar.gz
pvs-ce3329047d378a14006ce74ec273ac59e3375303.tar.xz
pvs-ce3329047d378a14006ce74ec273ac59e3375303.zip
initial import of latest svn version
Diffstat (limited to 'src/core/pvsChatMsg.h')
-rw-r--r--src/core/pvsChatMsg.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/core/pvsChatMsg.h b/src/core/pvsChatMsg.h
new file mode 100644
index 0000000..0a9793e
--- /dev/null
+++ b/src/core/pvsChatMsg.h
@@ -0,0 +1,48 @@
+/*
+# Copyright (c) 2009 - OpenSLX Project, Computer Center University of Freiburg
+#
+# This program is free software distributed under the GPL version 2.
+# See http://openslx.org/COPYING
+#
+# If you have any feedback please consult http://openslx.org/feedback and
+# send your suggestions, praise, or complaints to feedback@openslx.org
+#
+# General information about OpenSLX can be found at http://openslx.org/
+*/
+
+// pvsChatMsg.h
+
+#include "src/net/pvsMsg.h"
+
+#ifndef PVSCHATMSG_H_
+#define PVSCHATMSG_H_
+
+class PVSChatMsg
+{
+public:
+
+ PVSChatMsg(PVSMsg pvsMsg);
+ ~PVSChatMsg();
+
+ void setNickFrom(QString nick);
+ void setNickTo(QString nick);
+ void setMsg(QString msg);
+ QString getNickFrom();
+ QString getNickTo();
+ QString getMsg();
+ QString getCommand();
+ QString getUsername();
+ QString getIp();
+ bool isCommand();
+
+
+private:
+ QString _msg;
+ QString _nickFrom;
+ QString _nickTo;
+ QString _command;
+ QString _username;
+ QString _ip;
+};
+
+#endif /* PVSCHATMSG_H_ */