statementinterface.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           statementinterface.h
00003                              -------------------
00004     begin                : Wed Jan 5 2005
00005     copyright            : (C) 2005 Thomas Baumgart
00006     email                : ipwizard@users.sourceforge.net
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef STATEMENTINTERFACE_H
00019 #define STATEMENTINTERFACE_H
00020 
00021 #ifdef HAVE_CONFIG_H
00022 #include <config.h>
00023 #endif
00024 
00025 // ----------------------------------------------------------------------------
00026 // QT Includes
00027 
00028 #include <qobject.h>
00029 
00030 // ----------------------------------------------------------------------------
00031 // KDE Includes
00032 
00033 // ----------------------------------------------------------------------------
00034 // Project Includes
00035 
00036 #include <kmymoney/mymoneystatement.h>
00037 #include <kmymoney/mymoneyaccount.h>
00038 #include <kmymoney/export.h>
00039 
00040 namespace KMyMoneyPlugin {
00041 
00046 class KMYMONEY_EXPORT StatementInterface : public QObject {
00047   Q_OBJECT
00048 
00049 public:
00050   StatementInterface(QObject* parent, const char* name = 0);
00051   ~StatementInterface() {}
00052 
00056   virtual bool import(const MyMoneyStatement& s) = 0;
00057 
00063   virtual const MyMoneyAccount& account(const QString& key, const QString& value) const = 0;
00064 
00067   virtual void setAccountOnlineParameters(const MyMoneyAccount& acc, const MyMoneyKeyValueContainer& kvps) const = 0;
00068 
00069 };
00070 
00071 }; // namespace
00072 #endif

Generated on Wed Jan 26 13:03:18 2011 for KMyMoney by  doxygen 1.5.6