#include <filter.h>
Signals | |
void | stateChanged (int type=-1) |
Public Member Functions | |
Filter (QObject *parent=0) | |
virtual int | filterableType () const =0 |
virtual bool | isFiltered (QVariant value) const =0 |
virtual QActionGroup * | createActions ()=0 |
Protected Member Functions | |
void | emitStateChanged () |
Wrapper for signal stateChanged(). |
Base class for Filter implementations. To implement filter inherit this class and override three virtual methods
Filter::Filter | ( | QObject * | parent = 0 |
) | [explicit] |
Defauld constructor
parent | Should be FilterManager
|
virtual QActionGroup* Filter::createActions | ( | ) | [pure virtual] |
Return QActionGroup that specifies user interface to filter. This function should used by FilterManager
Implemented in FilterFriendGender, FilterFriendOnline, FilterMessageReaded, and FilterMessageType.
virtual int Filter::filterableType | ( | ) | const [pure virtual] |
Get type that filter supports Should use function qMetaTypeId() to get type identifier
Implemented in FilterFriendGender, FilterFriendOnline, FilterMessageReaded, and FilterMessageType.
virtual bool Filter::isFiltered | ( | QVariant | value | ) | const [pure virtual] |
Check is value in QVariant filtered
value | QVariant containing value |
Implemented in FilterFriendGender, FilterFriendOnline, FilterMessageReaded, and FilterMessageType.