Make the EventType meta enum and related accessors static
[quassel.git] / src / common / networkevent.h
index 67b47a0..5a08733 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2010 by the Quassel Project                        *
+ *   Copyright (C) 2005-2012 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -90,4 +90,29 @@ private:
   QByteArray _data;
 };
 
+class NetworkSplitEvent : public NetworkEvent {
+
+public:
+  explicit NetworkSplitEvent(EventManager::EventType type,
+                             Network *network,
+                             const QString &channel,
+                             const QStringList &users,
+                             const QString &quitMsg)
+    : NetworkEvent(type, network),
+      _channel(channel),
+      _users(users),
+      _quitMsg(quitMsg)
+  {}
+
+  inline QString channel() const { return _channel; }
+  inline QStringList users() const { return _users; }
+  inline QString quitMessage() const { return _quitMsg; }
+
+private:
+  QString _channel;
+  QStringList _users;
+  QString _quitMsg;
+};
+
+
 #endif