You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
2.5 KiB
78 lines
2.5 KiB
13 years ago
|
/***************************************************************************
|
||
|
kmmstatementinterface.h
|
||
|
-------------------
|
||
|
begin : Wed Jan 5 2005
|
||
|
copyright : (C) 2005 Thomas Baumgart
|
||
|
email : ipwizard@users.sourceforge.net
|
||
|
***************************************************************************/
|
||
|
|
||
|
/***************************************************************************
|
||
|
* *
|
||
|
* This program is free software; you can redistribute it and/or modify *
|
||
|
* it under the terms of the GNU General Public License as published by *
|
||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||
|
* (at your option) any later version. *
|
||
|
* *
|
||
|
***************************************************************************/
|
||
|
|
||
|
#ifndef KMMSTATEMENTINTERFACE_H
|
||
|
#define KMMSTATEMENTINTERFACE_H
|
||
|
|
||
|
#ifdef HAVE_CONFIG_H
|
||
|
#include <config.h>
|
||
|
#endif
|
||
|
|
||
|
// ----------------------------------------------------------------------------
|
||
|
// QT Includes
|
||
|
|
||
|
// ----------------------------------------------------------------------------
|
||
|
// KDE Includes
|
||
|
|
||
|
// ----------------------------------------------------------------------------
|
||
|
// Project Includes
|
||
|
|
||
|
class KMyMoney2App;
|
||
|
class MyMoneyAccount;
|
||
|
class MyMoneyKeyValueContainer;
|
||
|
|
||
|
#include "../statementinterface.h"
|
||
|
|
||
|
namespace KMyMoneyPlugin {
|
||
|
|
||
|
/**
|
||
|
* This class represents the implementation of the
|
||
|
* StatementInterface.
|
||
|
*/
|
||
|
class KMMStatementInterface : public StatementInterface
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
KMMStatementInterface(KMyMoney2App* app, QObject* parent, const char* name = 0);
|
||
|
~KMMStatementInterface() {}
|
||
|
|
||
|
/**
|
||
|
* This method imports a MyMoneyStatement into the engine
|
||
|
*/
|
||
|
bool import(const MyMoneyStatement& s);
|
||
|
|
||
|
/**
|
||
|
* This method returns the account for a given @a key - @a value pair.
|
||
|
* If the account is not found in the list of accounts, MyMoneyAccount()
|
||
|
* is returned.
|
||
|
*/
|
||
|
const MyMoneyAccount& account(const QString& key, const QString& value) const;
|
||
|
|
||
|
/**
|
||
|
* This method stores the online parameters in @a kvps used by the plugin
|
||
|
* with the account @a acc.
|
||
|
*/
|
||
|
void setAccountOnlineParameters(const MyMoneyAccount&acc, const MyMoneyKeyValueContainer& kvps) const;
|
||
|
|
||
|
private:
|
||
|
KMyMoney2App* m_app;
|
||
|
};
|
||
|
|
||
|
}; // namespace
|
||
|
#endif
|