ultimatepp/uppdev/bigmailer/cfgDlg.cpp
cxl 351994a6cc Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

43 lines
670 B
C++

#include <bigmailer/bigmailer.h>
#include <sTools/sTools.h>
void bigmailer::onPreferences()
{
cfgDlg c ;
c.Execute() ;
}
cfgDlg::cfgDlg()
{
CtrlLayout(*this, t_("Preferences") );
btOK.WhenAction = THISBACK(onBtOK) ;
edServer.SetData( theCfg.smtpServer ) ;
edUser.SetData( theCfg.user ) ;
edPass.SetData( theCfg.pass ) ;
edBlackList.SetData( VectorString2String(theCfg.blackList) ) ;
}
cfgDlg::~cfgDlg()
{
}
void cfgDlg::onBtOK()
{
theCfg.smtpServer = ~edServer ;
theCfg.user = ~edUser ;
theCfg.pass = ~edPass ;
theCfg.blackList = String2VectorString(~edBlackList) ;
theCfg.Save() ;
Close() ;
}
/*
*/