Quassel IRC  Pre-Release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
ContentsChatItem::ActionProxy Class Reference

Acts as a proxy for Action signals targetted at a ContentsChatItem. More...

#include </tmp/quassel/src/qtui/chatitem.h>

Public Slots

void copyLinkToClipboard ()

Private Member Functions

ContentsChatItemitem () const
 Returns the ContentsChatItem that should receive the action event.

Detailed Description

Acts as a proxy for Action signals targetted at a ContentsChatItem.

Since a ChatItem is not a QObject, hence cannot receive signals, we use a static ActionProxy as a receiver instead. This avoids having to handle ChatItem actions (e.g. context menu entries) outside the ChatItem.

Definition at line 276 of file chatitem.h.

Member Function Documentation

void copyLinkToClipboard ( )
inlineslot

Definition at line 281 of file chatitem.h.

References ContentsChatItem::copyLinkToClipboard(), and item().

ContentsChatItem* item ( ) const
inlineprivate

Returns the ContentsChatItem that should receive the action event.

For efficiency reasons, values are not checked for validity. You gotta make sure that you set the data() member in the Action correctly.

Returns
The ChatItem from which the sending Action originated

Definition at line 289 of file chatitem.h.

References ChatItem::data().

Referenced by copyLinkToClipboard().


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