int Buddies::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QMainWindow::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: countOnlineUsers(); break; case 1: setUserStatus(); break; case 2: loginUser(); break; case 3: loginCurrentStatus(); break; case 4: validateUser(); break; case 5: stopifNotConnected(); break; case 6: myexit(); break; case 7: focusTabEdit(); break; case 8: structUser(); break; case 9: startChat(); break; case 10: helpAbout(); break; case 11: getSysInfo(); break; case 12: onlineNotify(); break; case 13: WriteOnWall(); break; case 14: Information(); break; case 15: dbstatus(); break; case 16: openNotes(); break; case 17: setIcon((*reinterpret_cast< int(*)>(_a[1]))); break; case 18: iconActivated((*reinterpret_cast< QSystemTrayIcon::ActivationReason(*)>(_a[1]))); break; case 19: messageClicked(); break; case 20: showMessage(); break; } _id -= 21; } return _id; }
void MooseApp::executeExecutioner() { // If ready to exit has been set, then just return if (_ready_to_exit) return; // run the simulation if (_executioner) { #ifdef LIBMESH_HAVE_PETSC Moose::PetscSupport::petscSetupOutput(_command_line); #endif if (hasLegacyOutput()) { Moose::out << getSysInfo(); printSimulationInfo(Moose::out); } _executioner->init(); _executioner->execute(); } else mooseError("No executioner was specified (go fix your input file)"); }
Buddies::Buddies(QWidget *parent) : QMainWindow(parent) { ui.setupUi(this); getSysInfo(); createIconGroupBox(); createActions(); createTrayIcon(); countOnlineUsers(); QTimer * counter = new QTimer( this ); connect( counter, SIGNAL(timeout()), this, SLOT(structUser()) ); counter->start( 3000 ); qDebug("=> Starting timer 1sec interval..."); //connect(ui.sendBtn, SIGNAL(clicked()), this, SLOT(showMessage())); // connect(ui.showIconCheckBox, SIGNAL(toggled(bool)), trayIcon, SLOT(setVisible(bool))); connect(ui.iconComboBox, SIGNAL(currentIndexChanged(int)),this, SLOT(setIcon(int))); connect(trayIcon, SIGNAL(messageClicked()), this, SLOT(messageClicked())); connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(iconActivated(QSystemTrayIcon::ActivationReason))); ui.iconComboBox->setCurrentIndex(1); trayIcon->show(); setWindowTitle(tr("Buddies")); //resize(400, 300); ui.listWidget->setIconSize(QSize(40, 40)); //showMessage(); //-- timer 5 min for online Users Baloon QTimer * onlinetimer = new QTimer( this ); connect( onlinetimer, SIGNAL(timeout()), this, SLOT(onlineNotify()) ); onlinetimer->start( 300000 ); qDebug("=> Starting timer 5min interval..."); //-- Information on Edit Tab Information(); //-- Database status dbstatus(); }
/** *suggest to call zkUpdate func in handler so as to update all nodes data */ void CLS_PROC::_handler(){ for(vsit=m_nodelist.begin(); vsit!=m_nodelist.end(); ++vsit){ std::string _node = FLAGS_business_name + "/" + m_hostname + "/" + *vsit; std::string _info = getSysInfo(*vsit); if(0 != _info.size()){ pzoo->zkUpdateNodeData(_node, _info, ZOO_EPHEMERAL); } } }