23 #ifndef __IRCADAPTERBASE_H__ 24 #define __IRCADAPTERBASE_H__ 81 void emitError(
const QString &strError)
86 void emitFocusRequest()
91 void emitMessage(
const QString &strMessage)
93 emit message(strMessage);
96 void emitMessageWithClass(
const QString &strMessage,
const IRCMessageClass &messageClass)
98 emit messageWithClass(strMessage, messageClass);
111 virtual QString recipient()
const 119 virtual QString
title()
const = 0;
122 void emitMessageToAllChatBoxes(
const QString &message,
const IRCMessageClass &msgClass);
124 void sendMessage(
const QString &message)
130 void error(
const QString &error);
137 void message(
const QString &message);
138 void messageWithClass(
const QString &message,
const IRCMessageClass &messageClass);
139 void messageToNetworksCurrentChatBox(
const QString &message,
const IRCMessageClass &msgClass);
Interprets communication between the client and the IRC server.
Provides an unified communication interface between a client and IRC network entities.
virtual ~IRCAdapterBase() override
Destructor emits terminating() signal.
void titleChange()
Can be called when the variable returned by title() might have changed and the application should be ...
virtual QString title() const =0
Gets title for this adapter.
virtual AdapterType adapterType() const =0
Gets adapter type for this adapter instance.
AdapterType
Defines all possible types of IRC adapters.
void focusRequest()
Called when this adapter requests UI focus.
virtual IRCNetworkAdapter * network()=0
The idea of the adapter system is that each adapter is either a network or is a child of a network...
Data structure that describes and defines a connection to an IRC network or server.
virtual void doSendMessage(const QString &message, IRCAdapterBase *pOrigin)=0
Implement to handle and send a message to the IRC network entity.