FilterManager Class Reference

Filter Manager. More...

#include <filtermanager.h>

List of all members.

Signals

void stateChanged (int type=-1)

Public Member Functions

 FilterManager (QObject *parent=0)
 A constructor.
template<typename T >
void registerFilterableType ()
void registerFilterableType (int type)
bool isTypeRegistered (int type) const
void addFilter (Filter *filter)
template<typename T >
bool checkValue (const T &t) const
template<typename T >
void filterList (QList< T > &container) const
template<typename T >
QList< QActionGroup * > createActions ()
template<typename T >
void connectType (const QObject *object, const char *method, Qt::ConnectionType connType=Qt::AutoConnection)

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:
T Type
Returns:
QList
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:
QList<T> with values
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:
type Type to register
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:
Generated on Tue Jul 19 11:01:25 2011 for mysocials-core by  doxygen 1.6.3