📄 lxuseraddwizard.h
字号:
// -*- C++ -*-// ****************************************************************************// // LxBank - home-banking for Linux using the HBCI standard// // Author: Franz Zimmermann 83043 Bad Aibling// // Copyright (C) 2002-2003 Franz Zimmermann - arafang@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.// // This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License for more details.// // You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.// // ***************************************************************************//// ***************************************************************************// /*! \file \brief LxUserAddWizard: Add a new banking user (owner of a security medium)*/ // ***************************************************************************//// $Name: $//// $State: Exp $//// $Log: LxUserAddWizard.h,v $// Revision 1.4 2003/05/03 20:27:05 arafang// Use LxBankSelectionList within LxUserAddWizard to show a list// with BTX-names to put into the Short-Name input field.//// Revision 1.3 2003/02/08 15:25:21 franz// Mail address changed.//// Revision 1.2 2003/01/03 17:15:32 franz// LxUserAddWizard able to create a DDV-Card user.//// Revision 1.1 2003/01/02 15:04:45 franz// Started to use the openHBCI lib.////#ifndef LX_USER_ADD_WIZARD_H#define LX_USER_ADD_WIZARD_H#include "LxHbci.h"#include <qwidget.h>#include <qwizard.h>class QWidget;class QHBox;class QVBox;class QGroupBox;class QLineEdit;class QButtonGroup;class QRadioButton;class QCheckBox;class QLabel;class QPushButton;class LxUserAddWizard : public QWizard{ Q_OBJECTpublic: LxUserAddWizard( LxHbci *hbciapi, QWidget *parent = 0, const char *name = 0 ); virtual ~LxUserAddWizard(); virtual void showPage( QWidget* page );protected slots: void mediumChoiceDone ( int id ); void DDVcheckButtonClicked ( ); void showBTXnames (); void checkBankCode(const QString &); void checkBankServer(const QString &); void checkBankShortName(const QString &); void checkBankCountry(const QString &); void checkUserId(const QString &); void checkUserName(const QString &); void fromDDVmediumButtonClicked ( ); void RDHfileBrowseClicked (); void RDHfileNameTextChanged ( const QString & ); void RDHfileNameReturnPressed (); void HBCIversionChoiceDone ( int id );// void initCardButtonToggled ( bool state ); void bankCodeTextChanged ( const QString & );protected: void setupMediumSelectionPage(); void setupDDVmediumCheckPage(); void setupRDHmediumFilePage(); void setupRDHmediumCheckPage(); void setupBankUserDataPage(); void setupHBCIversionSelectionPage(); void setupFinishPage(); void setTextOnFinishPage(); bool initDDVcard (); virtual void accept (); bool createDDVuser ();private: enum BankUserDataState{ UnComplete = 0, BankCodeChecked = (1 << 0), BankServerChecked = (1 << 1), BankShortNameChecked = (1 << 2), BankCountryChecked = (1 << 3), UserIdChecked = (1 << 4), UserNameChecked = (1 << 5) }; LxHbci *hbciApi;// string code;// string server; int securityMode;// int country; int HBCIversion; bool HBCIversionSelected; QString RDHfileName; HBCI::Pointer<HBCI::MediumDDV> DDVmedium; HBCI::Pointer<HBCI::Medium> medium; HBCI::Pointer<HBCI::Bank> bank; HBCI::Pointer<HBCI::User> user; HBCI::Pointer<HBCI::Customer> customer; string DDVcardNumber; int DDVcontextIndex;// medium selection QHBox *mediumSelectionPage; QButtonGroup *choices; QRadioButton *rdhMedium; QRadioButton *ddvMedium;// DDV medium check QVBox *DDVmediumCheckPage; bool DDVcardCheckResult; QLabel *DDVcheckExplain; QPushButton* DDVcheckButton; QLabel *DDVcheckResultLabel; QLabel *DDVcheckResult;// RDH file selection QHBox *RDHmediumFilePage; QLineEdit *RDHmediumFileName;// RDH medium check QHBox *RDHmediumCheckPage;// institute and user data QVBox *bankUserDataPage; long complete; long bankUserDataComplete; QGroupBox *bankDataBox; QLabel *bankCodeLabel; QLineEdit *bankCodeInput; // BLZ QLabel *bankServerLabel; QLineEdit *bankServerInput; // Internet address QLabel *bankShortNameLabel; QLineEdit *bankShortNameInput; // Institute name, short form QHBox *bankShortNameBox; QPushButton *bankShortNameSelect; QLabel *bankCountryLabel; QLineEdit *bankCountryInput; // Country code, 280 for germany QLabel *bankHBCIversionLabel; QLineEdit *bankHBCIversionInput; // HBCI-Protocol version QGroupBox *userDataBox; QLabel *userNameLabel; QLineEdit *userNameInput; QLabel *userIdLabel; QLineEdit *userIdInput; QLabel *userCustomerLabel; QLineEdit *userCustomerInput; QPushButton *fromDDVmedium; QCheckBox *initCard;// HBCI version selection QHBox *HBCIversionPage; QButtonGroup *HBCIchoices; QRadioButton *version201; QRadioButton *version210; QRadioButton *version220;// finish QHBox *finishPage; QGroupBox *newUserDataBox; QLabel *securityMediumLab; QLineEdit *securityMediumTxt; QLabel *bankCodeLab; QLineEdit *bankCodeTxt; QLabel *bankServerLab; QLineEdit *bankServerTxt; QLabel *bankShortNameLab; QLineEdit *bankShortNameTxt; QLabel *bankCountryLab; QLineEdit *bankCountryTxt; QLabel *bankHBCIversionLab; QLineEdit *bankHBCIversionTxt; QLabel *userNameLab; QLineEdit *userNameTxt; QLabel *userIdLab; QLineEdit *userIdTxt; QLabel *userCustomerLab; QLineEdit *userCustomerTxt;};#endif // LxUserAddWizard.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -