viewinterface.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           viewinterface.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 VIEWINTERFACE_H
00019 #define VIEWINTERFACE_H
00020 
00021 #ifdef HAVE_CONFIG_H
00022 #include <config.h>
00023 #endif
00024 
00025 // ----------------------------------------------------------------------------
00026 // QT Includes
00027 
00028 #include <qobject.h>
00029 #include <qstring.h>
00030 #include <qpixmap.h>
00031 class QFrame;
00032 
00033 // ----------------------------------------------------------------------------
00034 // KDE Includes
00035 
00036 class KPopupMenu;
00037 
00038 // ----------------------------------------------------------------------------
00039 // Project Includes
00040 
00041 #include <kmymoney/mymoneyaccount.h>
00042 #include <kmymoney/mymoneyinstitution.h>
00043 #include <kmymoney/export.h>
00044 class KMyMoneyViewBase;
00045 namespace KMyMoneyRegister {
00046   class SelectedTransactions;
00047 };
00048 
00049 namespace KMyMoneyPlugin {
00050 
00056 class KMYMONEY_EXPORT ViewInterface : public QObject {
00057   Q_OBJECT
00058 
00059 public:
00060   ViewInterface(QObject* parent, const char* name = 0);
00061   ~ViewInterface() {}
00062 
00067   virtual KMyMoneyViewBase* addPage(const QString& item, const QString& icon) = 0;
00068 
00076   virtual void addWidget(KMyMoneyViewBase* view, QWidget* w) = 0;
00077 
00078 signals:
00085   void accountSelected(const MyMoneyAccount& acc);
00086 
00093   void transactionsSelected(const KMyMoneyRegister::SelectedTransactions& transactions);
00094 
00101   void institutionSelected(const MyMoneyInstitution& institution);
00102 
00115   void accountReconciled(const MyMoneyAccount& account, const QDate& date, const MyMoneyMoney& startingBalance, const MyMoneyMoney& endingBalance, const QValueList<QPair<MyMoneyTransaction, MyMoneySplit> >& transactionList);
00116 
00117 
00118   void viewStateChanged(bool);
00119   void kmmFilePlugin(unsigned int);
00120 };
00121 
00122 }; // namespace
00123 #endif

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