The complete source code of IdealIRC http://www.idealirc.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
idealirc/IdealIRC/InputHandler.h

32 lines
663 B

/*
* IdealIRC - Internet Relay Chat client
* Copyright (C) 2021 Tom-Andre Barstad.
* This software is licensed under the Software Attribution License.
* See LICENSE for more information.
*/
#ifndef INPUTHANDLER_H
#define INPUTHANDLER_H
#include "ICommand/ICommand.h"
#include <QObject>
class IWin;
class IRC;
class MdiManager;
class InputHandler
{
public:
explicit InputHandler(IRC& connection_);
void parse(IWin& sender, const QString& text, bool handleCommand = true);
void parseCommand(const QString& text);
ICommand* getHandler() { return &cmdHndl; }
private:
IRC& connection;
ICommand cmdHndl;
};
#endif // INPUTHANDLER_H