• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

akonadi

Akonadi::AgentInstanceWidget

Akonadi::AgentInstanceWidget Class Reference

#include <agentinstancewidget.h>

Inherits QWidget.

List of all members.


Detailed Description

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 <tokoe@kde.org>

Definition at line 64 of file agentinstancewidget.h.


Signals

void currentChanged (const Akonadi::AgentInstance &current, const Akonadi::AgentInstance &previous)
void doubleClicked (const Akonadi::AgentInstance &current)

Public Member Functions

AgentFilterProxyModel * agentFilterProxyModel () const
 AgentInstanceWidget (QWidget *parent=0)
AgentInstance currentAgentInstance () const
 ~AgentInstanceWidget ()

Constructor & Destructor Documentation

AgentInstanceWidget::AgentInstanceWidget ( QWidget *  parent = 0  )  [explicit]

Creates a new agent instance widget.

Parameters:
parent The parent widget.

Definition at line 112 of file agentinstancewidget.cpp.

AgentInstanceWidget::~AgentInstanceWidget (  ) 

Destroys the agent instance widget.

Definition at line 138 of file agentinstancewidget.cpp.


Member Function Documentation

AgentFilterProxyModel * AgentInstanceWidget::agentFilterProxyModel (  )  const

Returns the agent filter proxy model, use this to filter by agent mimetype or capabilities.

Definition at line 156 of file agentinstancewidget.cpp.

AgentInstance AgentInstanceWidget::currentAgentInstance (  )  const

Returns the current agent instance or an invalid agent instance if no agent instance is selected.

Definition at line 143 of file agentinstancewidget.cpp.

void Akonadi::AgentInstanceWidget::currentChanged ( const Akonadi::AgentInstance &  current,
const Akonadi::AgentInstance &  previous 
) [signal]

This signal is emitted whenever the current agent instance changes.

Parameters:
current The current agent instance.
previous The previous agent instance.

void Akonadi::AgentInstanceWidget::doubleClicked ( const Akonadi::AgentInstance &  current  )  [signal]

This signal is emitted whenever the there is a double click on an agent instance.

Parameters:
current The current agent instance.


The documentation for this class was generated from the following files:
  • agentinstancewidget.h
  • agentinstancewidget.cpp

akonadi

Skip menu "akonadi"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.6
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal