FilterManager Class Reference
Filter Manager.
More...
#include <filtermanager.h>
List of all members.
Detailed Description
Filter Manager.
Filter manager object responsible for filtering different datatype such as Friend, Album, Message, etc.
Member Function Documentation
void FilterManager::addFilter |
( |
Filter * |
filter |
) |
|
Add new filter
- Parameters:
-
| Descendant | of Filter class with overrided methods |
template<typename T >
bool FilterManager::checkValue |
( |
const T & |
t |
) |
const [inline] |
Check, is this value filtered by at least one of filters
- Parameters:
-
| Value | to check - Returns:
- true if value pass filters, false if value filtered
|
template<typename T >
void FilterManager::connectType |
( |
const QObject * |
object, |
|
|
const char * |
method, |
|
|
Qt::ConnectionType |
connType = Qt::AutoConnection | |
|
) |
| | [inline] |
Connect given slot to type update This is experimental feature
template<typename T >
QList< QActionGroup * > FilterManager::createActions |
( |
|
) |
[inline] |
Create list of QActionGroups that specifies user interface for given type
- Parameters:
-
template<typename T >
void FilterManager::filterList |
( |
QList< T > & |
container |
) |
const [inline] |
Remove values that doesn't pass at least one filter This function modifies argument!
- Parameters:
-
bool FilterManager::isTypeRegistered |
( |
int |
type |
) |
const |
Check is type registered
- Parameters:
-
| type | Type to check - Returns:
- true is type registered, false otherwise
|
void FilterManager::registerFilterableType |
( |
int |
type |
) |
|
Register new filterable type by type identifier
- Parameters:
-
template<typename T >
void FilterManager::registerFilterableType |
( |
|
) |
[inline] |
Register new filterable type
- Parameters:
-
| T | Type to register. Should be declared with Q_DECLARE_METATYPE() macro |
The documentation for this class was generated from the following files: