KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Protected Types | Protected Attributes | Friends | List of all members
KviIrcConnectionStateData Class Reference

#include <KviIrcConnectionStateData.h>

Public Member Functions

void changeEnabledCapList (const QString &szCapList)
 
const QString & commandToExecAfterConnect ()
 
const QStringList & enabledCaps ()
 
bool identifyMsgCapabilityEnabled () const
 
bool ignoreOneYouHaveNotRegisteredError () const
 
bool isInsideAuthenticate ()
 
bool isInsideInitialCapLs ()
 
bool isInsideInitialCapReq ()
 
bool isInsideInitialStartTls ()
 
 KviIrcConnectionStateData ()
 
kvi_time_t lastReceivedChannelWhoReply ()
 
kvi_time_t lastReceivedWhoisReply ()
 
kvi_time_t lastSentChannelWhoRequest ()
 
const LoginNickNameStateloginNickNameState () const
 
bool sentQuit ()
 
bool sentStartTls ()
 
void setCommandToExecAfterConnect (const QString &szCmd)
 
void setIgnoreOneYouHaveNotRegisteredError (bool bIgnore)
 
void setInsideAuthenticate (bool bInside)
 
void setInsideInitialCapLs (bool bInside)
 
void setInsideInitialCapReq (bool bInside)
 
void setInsideInitialStartTls (bool bInside)
 
void setLastReceivedChannelWhoReply (kvi_time_t tTime)
 
void setLastReceivedWhoisReply (kvi_time_t tTime)
 
void setLastSentChannelWhoRequest (kvi_time_t tTime)
 
void setLoginNickNameState (const LoginNickNameState &eLoginNickNameState)
 
void setSentQuit ()
 
void setSentStartTls ()
 
void setSimulateUnexpectedDisconnect (bool bSimulate)
 
bool simulateUnexpectedDisconnect ()
 
 ~KviIrcConnectionStateData ()
 

Protected Types

enum  LoginNickNameState {
  UsedConnectionSpecificNickName, UsedProfileSpecificNickName, UsedAlternativeProfileSpecificNickName, UsedServerSpecificNickName,
  UsedAlternativeServerSpecificNickName, UsedNetworkSpecificNickName, UsedAlternativeNetworkSpecificNickName, UsedGlobalNickName1,
  UsedGlobalNickName2, UsedGlobalNickName3, UsedGlobalNickName4, UsedRandomNickName1,
  UsedRandomNickName2, UsedRandomNickName3, UsedRandomNickName4, UsedManualNickname
}
 

Protected Attributes

bool m_bIdentifyMsgCapabilityEnabled
 
bool m_bIgnoreOneYouHaveNotRegisteredError
 
bool m_bInsideAuthenticate
 
bool m_bInsideInitialCapLs
 
bool m_bInsideInitialCapReq
 
bool m_bInsideInitialStartTls
 
bool m_bSentQuit
 
bool m_bSentStartTls
 
bool m_bSimulateUnexpectedDisconnect
 
LoginNickNameState m_eLoginNickNameState
 
QStringList m_lEnabledCaps
 
QString m_szCommandToExecAfterConnect
 
kvi_time_t m_tLastReceivedChannelWhoReply
 
kvi_time_t m_tLastReceivedWhoisReply
 
kvi_time_t m_tLastSentChannelWhoRequest
 

Friends

class KviIrcConnection
 
class KviIrcServerParser
 
class KviUserParser
 

Member Enumeration Documentation

Enumerator
UsedConnectionSpecificNickName 
UsedProfileSpecificNickName 
UsedAlternativeProfileSpecificNickName 
UsedServerSpecificNickName 
UsedAlternativeServerSpecificNickName 
UsedNetworkSpecificNickName 
UsedAlternativeNetworkSpecificNickName 
UsedGlobalNickName1 
UsedGlobalNickName2 
UsedGlobalNickName3 
UsedGlobalNickName4 
UsedRandomNickName1 
UsedRandomNickName2 
UsedRandomNickName3 
UsedRandomNickName4 
UsedManualNickname 

Constructor & Destructor Documentation

KviIrcConnectionStateData::KviIrcConnectionStateData ( )
KviIrcConnectionStateData::~KviIrcConnectionStateData ( )
default

Member Function Documentation

void KviIrcConnectionStateData::changeEnabledCapList ( const QString &  szCapList)
const QString& KviIrcConnectionStateData::commandToExecAfterConnect ( )
inline
const QStringList& KviIrcConnectionStateData::enabledCaps ( )
inline
bool KviIrcConnectionStateData::identifyMsgCapabilityEnabled ( ) const
inline
bool KviIrcConnectionStateData::ignoreOneYouHaveNotRegisteredError ( ) const
inline
bool KviIrcConnectionStateData::isInsideAuthenticate ( )
inline
bool KviIrcConnectionStateData::isInsideInitialCapLs ( )
inline
bool KviIrcConnectionStateData::isInsideInitialCapReq ( )
inline
bool KviIrcConnectionStateData::isInsideInitialStartTls ( )
inline
kvi_time_t KviIrcConnectionStateData::lastReceivedChannelWhoReply ( )
inline
kvi_time_t KviIrcConnectionStateData::lastReceivedWhoisReply ( )
inline
kvi_time_t KviIrcConnectionStateData::lastSentChannelWhoRequest ( )
inline
const LoginNickNameState& KviIrcConnectionStateData::loginNickNameState ( ) const
inline

Returns the current login nickname state

Referenced by KviIrcConnection::pickNextLoginNickName().

bool KviIrcConnectionStateData::sentQuit ( )
inline
bool KviIrcConnectionStateData::sentStartTls ( )
inline
void KviIrcConnectionStateData::setCommandToExecAfterConnect ( const QString &  szCmd)
inline
void KviIrcConnectionStateData::setIgnoreOneYouHaveNotRegisteredError ( bool  bIgnore)
inline
void KviIrcConnectionStateData::setInsideAuthenticate ( bool  bInside)
inline
void KviIrcConnectionStateData::setInsideInitialCapLs ( bool  bInside)
inline
void KviIrcConnectionStateData::setInsideInitialCapReq ( bool  bInside)
inline
void KviIrcConnectionStateData::setInsideInitialStartTls ( bool  bInside)
inline
void KviIrcConnectionStateData::setLastReceivedChannelWhoReply ( kvi_time_t  tTime)
inline
void KviIrcConnectionStateData::setLastReceivedWhoisReply ( kvi_time_t  tTime)
inline
void KviIrcConnectionStateData::setLastSentChannelWhoRequest ( kvi_time_t  tTime)
inline
void KviIrcConnectionStateData::setLoginNickNameState ( const LoginNickNameState eLoginNickNameState)
inline

Sets the current login nickname state

Referenced by KviIrcConnection::loginToIrcServer(), and KviIrcConnection::pickNextLoginNickName().

void KviIrcConnectionStateData::setSentQuit ( )
inline
void KviIrcConnectionStateData::setSentStartTls ( )
inline
void KviIrcConnectionStateData::setSimulateUnexpectedDisconnect ( bool  bSimulate)
inline
bool KviIrcConnectionStateData::simulateUnexpectedDisconnect ( )
inline

Friends And Related Function Documentation

friend class KviIrcConnection
friend
friend class KviIrcServerParser
friend
friend class KviUserParser
friend

Member Data Documentation

bool KviIrcConnectionStateData::m_bIdentifyMsgCapabilityEnabled
protected
bool KviIrcConnectionStateData::m_bIgnoreOneYouHaveNotRegisteredError
protected
bool KviIrcConnectionStateData::m_bInsideAuthenticate
protected
bool KviIrcConnectionStateData::m_bInsideInitialCapLs
protected
bool KviIrcConnectionStateData::m_bInsideInitialCapReq
protected
bool KviIrcConnectionStateData::m_bInsideInitialStartTls
protected

This is set to true if a forced STARTTLS request has been sent to the server followed by a PING. We use this flag to gracefully handle a ERR_NOTREGISTERED related to the PING if STARTTLS is not supported.

Note that in this case the STARTTLS support wasn't detected by a previous CAP LS (which wasn't sent at all).

Referenced by KviIrcConnectionStateData().

bool KviIrcConnectionStateData::m_bSentQuit
protected
bool KviIrcConnectionStateData::m_bSentStartTls
protected
bool KviIrcConnectionStateData::m_bSimulateUnexpectedDisconnect
protected
LoginNickNameState KviIrcConnectionStateData::m_eLoginNickNameState
protected

the current login nickname state

Referenced by KviIrcConnectionStateData().

QStringList KviIrcConnectionStateData::m_lEnabledCaps
protected

Referenced by changeEnabledCapList().

QString KviIrcConnectionStateData::m_szCommandToExecAfterConnect
protected
kvi_time_t KviIrcConnectionStateData::m_tLastReceivedChannelWhoReply
protected
kvi_time_t KviIrcConnectionStateData::m_tLastReceivedWhoisReply
protected
kvi_time_t KviIrcConnectionStateData::m_tLastSentChannelWhoRequest
protected

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