00001 /*************************************************************************** 00002 konlinebankingsetupwizard.h 00003 ------------------- 00004 begin : Sat Jan 7 2006 00005 copyright : (C) 2006 by Ace Jones 00006 email : acejones@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 KONLINEBANKINGSETUPWIZARD_H 00019 #define KONLINEBANKINGSETUPWIZARD_H 00020 00021 // ---------------------------------------------------------------------------- 00022 // Library Includes 00023 00024 #include <libofx/libofx.h> 00025 00026 // ---------------------------------------------------------------------------- 00027 // QT Includes 00028 00029 #include <qwidget.h> 00030 #include <qvaluelist.h> 00031 #include <qlistview.h> 00032 00033 // ---------------------------------------------------------------------------- 00034 // KDE Includes 00035 00036 // ---------------------------------------------------------------------------- 00037 // Project Includes 00038 00039 #include "konlinebankingsetupdecl.h" 00040 #include <kmymoney/mymoneykeyvaluecontainer.h> 00041 class OfxAppVersion; 00042 class OfxHeaderVersion; 00043 00061 class KOnlineBankingSetupWizard : public KOnlineBankingSetupDecl 00062 { 00063 Q_OBJECT 00064 public: 00065 class ListViewItem: public MyMoneyKeyValueContainer, public QListViewItem 00066 { 00067 public: 00068 ListViewItem( QListView* parent, const MyMoneyKeyValueContainer& kvps ); 00069 virtual void x(void); 00070 }; 00071 00072 KOnlineBankingSetupWizard(QWidget *parent=0, const char *name=0); 00073 ~KOnlineBankingSetupWizard(); 00074 00075 bool chosenSettings( MyMoneyKeyValueContainer& settings ); 00076 00077 bool isInit(void) const { return m_fInit; } 00078 00079 public slots: 00080 void next(); 00081 00082 protected: 00083 bool finishAccountPage(void); 00084 bool finishLoginPage(void); 00085 bool finishFiPage(void); 00086 bool post(const char* request, const char* url,const char* filename); 00087 00088 static int ofxAccountCallback(struct OfxAccountData data, void * pv); 00089 static int ofxStatusCallback(struct OfxStatusData data, void * pv); 00090 00091 private: 00093 class Private; 00095 Private* const d; 00096 00097 QValueList<OfxFiServiceInfo> m_bankInfo; 00098 QValueList<OfxFiServiceInfo>::const_iterator m_it_info; 00099 bool m_fDone; 00100 bool m_fInit; 00101 OfxAppVersion* m_appId; 00102 OfxHeaderVersion* m_headerVersion; 00103 }; 00104 00105 #endif 00106 // vim:cin:si:ai:et:ts=2:sw=2: