• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • AgentTypeWidget
Signals | Public Member Functions

Akonadi::AgentTypeWidget Class Reference

Provides a widget that lists all available agent types. More...

#include <agenttypewidget.h>

Inherits QWidget.

List of all members.

Signals

void activated ()
void currentChanged (const Akonadi::AgentType &current, const Akonadi::AgentType &previous)

Public Member Functions

 AgentTypeWidget (QWidget *parent=0)
 ~AgentTypeWidget ()
AgentFilterProxyModel * agentFilterProxyModel () const
AgentType currentAgentType () const

Detailed Description

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.

 Akonadi::AgentTypeWidget *widget = new Akonadi::AgentTypeWidget( this );

 // only list agent types that provide contacts
 widget->agentFilterProxyModel()->addMimeTypeFilter( "text/directory" );

If you want a dialog, you can use the Akonadi::AgentTypeDialog.

Author:
Tobias Koenig <tokoe@kde.org>

Definition at line 52 of file agenttypewidget.h.


Constructor & Destructor Documentation

Akonadi::AgentTypeWidget::AgentTypeWidget ( QWidget *  parent = 0) [explicit]

Creates a new agent type widget.

Parameters:
parentThe parent widget.

Definition at line 94 of file agenttypewidget.cpp.

Akonadi::AgentTypeWidget::~AgentTypeWidget ( )

Destroys the agent type widget.

Definition at line 120 of file agenttypewidget.cpp.


Member Function Documentation

void Akonadi::AgentTypeWidget::activated ( ) [signal]

This signal is emitted whenever the user activates an agent.

Since:
4.2
AgentFilterProxyModel * Akonadi::AgentTypeWidget::agentFilterProxyModel ( ) const

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

Definition at line 138 of file agenttypewidget.cpp.

AgentType Akonadi::AgentTypeWidget::currentAgentType ( ) const

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

Definition at line 125 of file agenttypewidget.cpp.

void Akonadi::AgentTypeWidget::currentChanged ( const Akonadi::AgentType &  current,
const Akonadi::AgentType &  previous 
) [signal]

This signal is emitted whenever the current agent type changes.

Parameters:
currentThe current agent type.
previousThe previous agent type.

The documentation for this class was generated from the following files:
  • agenttypewidget.h
  • agenttypewidget.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
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.3
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