KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Private Attributes | Friends | List of all members
NotifierMessage Class Reference

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

#include <NotifierMessage.h>

+ Inheritance diagram for NotifierMessage:

Public Member Functions

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

Private Attributes

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

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 ( QPixmap *  pPixmap,
const 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, m_pLabel0, m_pLabel1, m_pPixmap, m_szText, SPACING, and updateGui().

NotifierMessage::~NotifierMessage ( )

Destroys the NotifierMessage object.

References m_pHBox, m_pLabel0, and m_pLabel1.

Member Function Documentation

QPixmap* NotifierMessage::pixmap ( ) const
inline

Returns the message icon.

Returns
QPixmap *

References m_pPixmap.

QString NotifierMessage::text ( ) const
inline

Returns the original irc message.

Returns
QString

References m_szText.

void NotifierMessage::updateGui ( )

Friends And Related Function Documentation

friend class NotifierWindow
friend

Member Data Documentation

QHBoxLayout* NotifierMessage::m_pHBox
private

Layout for the labels.

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

QLabel* NotifierMessage::m_pLabel0
private

Label for the message icon.

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

QLabel* NotifierMessage::m_pLabel1
private

Label for the message text.

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

QPixmap* NotifierMessage::m_pPixmap
private

The message icon (can be null)

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

QString NotifierMessage::m_szText
private

The message text.

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


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