class AgentInstanceWidget


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

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

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

mAgentInstanceWidget = new Akonadi.AgentInstanceWidget( this ); layout->addWidget( mAgentInstanceWidget );

connect( mAgentInstanceWidget, SIGNAL( doubleClicked( Akonadi.AgentInstance& ) ), this, SLOT( slotInstanceSelected( Akonadi.AgentInstance& ) ) ); }

...

MyWidget.slotInstanceSelected( Akonadi.AgentInstance &instance ) { qDebug() << "Selected instance" << instance.name(); }

Author Tobias Koenig



methods