• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • AgentTypeWidget
Signals | Public Member Functions | List of all members
Akonadi::AgentTypeWidget Class Reference

#include <agenttypewidget.h>

Inherits QWidget.

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" );
Akonadi::AgentFilterProxyModel::addMimeTypeFilter
void addMimeTypeFilter(const QString &mimeType)
Accept agents supporting mimeType.
Definition: agentfilterproxymodel.cpp:62
Akonadi::AgentTypeWidget
Provides a widget that lists all available agent types.
Definition: agenttypewidget.h:53
Akonadi::AgentTypeWidget::agentFilterProxyModel
AgentFilterProxyModel * agentFilterProxyModel() const
Returns the agent filter proxy model, use this to filter by agent mimetype or capabilities.
Definition: agenttypewidget.cpp:143

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

Author
Tobias Koenig tokoe.nosp@m.@kde.nosp@m..org

Definition at line 52 of file agenttypewidget.h.

Constructor & Destructor Documentation

◆ AgentTypeWidget()

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

Creates a new agent type widget.

Parameters
parentThe parent widget.

Definition at line 96 of file agenttypewidget.cpp.

◆ ~AgentTypeWidget()

Akonadi::AgentTypeWidget::~AgentTypeWidget ( )

Destroys the agent type widget.

Definition at line 123 of file agenttypewidget.cpp.

Member Function Documentation

◆ activated

void Akonadi::AgentTypeWidget::activated ( )
signal

This signal is emitted whenever the user activates an agent.

Since
4.2

◆ agentFilterProxyModel()

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

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

Definition at line 143 of file agenttypewidget.cpp.

◆ currentAgentType()

AgentType Akonadi::AgentTypeWidget::currentAgentType ( ) const

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

Definition at line 128 of file agenttypewidget.cpp.

◆ currentChanged

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
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

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

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal