void sansm_Remove(qcom_sGet* get) { gdb_sNode* np; san_sServer* sp; int i; net_sSanRemove* rp = get->data; int old_cnt; gdb_AssumeUnlocked; gdb_ScopeLock { np = hash_Search(NULL, gdbroot->nid_ht, &rp->hdr.nid); if (np == NULL) break; old_cnt = np->sansAct_lc; for (i = 0; i < rp->count; i++) { sp = hash_Search(NULL, gdbroot->sans_ht, &rp->sid[i]); if (sp == NULL) continue; removeServer(np, sp); } } gdb_ScopeUnlock; }
PackageManagerSettings::PackageManagerSettings( QWidget* parent, const char* name, WFlags fl ) : PackageManagerSettingsBase( parent, name, fl ) { connect( newserver, SIGNAL(clicked()), this, SLOT(newServer()) ); connect( removeserver, SIGNAL(clicked()), this, SLOT(removeServer()) ); connect( servers, SIGNAL(highlighted(int)), this, SLOT(editServer(int)) ); connect( newdestination, SIGNAL(clicked()), this, SLOT(newDestination()) ); connect( removedestination, SIGNAL(clicked()), this, SLOT(removeDestination()) ); connect( destinations, SIGNAL(highlighted(int)), this, SLOT(editDestination(int)) ); // connect( CheckBoxLink, SIGNAL(toggled(bool)), // activeLinkDestination, SLOT(setEnabled(bool)) ); // connect( settingName, SIGNAL(activated(int)), this, SLOT(installationSettingChange(int)) ); // connect( settingName, SIGNAL(textChanged(const QString&)), this, SLOT(installationSettingSetName(const QString&)) ); // connect( newsetting, SIGNAL(clicked()), this, SLOT(newInstallationSetting()) ); // connect( renamesetting, SIGNAL(clicked()), this, SLOT(renameInstallationSetting()) ); // connect( removesetting, SIGNAL(clicked()), this, SLOT(removeInstallationSetting()) ); servername->setEnabled(FALSE); serverurl->setEnabled(FALSE); serverurlDic.setAutoDelete(TRUE); destinationname->setEnabled(FALSE); destinationurl->setEnabled(FALSE); destinationurlDic.setAutoDelete(TRUE); readSettings(); activeLinkDestination->hide(); serverChanged = false; // get rid of setups // Settings->hide(); // settingName->hide(); // newsetting->hide(); // renamesetting->hide(); // removesetting->hide(); }
ScriptEngineRemoteLocal::ScriptEngineRemoteLocal() { qDebug() << serverName(); // server removeServer(serverName()); if (!listen(serverName())) { qWarning() << tr("Error: Unable to start the server (agros2d-server): %1.").arg(errorString()); return; } connect(this, SIGNAL(newConnection()), this, SLOT(connected())); }
serversDialog::serversDialog(QWidget *parent) : QDialog(parent) { setupUi(this) ; connect(buttonBox,SIGNAL(rejected()),this,SLOT(deleteLater())) ; connect(buttonBox,SIGNAL(accepted()),this,SLOT(acceptList())) ; connect(addButton,SIGNAL(clicked()),this,SLOT(addServer())) ; connect(editButton,SIGNAL(clicked()),this,SLOT(editServer())) ; connect(removeButton,SIGNAL(clicked()),this,SLOT(removeServer())) ; connect(serverList,SIGNAL(itemSelectionChanged()),this,SLOT(rowChanged())) ; updateServerList() ; }
void sansm_FlushNode(pwr_tStatus* sts, gdb_sNode* np) { san_sServer* sp; pool_sQlink* sl; gdb_AssumeLocked; for (sl = pool_Qsucc(NULL, gdbroot->pool, &np->sansAct_lh); sl != &np->sansAct_lh;) { sp = pool_Qitem(sl, san_sServer, sansAct_ll); sl = pool_Qsucc(NULL, gdbroot->pool, sl); removeServer(np, sp); } if (sts != NULL) *sts = 1; return; }
static san_sServer* checkServer(gdb_sNode* np, san_sServer* sp) { gdb_sObject* op; if (!gdbroot->is_tmon || sp->op == NULL) { op = hash_Search(NULL, gdbroot->oid_ht, &sp->sane.oid); if (op == NULL || !op->l.flags.b.isOwned) { removeServer(np, sp); return NULL; } if (gdbroot->is_tmon) sp->op = op; } else op = sp->op; if (op->l.al.idx <= sp->al.idx) return sp; if (!sp->flags.b.sansUpd) { pool_QinsertPred(NULL, gdbroot->pool, &sp->sansUpd_ll, &np->sansUpd_lh); sp->flags.b.sansUpd = 1; } if (!op->g.flags.b.isMountClient) { sp->al.a = op->l.al.a; sp->al.b = op->l.al.b; sp->al.maxa = op->u.n.ral.maxa; sp->al.maxb = op->u.n.ral.maxb; } else memset(&sp->al, 0, sizeof(sp->al)); sp->al.idx = op->l.al.idx; return sp; }
ServerInputDialog::ServerInputDialog( const QVector< ServerLogic::Server > &servers, QWidget *parent ) : QDialog( parent ), m_ui( new Ui::ServerInputDialog ) { m_ui->setupUi( this ); connect( m_ui->buttonSave, SIGNAL( accepted() ), this, SLOT( accept() ) ); connect( m_ui->buttonCancel, SIGNAL( rejected() ), this, SLOT( reject() ) ); connect( m_ui->add, SIGNAL( clicked() ), this, SLOT( addServer() ) ); connect( m_ui->remove, SIGNAL( clicked() ), this, SLOT( removeServer() ) ); QStringList labels; labels << "name" << "url"; m_ui->serverList->setHorizontalHeaderLabels( labels ); m_ui->serverList->horizontalHeader()->setSectionResizeMode( QHeaderView::ResizeToContents ); m_ui->serverList->horizontalHeader()->setStretchLastSection( true ); for ( int i = 0; i < servers.size(); i++ ) { m_ui->serverList->insertRow(i); m_ui->serverList->setItem( i, 0, new QTableWidgetItem( servers.at(i).name ) ); m_ui->serverList->setItem( i, 1, new QTableWidgetItem( servers.at(i).url.toString( ) ) ); } }
ConnectionServer::~ConnectionServer() { killTimer(aliveTimerId); removeServer(); }