本文整理汇总了C++中SP::ReloadSections方法的典型用法代码示例。如果您正苦于以下问题:C++ SP::ReloadSections方法的具体用法?C++ SP::ReloadSections怎么用?C++ SP::ReloadSections使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SP
的用法示例。
在下文中一共展示了SP::ReloadSections方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main( int argc, char ** argv )
{
QApplication a( argc, argv );
puts("`````````````````````````````````````````````````");
printf("RESHKA MAIN PROCESS ID - %d\n", getpid());
printf("VERSION: %s\n", PROGRAMM_VERSION);
puts("`````````````````````````````````````````````````");
startHW();
get_setup_params();
hw->DSP_Up(UpStr);
hw->DSP_Down(DownStr);
init_keyboard_device(&a);
bool flag = auth_request(false);
if ( flag ) {
cfw = new mainmenuForm;
cfw->setWindowState(Qt::WindowNoState);
cfw->setWindowState(Qt::WindowFullScreen);
//printf("Authorization::GetInstance()->GetUserName() = %s \n", Authorization::GetInstance()->GetUserName());
cfw->textLabel2->setText(DBCodec->toUnicode((Authorization::GetInstance()->GetUserName())));
applyRights();
while ( true ) {
puts("------Main Menu------");
cfw->setWindowState(Qt::WindowNoState);
cfw->setWindowState(Qt::WindowFullScreen);
cfw->exec();
//printf("Selected point = %d \n", cfw->focus_num);
cfw->releaseKeyboard();
if ( cfw->exec_flag ) {
switch(cfw->focus_num) {
case 0 :
printf("--------lincash-------\n");
delete (hw);
ExecProgram(REG_PATH, REG_NAME, uid);//, REG_NAME); ///-------------------------23/10 16.41---------------
cfw->grabKeyboard();
//---(+)---Zuskin---27/02/2012---
sp.ReloadSections();
//-------------------------------
startHW();
hw->DSP_Up(UpStr);
hw->DSP_Down(DownStr);
break;
case 1 :
printf("-------service-----\n");
//delete (hw);
//QApplication::setOverrideCursor( QCursor(Qt::WaitCursor) );
//ExecProgram(SERVICE_PATH, SERVICE_NAME, uid);//, SERVICE_NAME);
StartService();
cfw->exec_flag = false;
cfw->grabKeyboard();
//QApplication::restoreOverrideCursor();
//startHW();
hw->DSP_Up(UpStr);
hw->DSP_Down(DownStr);
break;
case 2 :
printf("-------accessrights-------\n");
delete (hw);
//printf("RIGHTS_PATH = %s \n", RIGHTS_PATH);
ExecProgram(RIGHTS_PATH);//, RIGHTS_NAME);
Authorization::GetInstance()->GetRights(Authorization::GetInstance()->GetUid());
applyRights();
cfw->grabKeyboard();
startHW();
hw->DSP_Up(UpStr);
hw->DSP_Down(DownStr);
break;
case 3 :
printf("--------ware------\n");
delete (hw);
ExecProgram(WARE_PATH);//, SETUP_NAME);
cfw->grabKeyboard();
startHW();
hw->DSP_Up(UpStr);
hw->DSP_Down(DownStr);
break;
case 4 :
printf("-------programsetup-----\n");
StartSetup();
cfw->grabKeyboard();
get_setup_params();
cfw->exec_flag = false;
hw->DSP_Up(UpStr);
hw->DSP_Down(DownStr);
break;
case 5 :
printf("--------devicesetup-------\n");
if ( kbcode_scaner != NULL ) { delete (kbcode_scaner); kbcode_scaner = NULL; }
if ( kbcode_reader != NULL ) { delete (kbcode_reader); kbcode_reader = NULL; }
delete (hw);
ExecProgram(DCONF_PATH);//, DCONF_NAME);
cfw->grabKeyboard();
//.........这里部分代码省略.........