lxinstitutecontextdata.cc

来自「LxBank是一个基于Qt/X的家庭储蓄应用程序」· CC 代码 · 共 94 行

CC
94
字号
// ****************************************************************************// // 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 LxContextSelectDialog: DDV-card context data for LxBank*/ // ***************************************************************************//// $Name:  $//// $State: Exp $//// $Log: LxInstituteContextData.cc,v $// Revision 1.2  2003/02/08 15:25:21  franz// Mail address changed.//// Revision 1.1  2003/01/02 15:04:45  franz// Started to use the openHBCI lib.////#ifdef HAVE_CONFIG_H#include <config.h>#endif#include "LxInstituteContextData.h"LxInstituteContextData::LxInstituteContextData (){  state = Invalid;  stateStr = "invalid";}LxInstituteContextData::LxInstituteContextData (const string &data)  : instdata (data){    if ( instdata.code() == "00000000" || instdata.user().empty() ){      state = Invalid;      stateStr = "invalid";    }else{      state = Valid;      stateStr = "valid";    }}LxInstituteContextData::LxInstituteContextData (const HBCICard::instituteData &data)  : instdata (data){    if ( instdata.code() == "00000000" || instdata.user().empty() ){      state = Invalid;      stateStr = "invalid";    }else{      state = Valid;      stateStr = "valid";    }}LxInstituteContextData::LxInstituteContextData (const LxInstituteContextData &cdata)  : instdata(cdata.instdata), state(cdata.state), stateStr(cdata.stateStr){}const LxInstituteContextData& LxInstituteContextData::operator= (const LxInstituteContextData &cdata){  if (this == &cdata)    return *this;  instdata = cdata.instdata;  state    = cdata.state;  stateStr = cdata.stateStr;  return *this;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?