KVIrc 5.2.6
Developer APIs
NotifierMessage Class Reference

A single message in a notifier window. More...

#include <NotifierMessage.h>

+ Inheritance diagram for NotifierMessage:

Public Member Functions

 NotifierMessage (QPixmap *pPixmap, QString szText)
 Constructs the NotifierMessage object.
 
QPixmap * pixmap () const
 Returns the message icon.
 
const QString & text () const
 Returns the original irc message.
 
void updateGui ()
 Updates the aspect of this message.
 
 ~NotifierMessage ()
 Destroys the NotifierMessage object.
 

Private Attributes

QHBoxLayout * m_pHBox = nullptr
 Layout for the labels.
 
QLabel * m_pLabel0 = nullptr
 Label for the message icon.
 
QLabel * m_pLabel1 = nullptr
 Label for the message text.
 
QPixmap * m_pPixmap = nullptr
 The message icon (can be null)
 
QString m_szText
 The message text.
 

Friends

class NotifierWindow
 

Detailed Description

A single message in a notifier window.

This is basically a single message that can appear in a notifier window It's made up of an icon and a rich text content This class is basically a QLabel with a method that translates a raw irc message to html code.

Constructor & Destructor Documentation

◆ NotifierMessage()

NotifierMessage::NotifierMessage ( QPixmap * pPixmap,
QString szText )

Constructs the NotifierMessage object.

Parameters
pPixmappointer to a message icon, can be null
szTextconst reference to message text in irc format
Returns
NotifierMessage

References m_pHBox, SPACING, and updateGui().

◆ ~NotifierMessage()

NotifierMessage::~NotifierMessage ( )

Destroys the NotifierMessage object.

References m_pHBox, m_pLabel0, and m_pLabel1.

Member Function Documentation

◆ pixmap()

QPixmap * NotifierMessage::pixmap ( ) const
inline

Returns the message icon.

Returns
QPixmap *

References m_pPixmap.

◆ text()

const QString & NotifierMessage::text ( ) const
inline

Returns the original irc message.

Returns
const QString &

References m_szText.

◆ updateGui()

Friends And Related Symbol Documentation

◆ NotifierWindow

friend class NotifierWindow
friend

Member Data Documentation

◆ m_pHBox

QHBoxLayout* NotifierMessage::m_pHBox = nullptr
private

Layout for the labels.

Referenced by NotifierMessage(), updateGui(), and ~NotifierMessage().

◆ m_pLabel0

QLabel* NotifierMessage::m_pLabel0 = nullptr
private

Label for the message icon.

Referenced by updateGui(), and ~NotifierMessage().

◆ m_pLabel1

QLabel* NotifierMessage::m_pLabel1 = nullptr
private

Label for the message text.

Referenced by updateGui(), and ~NotifierMessage().

◆ m_pPixmap

QPixmap* NotifierMessage::m_pPixmap = nullptr
private

The message icon (can be null)

Referenced by pixmap(), and updateGui().

◆ m_szText

QString NotifierMessage::m_szText
private

The message text.

Referenced by text(), and updateGui().


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