Chatterino
Public Member Functions | Protected Member Functions | List of all members
chatterino::IrcServer Class Reference

#include <IrcServer.hpp>

Inheritance diagram for chatterino::IrcServer:
[legend]
Collaboration diagram for chatterino::IrcServer:
[legend]

Public Member Functions

 IrcServer (const IrcServerData &data)
 
 IrcServer (const IrcServerData &data, const std::vector< std::weak_ptr< Channel >> &restoreChannels)
 
 ~IrcServer () override
 
int id ()
 
const QString & user ()
 
const QString & nick ()
 
const QString & userFriendlyIdentifier ()
 
bool hasEcho () const
 
void sendWhisper (const QString &target, const QString &message)
 sends a whisper to the target user (PRIVMSG where a user is the target) More...
 
- Public Member Functions inherited from chatterino::AbstractIrcServer
virtual ~AbstractIrcServer ()=default
 
void initializeIrc ()
 
void connect ()
 
void disconnect ()
 
void sendMessage (const QString &channelName, const QString &message)
 
void sendRawMessage (const QString &rawMessage)
 
ChannelPtr getOrAddChannel (const QString &dirtyChannelName)
 
ChannelPtr getChannelOrEmpty (const QString &dirtyChannelName)
 
std::vector< std::weak_ptr< Channel > > getChannels ()
 
void addFakeMessage (const QString &data)
 
void addGlobalSystemMessage (const QString &messageText)
 
void forEachChannel (std::function< void(ChannelPtr)> func)
 

Protected Member Functions

void initializeConnectionSignals (IrcConnection *connection, ConnectionType type) override
 
void initializeConnection (IrcConnection *connection, ConnectionType type) override
 
std::shared_ptr< ChannelcreateChannel (const QString &channelName) override
 
bool hasSeparateWriteConnection () const override
 
void onReadConnected (IrcConnection *connection) override
 
void privateMessageReceived (Communi::IrcPrivateMessage *message) override
 
void readConnectionMessageReceived (Communi::IrcMessage *message) override
 
- Protected Member Functions inherited from chatterino::AbstractIrcServer
 AbstractIrcServer ()
 
virtual void writeConnectionMessageReceived (Communi::IrcMessage *message)
 
virtual void onWriteConnected (IrcConnection *connection)
 
virtual void onDisconnected ()
 
virtual std::shared_ptr< ChannelgetCustomChannel (const QString &channelName)
 
virtual QString cleanChannelName (const QString &dirtyChannelName)
 
void open (ConnectionType type)
 

Additional Inherited Members

- Public Types inherited from chatterino::AbstractIrcServer
enum  ConnectionType { Read = 1, Write = 2, Both = 3 }
 
- Public Attributes inherited from chatterino::AbstractIrcServer
pajlada::Signals::NoArgSignal connected
 
pajlada::Signals::NoArgSignal disconnected
 
- Protected Attributes inherited from chatterino::AbstractIrcServer
QMap< QString, std::weak_ptr< Channel > > channels
 
std::mutex channelMutex
 

Constructor & Destructor Documentation

◆ IrcServer() [1/2]

chatterino::IrcServer::IrcServer ( const IrcServerData data)
explicit
Here is the call graph for this function:

◆ IrcServer() [2/2]

chatterino::IrcServer::IrcServer ( const IrcServerData data,
const std::vector< std::weak_ptr< Channel >> &  restoreChannels 
)

◆ ~IrcServer()

chatterino::IrcServer::~IrcServer ( )
override

Member Function Documentation

◆ createChannel()

std::shared_ptr< Channel > chatterino::IrcServer::createChannel ( const QString &  channelName)
overrideprotectedvirtual

◆ hasEcho()

bool chatterino::IrcServer::hasEcho ( ) const
Here is the caller graph for this function:

◆ hasSeparateWriteConnection()

bool chatterino::IrcServer::hasSeparateWriteConnection ( ) const
overrideprotectedvirtual

◆ id()

int chatterino::IrcServer::id ( )

◆ initializeConnection()

void chatterino::IrcServer::initializeConnection ( IrcConnection connection,
ConnectionType  type 
)
overrideprotectedvirtual

Implements chatterino::AbstractIrcServer.

Here is the call graph for this function:

◆ initializeConnectionSignals()

void chatterino::IrcServer::initializeConnectionSignals ( IrcConnection connection,
ConnectionType  type 
)
overrideprotectedvirtual

Reimplemented from chatterino::AbstractIrcServer.

Here is the call graph for this function:

◆ nick()

const QString & chatterino::IrcServer::nick ( )
Here is the caller graph for this function:

◆ onReadConnected()

void chatterino::IrcServer::onReadConnected ( IrcConnection connection)
overrideprotectedvirtual

Reimplemented from chatterino::AbstractIrcServer.

Here is the call graph for this function:

◆ privateMessageReceived()

void chatterino::IrcServer::privateMessageReceived ( Communi::IrcPrivateMessage *  message)
overrideprotectedvirtual

Reimplemented from chatterino::AbstractIrcServer.

Here is the call graph for this function:

◆ readConnectionMessageReceived()

void chatterino::IrcServer::readConnectionMessageReceived ( Communi::IrcMessage *  message)
overrideprotectedvirtual

Reimplemented from chatterino::AbstractIrcServer.

Here is the call graph for this function:

◆ sendWhisper()

void chatterino::IrcServer::sendWhisper ( const QString &  target,
const QString &  message 
)

sends a whisper to the target user (PRIVMSG where a user is the target)

Here is the call graph for this function:
Here is the caller graph for this function:

◆ user()

const QString & chatterino::IrcServer::user ( )

◆ userFriendlyIdentifier()

const QString & chatterino::IrcServer::userFriendlyIdentifier ( )

The documentation for this class was generated from the following files: