Search for usage in LXR

KMyMoneyPlugin::OnlinePlugin Class Referenceabstract

#include <kmymoneyplugin.h>

Inheritance diagram for KMyMoneyPlugin::OnlinePlugin:

Public Member Functions

virtual QWidgetaccountConfigTab (const MyMoneyAccount &account, QString &tabName)=0
virtual bool mapAccount (const MyMoneyAccount &acc, MyMoneyKeyValueContainer &onlineBankingSettings)=0
virtual MyMoneyKeyValueContainer onlineBankingSettings (const MyMoneyKeyValueContainer &current)=0
virtual void protocols (QStringList &protocolList) const =0
virtual bool updateAccount (const MyMoneyAccount &acc, bool moreAccounts=false)=0

Detailed Description

This class describes the interface between the KMyMoney application and it's ONLINE-BANKING plugins.

All online banking plugins must provide this interface.

A good tutorial on how to design and develop a plugin structure for a KDE application (e.g. KMyMoney) can be found at

Definition at line 168 of file kmymoneyplugin.h.

Constructor & Destructor Documentation

◆ OnlinePlugin()

KMyMoneyPlugin::OnlinePlugin::OnlinePlugin ( )

Definition at line 82 of file kmymoneyplugin.cpp.

◆ ~OnlinePlugin()

KMyMoneyPlugin::OnlinePlugin::~OnlinePlugin ( )

Definition at line 86 of file kmymoneyplugin.cpp.

Member Function Documentation

◆ accountConfigTab()

virtual QWidget * KMyMoneyPlugin::OnlinePlugin::accountConfigTab ( const MyMoneyAccount & account,
QString & tabName )
pure virtual

This method returns a pointer to a widget representing an additional tab that will be added to the KNewAccountDlg.

The string referenced with tabName will be filled with the text that should be placed on the tab. It should return 0 if no additional tab is needed.

Information about the account can be taken out of account.

Once the pointer to the widget is returned to KMyMoney, it takes care of destruction of all included widgets when the dialog is closed. The plugin can access the widgets created after the call to storeConfigParameters() happened.

◆ mapAccount()

virtual bool KMyMoneyPlugin::OnlinePlugin::mapAccount ( const MyMoneyAccount & acc,
MyMoneyKeyValueContainer & onlineBankingSettings )
pure virtual

This method is called by the framework when the user wants to map a KMyMoney account onto an online account.

The KMyMoney account is identified by acc and the online provider should store its data in onlineBankingSettings upon success.

Return values
trueif account is mapped
falseif account is not mapped

◆ onlineBankingSettings()

virtual MyMoneyKeyValueContainer KMyMoneyPlugin::OnlinePlugin::onlineBankingSettings ( const MyMoneyKeyValueContainer & current)
pure virtual

This method is called by the framework whenever it is time to store the configuration data maintained by the plugin.

The plugin should use the widgets created in accountConfigTab() to extract the current values.

currentThe current container contains the current settings

◆ updateAccount()

virtual bool KMyMoneyPlugin::OnlinePlugin::updateAccount ( const MyMoneyAccount & acc,
bool moreAccounts = false )
pure virtual

This method is called by the framework when the user wants to update a KMyMoney account with data from an online account.

The KMyMoney account is identified by acc. The online provider should read its data from acc.onlineBankingSettings(). true is returned upon success. The plugin might consider to stack the requests in case moreAccounts is true. moreAccounts defaults to false.

Return values
trueif account is updated
falseif account is not updated

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:47:49 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.