libqutim  0.3.1.0
qutim_sdk_0_3::ActionGenerator Class Reference

#include <actiongenerator.h>

+ Inheritance diagram for qutim_sdk_0_3::ActionGenerator:

Public Types

enum  Type { StatusType = 0, GeneralType }
 
- Public Types inherited from qutim_sdk_0_3::ObjectGenerator
typedef
QExplicitlySharedDataPointer
< ObjectGeneratorHolderData
Ptr
 

Public Member Functions

 ActionGenerator (const QIcon &icon, const LocalizedString &text, const QObject *receiver, const char *member)
 
 ActionGenerator (const QIcon &icon, const LocalizedString &text, const char *member)
 
virtual ~ActionGenerator ()
 
QList< QAction * > actions (QObject *object) const
 
QMap< QObject *, QAction * > actions () const
 
void addHandler (int type, QObject *obj)
 
ActionGeneratoraddProperty (const QByteArray &name, const QVariant &value)
 
QIcon icon () const
 
bool iconVisibleInMenu () const
 
const char * member () const
 
QAction::MenuRole menuRole () const
 
int priority () const
 
const QObject * receiver () const
 
void removeHandler (int type, QObject *obj)
 
void setCheckable (bool checkable)
 
void setChecked (bool checked)
 
void setIconVisibleInMenu (bool visible)
 
void setMenuController (MenuController *controller)
 
void setMenuRole (QAction::MenuRole role)
 
ActionGeneratorsetPriority (int priority)
 
void setShortcut (const QKeySequence &shortcut)
 
void setShortcut (const QString &id)
 
void setToolTip (const LocalizedString &toolTip)
 
ActionGeneratorsetType (int type)
 
QString shortcut () const
 
void subscribe (QObject *object, const char *method)
 
const LocalizedStringtext () const
 
int type () const
 
- Public Member Functions inherited from qutim_sdk_0_3::ObjectGenerator
virtual ~ObjectGenerator ()
 
ObjectGeneratoraddProperty (const QByteArray &name, const QVariant &value)
 
bool extends (const QMetaObject *super) const
 
bool extends (const char *id) const
 
template<typename T >
bool extends () const
 
QObject * generate () const
 
template<typename T >
T * generate () const
 
bool hasInterface (const char *id) const
 
Ptr pointerHolder ()
 

Static Public Member Functions

static ActionGeneratorget (QAction *)
 
- Static Public Member Functions inherited from qutim_sdk_0_3::ObjectGenerator
static bool isInited ()
 
static GeneratorList module (const QMetaObject *module)
 
static GeneratorList module (const char *iid)
 
template<typename T >
static GeneratorList module ()
 

Protected Member Functions

void create (QAction *action, QObject *obj) const
 
virtual void createImpl (QAction *action, QObject *obj) const
 
virtual QObject * generateHelper () const
 
virtual void hideImpl (QAction *action, QObject *obj)
 
virtual QList< QByteArray > interfaces () const
 
virtual const QMetaObject * metaObject () const
 
QAction * prepareAction (QAction *action) const
 
virtual void showImpl (QAction *action, QObject *obj)
 
- Protected Member Functions inherited from qutim_sdk_0_3::ObjectGenerator
 ObjectGenerator ()
 
virtual void virtual_hook (int id, void *data)
 

Friends

class ActionContainerPrivate
 
class ActionToolBar
 
class ActionValue
 
class MenuController
 
class MenuControllerPrivate
 

Member Enumeration Documentation

Enumerator
StatusType 
GeneralType 

Constructor & Destructor Documentation

qutim_sdk_0_3::ActionGenerator::ActionGenerator ( const QIcon &  icon,
const LocalizedString text,
const QObject *  receiver,
const char *  member 
)
qutim_sdk_0_3::ActionGenerator::ActionGenerator ( const QIcon &  icon,
const LocalizedString text,
const char *  member 
)
virtual qutim_sdk_0_3::ActionGenerator::~ActionGenerator ( )
virtual

Member Function Documentation

QList<QAction*> qutim_sdk_0_3::ActionGenerator::actions ( QObject *  object) const
QMap<QObject*, QAction*> qutim_sdk_0_3::ActionGenerator::actions ( ) const
void qutim_sdk_0_3::ActionGenerator::addHandler ( int  type,
QObject *  obj 
)
ActionGenerator* qutim_sdk_0_3::ActionGenerator::addProperty ( const QByteArray &  name,
const QVariant &  value 
)
void qutim_sdk_0_3::ActionGenerator::create ( QAction *  action,
QObject *  obj 
) const
protected
virtual void qutim_sdk_0_3::ActionGenerator::createImpl ( QAction *  action,
QObject *  obj 
) const
protectedvirtual
virtual QObject* qutim_sdk_0_3::ActionGenerator::generateHelper ( ) const
protectedvirtual

Generate object.

This method have to be implemented to enable object generation

Returns
Generated object

Implements qutim_sdk_0_3::ObjectGenerator.

Reimplemented in qutim_sdk_0_3::MenuActionGenerator, qutim_sdk_0_3::WidgetActionGenerator, and qutim_sdk_0_3::StatusActionGenerator.

static ActionGenerator* qutim_sdk_0_3::ActionGenerator::get ( QAction *  )
static
virtual void qutim_sdk_0_3::ActionGenerator::hideImpl ( QAction *  action,
QObject *  obj 
)
protectedvirtual
QIcon qutim_sdk_0_3::ActionGenerator::icon ( ) const
bool qutim_sdk_0_3::ActionGenerator::iconVisibleInMenu ( ) const
virtual QList<QByteArray> qutim_sdk_0_3::ActionGenerator::interfaces ( ) const
protectedvirtual

Reimplemented from qutim_sdk_0_3::ObjectGenerator.

const char* qutim_sdk_0_3::ActionGenerator::member ( ) const
QAction::MenuRole qutim_sdk_0_3::ActionGenerator::menuRole ( ) const
virtual const QMetaObject* qutim_sdk_0_3::ActionGenerator::metaObject ( ) const
protectedvirtual

Generate object.

Parameters
superMeta info of superiour class
Returns
Generated object or null if object doesn't extends class represented by superiour meta info error Generate object
Parameters
idIdentification of needed interface
Returns
Generated object or null if class doesn't implement interface QMetaObject class, which represents object with meta info of generator's object
QMetaObject of generator's class

Implements qutim_sdk_0_3::ObjectGenerator.

QAction* qutim_sdk_0_3::ActionGenerator::prepareAction ( QAction *  action) const
protected
int qutim_sdk_0_3::ActionGenerator::priority ( ) const
const QObject* qutim_sdk_0_3::ActionGenerator::receiver ( ) const
void qutim_sdk_0_3::ActionGenerator::removeHandler ( int  type,
QObject *  obj 
)
void qutim_sdk_0_3::ActionGenerator::setCheckable ( bool  checkable)
void qutim_sdk_0_3::ActionGenerator::setChecked ( bool  checked)
void qutim_sdk_0_3::ActionGenerator::setIconVisibleInMenu ( bool  visible)
void qutim_sdk_0_3::ActionGenerator::setMenuController ( MenuController controller)
void qutim_sdk_0_3::ActionGenerator::setMenuRole ( QAction::MenuRole  role)
ActionGenerator* qutim_sdk_0_3::ActionGenerator::setPriority ( int  priority)
void qutim_sdk_0_3::ActionGenerator::setShortcut ( const QKeySequence &  shortcut)
void qutim_sdk_0_3::ActionGenerator::setShortcut ( const QString &  id)
void qutim_sdk_0_3::ActionGenerator::setToolTip ( const LocalizedString toolTip)
ActionGenerator* qutim_sdk_0_3::ActionGenerator::setType ( int  type)
QString qutim_sdk_0_3::ActionGenerator::shortcut ( ) const
virtual void qutim_sdk_0_3::ActionGenerator::showImpl ( QAction *  action,
QObject *  obj 
)
protectedvirtual
void qutim_sdk_0_3::ActionGenerator::subscribe ( QObject *  object,
const char *  method 
)
const LocalizedString& qutim_sdk_0_3::ActionGenerator::text ( ) const
int qutim_sdk_0_3::ActionGenerator::type ( ) const

Friends And Related Function Documentation

friend class ActionContainerPrivate
friend
friend class ActionToolBar
friend
friend class ActionValue
friend
friend class MenuController
friend
friend class MenuControllerPrivate
friend

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

Generated by Doxygen