class AgentTypeWidget


Module akonadi
Namespace Akonadi
Class AgentTypeWidget
Inherits QWidget
Provides a widget that lists all available agent types.

The widget is listening on the dbus for changes, so the widget is updated automatically as soon as new agent types are added to or removed from the system.

MyWidget.MyWidget( QWidget *parent ) : QWidget( parent ) { QVBoxLayout *layout = new QVBoxLayout( this );

mAgentTypeWidget = new Akonadi.AgentTypeWidget( this ); layout->addWidget( mAgentTypeWidget );

connect( mAgentTypeWidget, SIGNAL( currentChanged( Akonadi.AgentType&, Akonadi.AgentType& ) ), this, SLOT( slotTypeChanged( Akonadi.AgentType& ) ) ); }

...

MyWidget.slotTypeChanged( Akonadi.AgentType ¤t, Akonadi.AgentType& ) { qDebug() << "New selected type:" << current.name(); }

Author Tobias Koenig



methods