cliparser.cpp
event.cpp
eventmanager.cpp
+ eventstringifier.cpp
identity.cpp
ignorelistmanager.cpp
ircchannel.cpp
bufferviewmanager.h
coreinfo.h
eventmanager.h
+ eventstringifier.h
identity.h
ignorelistmanager.h
ircchannel.h
--- /dev/null
+/***************************************************************************
+ * Copyright (C) 2005-2010 by the Quassel Project *
+ * devel@quassel-irc.org *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) version 3. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+
+#include "eventstringifier.h"
+
+EventStringifier::EventStringifier(QObject *parent) : QObject(parent) {
+
+}
--- /dev/null
+/***************************************************************************
+ * Copyright (C) 2005-2010 by the Quassel Project *
+ * devel@quassel-irc.org *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) version 3. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+
+#ifndef EVENTSTRINGIFIER_H
+#define EVENTSTRINGIFIER_H
+
+#include <QObject>
+
+#include "ircevent.h"
+
+//! Generates user-visible MessageEvents from incoming IrcEvents
+
+/* replaces the string-generating parts of the old IrcServerHandler */
+class EventStringifier : public QObject {
+ Q_OBJECT
+
+public:
+ EventStringifier(QObject *parent = 0);
+
+private:
+
+};
+
+#endif
#include "coresessioneventprocessor.h"
#include "coreusersettings.h"
#include "eventmanager.h"
+#include "eventstringifier.h"
#include "ircchannel.h"
#include "ircparser.h"
#include "ircuser.h"
_networkConfig(new CoreNetworkConfig("GlobalNetworkConfig", this)),
_coreInfo(this),
_eventManager(new EventManager(this)),
+ _eventStringifier(new EventStringifier(this)),
_eventProcessor(new CoreSessionEventProcessor(this)),
_ircParser(new IrcParser(this)),
scriptEngine(new QScriptEngine(this)),
loadSettings();
initScriptEngine();
- eventManager()->registerObject(ircParser(), EventManager::NormalPriority, "process");
- eventManager()->registerObject(eventProcessor(), EventManager::HighPriority, "process");
- eventManager()->registerObject(this, EventManager::LowPriority, "process"); // for sending MessageEvents to the client
+ eventManager()->registerObject(ircParser(), EventManager::NormalPriority);
+ eventManager()->registerObject(eventProcessor(), EventManager::HighPriority);
+ eventManager()->registerObject(eventStringifier(), EventManager::NormalPriority);
+ eventManager()->registerObject(this, EventManager::LowPriority); // for sending MessageEvents to the client
// periodically save our session state
connect(&(Core::instance()->syncTimer()), SIGNAL(timeout()), this, SLOT(saveSessionState()));
class CoreNetworkConfig;
class CoreSessionEventProcessor;
class EventManager;
+class EventStringifier;
class IrcParser;
class MessageEvent;
class NetworkConnection;
AliasManager &aliasManager() { return _aliasManager; }
inline EventManager *eventManager() const { return _eventManager; }
+ inline EventStringifier *eventStringifier() const { return _eventStringifier; }
inline CoreSessionEventProcessor *eventProcessor() const { return _eventProcessor; }
inline IrcParser *ircParser() const { return _ircParser; }
CoreCoreInfo _coreInfo;
EventManager *_eventManager;
+ EventStringifier *_eventStringifier; // should eventually move into client
CoreSessionEventProcessor *_eventProcessor;
IrcParser *_ircParser;