viewinterface.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
00027
00028 #include <qobject.h>
00029 #include <qstring.h>
00030 #include <qpixmap.h>
00031 class QFrame;
00032
00033
00034
00035
00036 class KPopupMenu;
00037
00038
00039
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 };
00123 #endif