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

akonadi

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

#include <agentinstancewidget.h>

Inherits QWidget.

Signals

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

Public Member Functions

 AgentInstanceWidget (QWidget *parent=0)
 
 ~AgentInstanceWidget ()
 
AgentFilterProxyModel * agentFilterProxyModel () const
 
AgentInstance currentAgentInstance () const
 
QList< AgentInstance > selectedAgentInstances () const
 
QAbstractItemView * view () const
 

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();
}
Akonadi::AgentInstanceWidget
Provides a widget that lists all available agent instances.
Definition agentinstancewidget.h:67
Akonadi::AgentInstance
A representation of an agent instance.
Definition agentinstance.h:63
Akonadi::AgentInstance::name
QString name() const
Returns the user visible name of the agent instance.
Definition agentinstance.cpp:65
Author
Tobias Koenig tokoe.nosp@m.@kde.nosp@m..org

Definition at line 66 of file agentinstancewidget.h.

Constructor & Destructor Documentation

◆ AgentInstanceWidget()

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

Creates a new agent instance widget.

Parameters
parentThe parent widget.

Definition at line 139 of file agentinstancewidget.cpp.

◆ ~AgentInstanceWidget()

Akonadi::AgentInstanceWidget::~AgentInstanceWidget ( )

Destroys the agent instance widget.

Definition at line 171 of file agentinstancewidget.cpp.

Member Function Documentation

◆ agentFilterProxyModel()

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

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

Definition at line 213 of file agentinstancewidget.cpp.

◆ clicked

void Akonadi::AgentInstanceWidget::clicked ( const Akonadi::AgentInstance & current)
signal

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

Parameters
currentThe current agent instance.
Since
4.9.1

◆ currentAgentInstance()

AgentInstance Akonadi::AgentInstanceWidget::currentAgentInstance ( ) const

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

Definition at line 176 of file agentinstancewidget.cpp.

◆ currentChanged

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

This signal is emitted whenever the current agent instance changes.

Parameters
currentThe current agent instance.
previousThe previous agent instance.

◆ doubleClicked

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

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

Parameters
currentThe current agent instance.

◆ selectedAgentInstances()

QList< AgentInstance > Akonadi::AgentInstanceWidget::selectedAgentInstances ( ) const

Returns the selected agent instances.

Since
4.5

Definition at line 191 of file agentinstancewidget.cpp.

◆ view()

QAbstractItemView * Akonadi::AgentInstanceWidget::view ( ) const

Returns the view used in the widget.

Since
4.5

Definition at line 208 of file agentinstancewidget.cpp.


The documentation for this class was generated from the following files:
  • agentinstancewidget.h
  • agentinstancewidget.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 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
  • 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