1 #ifndef _KVI_IRCMESSAGE_H_
2 #define _KVI_IRCMESSAGE_H_
90 bool isNumeric() {
return (m_iNumericCommand >= 0); };
91 const char *
command() {
return m_szCommand.ptr(); };
93 int numeric() {
return m_iNumericCommand; };
96 const char *
prefix() {
return m_szPrefix.ptr(); };
97 const char * safePrefix();
104 QString * messageTagPtr(
const QString & szTag);
105 bool hasMessageTag(
const QString & szTag) {
return m_ParsedMessageTags.contains(szTag); };
111 bool isEmpty() {
return (m_szPrefix.isEmpty() && m_szCommand.isEmpty() && m_pParams->isEmpty()); };
115 const char *
param(
unsigned int idx) {
return (idx < m_pParams->count()) ? m_pParams->at(idx)->ptr() : 0; };
124 return tr ? tr->
ptr() : 0;
148 void decodeAndSplitPrefix(QString & szNick, QString & szUser, QString &
szHost);
149 void decodeAndSplitMask(
char * mask, QString & szNick, QString & szUser, QString &
szHost);
152 void parseMessageTags();
155 #endif //_KVI_IRCMESSAGE_H_
int paramCount()
Definition: KviIrcMessage.h:113
KviCString * paramString(unsigned int idx)
Definition: KviIrcMessage.h:119
Definition: KviCString.h:105
Definition: KviConsoleWindow.h:75
#define KVIRC_API
Definition: kvi_settings.h:128
KviConsoleWindow * console()
Definition: KviIrcMessage.h:87
int numeric()
Definition: KviIrcMessage.h:93
int m_iNumericCommand
Definition: KviIrcMessage.h:83
KviCString * commandPtr()
Definition: KviIrcMessage.h:92
Definition: KviIrcMessage.h:50
KviCString & safeTrailingString()
Definition: KviIrcMessage.h:127
const char * safeTrailing()
Definition: KviIrcMessage.h:132
An abstraction of a connection to an IRC server.
Definition: KviIrcConnection.h:95
char & at(int idx) const
Definition: KviCString.h:190
bool haltOutput()
Definition: KviIrcMessage.h:144
bool unrecognized()
Definition: KviIrcMessage.h:146
Flags
Definition: KviIrcMessage.h:61
void setHaltOutput()
Definition: KviIrcMessage.h:143
const char * prefix()
Definition: KviIrcMessage.h:96
bool hasPrefix()
Definition: KviIrcMessage.h:98
KviIrcConnection * connection()
Definition: KviIrcMessage.h:88
This class defines a new data type which contains hash data.
Definition: KviKvsHash.h:47
const char * safeParam(unsigned int idx)
Definition: KviIrcMessage.h:117
const char * param(unsigned int idx)
Definition: KviIrcMessage.h:115
int m_iFlags
Definition: KviIrcMessage.h:84
QString szHost
Definition: libkvisetup.cpp:45
QDateTime m_time
Definition: KviIrcMessage.h:85
KviCString * prefixPtr()
Definition: KviIrcMessage.h:95
void setUnrecognized()
Definition: KviIrcMessage.h:145
QHash< QString, QString > & messageTagsMap()
Definition: KviIrcMessage.h:106
const char * m_ptr
Definition: KviIrcMessage.h:75
KviConsoleWindow * m_pConsole
Definition: KviIrcMessage.h:81
bool isNumeric()
Definition: KviIrcMessage.h:90
const char * messageTags()
Definition: KviIrcMessage.h:101
bool hasMessageTag(const QString &szTag)
Definition: KviIrcMessage.h:105
bool hasMessageTags()
Definition: KviIrcMessage.h:102
C++ Template based double linked pointer list class.
KviCString m_szMessageTags
Definition: KviIrcMessage.h:77
bool isEmpty()
Definition: KviIrcMessage.h:111
KviCString m_szCommand
Definition: KviIrcMessage.h:78
KviIrcConnection * m_pConnection
Definition: KviIrcMessage.h:82
const char * command()
Definition: KviIrcMessage.h:91
KviCString * firstParam()
Definition: KviIrcMessage.h:140
KviCString * trailingString()
Definition: KviIrcMessage.h:126
Handling of hash data type in KVS.
QHash< QString, QString > m_ParsedMessageTags
Definition: KviIrcMessage.h:80
This file contains compile time settings.
KviPointerList< KviCString > * m_pParams
Definition: KviIrcMessage.h:79
KviCString * nextParam()
Definition: KviIrcMessage.h:141
const char * trailing()
Definition: KviIrcMessage.h:121
KviCString m_szPrefix
Definition: KviIrcMessage.h:76
char * ptr() const
Definition: KviCString.h:172
KviCString * messageTagsPtr()
Definition: KviIrcMessage.h:100
QDateTime serverTime()
Definition: KviIrcMessage.h:109
const char * allParams()
Definition: KviIrcMessage.h:138
Definition: KviIrcContext.h:58
Helper functions for the QString class.
static KviCString & emptyString()
Definition: KviCString.cpp:3159