Quassel IRC
Pre-Release
|
#include </tmp/quassel/src/qtui/chatmonitorfilter.h>
Public Types | |
enum | SenderFields { NoField = 0x00, NetworkField = 0x01, BufferField = 0x02, SenderField = 0x04, AllFields = 0xff } |
Public Slots | |
void | addShowField (int field) |
void | removeShowField (int field) |
void | setShowOwnMessages (bool show) |
void | messageTypeFilterChanged () |
void | messageRedirectionChanged () |
void | requestBacklog () |
void | invalidateFilter () |
Public Member Functions | |
ChatMonitorFilter (MessageModel *model, QObject *parent=0) | |
virtual bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const |
virtual QString | idString () const |
virtual QVariant | data (const QModelIndex &index, int role) const |
int | showFields () const |
bool | showOwnMessages () const |
bool | isSingleBufferFilter () const |
BufferId | singleBufferId () const |
bool | containsBuffer (const BufferId &id) const |
QSet< BufferId > | containedBuffers () const |
Protected Member Functions | |
QString | bufferName () const |
BufferInfo::Type | bufferType () const |
NetworkId | networkId () const |
Private Slots | |
void | showFieldsSettingChanged (const QVariant &newValue) |
void | showOwnMessagesSettingChanged (const QVariant &newValue) |
void | showHighlightsSettingChanged (const QVariant &newValue) |
void | operationModeSettingChanged (const QVariant &newValue) |
void | buffersSettingChanged (const QVariant &newValue) |
void | showBacklogSettingChanged (const QVariant &newValue) |
void | includeReadSettingChanged (const QVariant &newValue) |
Private Attributes | |
int | _showFields |
bool | _showOwnMessages |
QList< BufferId > | _bufferIds |
bool | _showHighlights |
int | _operationMode |
bool | _showBacklog |
bool | _includeRead |
Definition at line 28 of file chatmonitorfilter.h.
enum SenderFields |
Definition at line 33 of file chatmonitorfilter.h.
ChatMonitorFilter | ( | MessageModel * | model, |
QObject * | parent = 0 |
||
) |
Definition at line 29 of file chatmonitorfilter.cpp.
References _bufferIds, _includeRead, _operationMode, _showBacklog, _showFields, _showHighlights, _showOwnMessages, AllFields, buffersSettingChanged(), idString(), includeReadSettingChanged(), Settings::notify(), operationModeSettingChanged(), showBacklogSettingChanged(), showFieldsSettingChanged(), showHighlightsSettingChanged(), showOwnMessagesSettingChanged(), and UiSettings::value().
|
virtual |
Reimplemented from MessageFilter.
Reimplemented in AwayLogFilter.
Definition at line 61 of file chatmonitorfilter.cpp.
References _bufferIds, _includeRead, _operationMode, _showBacklog, _showHighlights, _showOwnMessages, Message::Backlog, MessageModel::BufferIdRole, data(), MessageModel::FlagsRole, Message::Highlight, Client::ignoreListManager(), IgnoreListManager::match(), MessageModel::MessageRole, MessageModel::MsgIdRole, Client::networkModel(), NetworkModel::networkName(), Message::Self, Message::ServerMsg, SignedId::toInt(), and MessageModel::TypeRole.
|
inlinevirtual |
Reimplemented from MessageFilter.
Reimplemented in AwayLogFilter.
Definition at line 44 of file chatmonitorfilter.h.
Referenced by addShowField(), ChatMonitorFilter(), removeShowField(), and setShowOwnMessages().
|
virtual |
Reimplemented in AwayLogFilter.
Definition at line 100 of file chatmonitorfilter.cpp.
References _showFields, BufferField, MessageModel::BufferIdRole, NetworkModel::bufferName(), MessageModel::DisplayRole, MessageModel::EditRole, SignedId::isValid(), NetworkField, Client::networkModel(), NetworkModel::networkName(), MessageModel::SenderColumn, and MessageModel::TypeRole.
Referenced by filterAcceptsRow().
|
inline |
Definition at line 47 of file chatmonitorfilter.h.
References _showFields.
Referenced by ChatMonitorView::addActionsToMenu().
|
inline |
Definition at line 48 of file chatmonitorfilter.h.
References _showOwnMessages.
Referenced by ChatMonitorView::addActionsToMenu().
|
slot |
Definition at line 130 of file chatmonitorfilter.cpp.
References _showFields, idString(), and UiSettings::setValue().
Referenced by ChatMonitorView::showFieldsChanged().
|
slot |
Definition at line 139 of file chatmonitorfilter.cpp.
References _showFields, idString(), and UiSettings::setValue().
Referenced by ChatMonitorView::showFieldsChanged().
|
slot |
Definition at line 148 of file chatmonitorfilter.cpp.
References _showOwnMessages, idString(), and UiSettings::setValue().
|
privateslot |
Definition at line 157 of file chatmonitorfilter.cpp.
References _showFields, and MessageModel::SenderColumn.
Referenced by ChatMonitorFilter().
|
privateslot |
Definition at line 173 of file chatmonitorfilter.cpp.
References _showOwnMessages.
Referenced by ChatMonitorFilter().
|
privateslot |
Definition at line 179 of file chatmonitorfilter.cpp.
References _showHighlights.
Referenced by ChatMonitorFilter().
|
privateslot |
Definition at line 185 of file chatmonitorfilter.cpp.
References _operationMode.
Referenced by ChatMonitorFilter().
|
privateslot |
Definition at line 191 of file chatmonitorfilter.cpp.
References _bufferIds, and MessageFilter::invalidateFilter().
Referenced by ChatMonitorFilter().
|
privateslot |
Definition at line 200 of file chatmonitorfilter.cpp.
References _showBacklog.
Referenced by ChatMonitorFilter().
|
privateslot |
Definition at line 204 of file chatmonitorfilter.cpp.
References _includeRead.
Referenced by ChatMonitorFilter().
|
inlineinherited |
Definition at line 44 of file messagefilter.h.
References MessageFilter::_validBuffers.
Referenced by ChatScene::ChatScene().
|
inlineinherited |
Definition at line 45 of file messagefilter.h.
References MessageFilter::_validBuffers.
Referenced by MessageFilter::bufferName(), MessageFilter::bufferType(), ChatScene::ChatScene(), and MessageFilter::networkId().
|
inlineinherited |
Definition at line 46 of file messagefilter.h.
References MessageFilter::_validBuffers.
Referenced by ChatScene::containsBuffer().
|
inlineinherited |
Definition at line 47 of file messagefilter.h.
References MessageFilter::_validBuffers.
|
slotinherited |
Definition at line 72 of file messagefilter.cpp.
References MessageFilter::_filteredQuitMsgs, MessageFilter::_messageTypeFilter, BufferSettings::hasFilter(), MessageFilter::idString(), MessageFilter::invalidateFilter(), and BufferSettings::messageFilter().
Referenced by MessageFilter::init().
|
slotinherited |
Definition at line 90 of file messagefilter.cpp.
References MessageFilter::_errorMsgsTarget, MessageFilter::_serverNoticesTarget, MessageFilter::_userNoticesTarget, BufferSettings::errorMsgsTarget(), MessageFilter::invalidateFilter(), BufferSettings::serverNoticesTarget(), and BufferSettings::userNoticesTarget().
Referenced by MessageFilter::init().
|
slotinherited |
Definition at line 239 of file messagefilter.cpp.
References MessageFilter::_validBuffers, Client::messageModel(), and MessageModel::requestBacklog().
Referenced by ChatScene::requestBacklog().
|
inlineslotinherited |
Definition at line 54 of file messagefilter.h.
Referenced by buffersSettingChanged(), ChatView::invalidateFilter(), MessageFilter::messageRedirectionChanged(), and MessageFilter::messageTypeFilterChanged().
|
inlineprotectedinherited |
Definition at line 57 of file messagefilter.h.
References NetworkModel::bufferName(), Client::networkModel(), and MessageFilter::singleBufferId().
Referenced by MessageFilter::filterAcceptsRow().
|
inlineprotectedinherited |
Definition at line 58 of file messagefilter.h.
References NetworkModel::bufferType(), Client::networkModel(), and MessageFilter::singleBufferId().
Referenced by MessageFilter::filterAcceptsRow().
|
inlineprotectedinherited |
Definition at line 59 of file messagefilter.h.
References NetworkModel::networkId(), Client::networkModel(), and MessageFilter::singleBufferId().
Referenced by MessageFilter::filterAcceptsRow().
|
private |
Definition at line 65 of file chatmonitorfilter.h.
Referenced by addShowField(), ChatMonitorFilter(), data(), removeShowField(), showFields(), and showFieldsSettingChanged().
|
private |
Definition at line 66 of file chatmonitorfilter.h.
Referenced by ChatMonitorFilter(), filterAcceptsRow(), setShowOwnMessages(), showOwnMessages(), and showOwnMessagesSettingChanged().
|
private |
Definition at line 67 of file chatmonitorfilter.h.
Referenced by buffersSettingChanged(), ChatMonitorFilter(), and filterAcceptsRow().
|
private |
Definition at line 68 of file chatmonitorfilter.h.
Referenced by ChatMonitorFilter(), filterAcceptsRow(), and showHighlightsSettingChanged().
|
private |
Definition at line 69 of file chatmonitorfilter.h.
Referenced by ChatMonitorFilter(), filterAcceptsRow(), and operationModeSettingChanged().
|
private |
Definition at line 70 of file chatmonitorfilter.h.
Referenced by ChatMonitorFilter(), filterAcceptsRow(), and showBacklogSettingChanged().
|
private |
Definition at line 71 of file chatmonitorfilter.h.
Referenced by ChatMonitorFilter(), filterAcceptsRow(), and includeReadSettingChanged().