FlightGear next
IRCConnection Class Reference

#include <mpirc.hxx>

Inherits SGSocket.

Public Member Functions

 IRCConnection (const std::string &nickname, const std::string &servername, const std::string &port=IRC_DEFAULT_PORT)
 
 ~IRCConnection ()
 
void setupProperties (std::string path)
 
void update ()
 
bool login (const std::string &nickname)
 
bool login ()
 
void quit ()
 
bool sendPrivmsg (const std::string &recipient, const std::string &textline)
 
bool join (const std::string &channel)
 
bool part (const std::string &channel)
 
bool isConnected () const
 
bool isReady () const
 
bool hasMessage () const
 
IRCMessage getMessage ()
 

Detailed Description

Definition at line 55 of file mpirc.hxx.

Constructor & Destructor Documentation

◆ IRCConnection()

IRCConnection::IRCConnection ( const std::string & nickname,
const std::string & servername,
const std::string & port = IRC_DEFAULT_PORT )

Definition at line 39 of file mpirc.cxx.

◆ ~IRCConnection()

IRCConnection::~IRCConnection ( )

Definition at line 44 of file mpirc.cxx.

Member Function Documentation

◆ getMessage()

IRCMessage IRCConnection::getMessage ( )

Definition at line 317 of file mpirc.cxx.

◆ hasMessage()

bool IRCConnection::hasMessage ( ) const
inline

Definition at line 75 of file mpirc.hxx.

◆ isConnected()

bool IRCConnection::isConnected ( ) const
inline

Definition at line 73 of file mpirc.hxx.

◆ isReady()

bool IRCConnection::isReady ( ) const
inline

Definition at line 74 of file mpirc.hxx.

◆ join()

bool IRCConnection::join ( const std::string & channel)

Definition at line 120 of file mpirc.cxx.

◆ login() [1/2]

bool IRCConnection::login ( )

Definition at line 85 of file mpirc.cxx.

◆ login() [2/2]

bool IRCConnection::login ( const std::string & nickname)

Definition at line 61 of file mpirc.cxx.

◆ part()

bool IRCConnection::part ( const std::string & channel)

Definition at line 133 of file mpirc.cxx.

◆ quit()

void IRCConnection::quit ( )

Definition at line 91 of file mpirc.cxx.

◆ sendPrivmsg()

bool IRCConnection::sendPrivmsg ( const std::string & recipient,
const std::string & textline )

Definition at line 98 of file mpirc.cxx.

◆ setupProperties()

void IRCConnection::setupProperties ( std::string path)

Definition at line 49 of file mpirc.cxx.

◆ update()

void IRCConnection::update ( )

Definition at line 152 of file mpirc.cxx.


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