void HeaderChannel::setSupportedClients(std::bitset<CLIENT_TYPES_LEN> const* clients) { if (clients) { supported_clients = *clients; // Let's support insecure Header if SASL isn't explicitly supported. // It's ok for both to be supported by the caller, too. if (!supported_clients[THRIFT_HEADER_SASL_CLIENT_TYPE]) { supported_clients[THRIFT_HEADER_CLIENT_TYPE] = true; } if (supported_clients[THRIFT_HEADER_SASL_CLIENT_TYPE]) { setClientType(THRIFT_HEADER_SASL_CLIENT_TYPE); header_->setClientTypeNoCheck(THRIFT_HEADER_SASL_CLIENT_TYPE); } else { setClientType(THRIFT_HEADER_CLIENT_TYPE); header_->setClientTypeNoCheck(THRIFT_HEADER_CLIENT_TYPE); } } else { setSecurityPolicy(THRIFT_SECURITY_DISABLED); } }
ClsFEGroupPlot::ClsFEGroupPlot(ClsFEDataManager *_clsFEDataManager, QMutex *_qmutexSysGUI, string _strDataClientID, ClsFEGroup* _clsFEGroup) : ClsFEDataClient(_clsFEDataManager, _qmutexSysGUI, _strDataClientID) { #ifdef DEBUG_CLSFEGROUPPLOT cout << "ClsFEGroupPlot::ClsFEGroupPlot(...) [new]" << endl; #endif bSparseTopology = false; setClientType(CLIENT_SPACEPLOT); setAcceptDrops(TRUE); this->setIcon(QPixmap(icon_groupplot)); /* set up the WSpacePlot */ wSpacePlot = new WSpacePlot(QSize(0,0),FALSE,this, this); wSpacePlot->setColor(QColor(0,0,0)); wSpacePlot->showGrid(true); wSpacePlot->setMinimumWidth(200); (wSpacePlot->yAxis())->setDirection(-1); QBoxLayout* boxlayoutPlot = new QHBoxLayout(); boxlayoutPlot->addWidget(wSpacePlot,1); boxlayoutPlot->addWidget(wSpacePlot->getColorBar()); boxlayoutBase->addLayout(boxlayoutPlot, 0, 0); connect( wSpacePlot, SIGNAL(mouseEvent(QEvent::Type, QPoint, int, int)), this, SLOT(slotPlotMouseClick(QEvent::Type, QPoint, int, int)) ); connect( wSpacePlot, SIGNAL(wouldDrag()), this, SLOT(startDragging()) ); /* ----------------------- */ if(_clsFEGroup != NULL){ string strOutputStateName = _clsFEGroup->getNeuronOutput()->getName(); //NEW list<string> lstSelectedStates; // NEW lstSelectedStates.push_back(strOutputStateName); // NEW addStateVariableDisplay(_clsFEGroup, lstSelectedStates, ""); } QWidget::show(); };
ClsFETimePlot::ClsFETimePlot(ClsFEDataManager *_clsFEDataManager, QMutex *_qmutexSysGUI, string _strDataClientID) : ClsFEDataClient(_clsFEDataManager, _qmutexSysGUI, _strDataClientID) { #ifdef DEBUG_CLSFETIMEPLOT cout << "ClsFETimePlot::ClsFETimePlot(...)" << endl; #endif strTitle = "Time Plot"; setCaption(strTitle.c_str()); setClientType(CLIENT_TIMEPLOT); iTraceLength = 1000; this->setIcon(QPixmap(icon_timeplot)); setAcceptDrops(TRUE); wLinePlot = new WLinePlot(this,NULL); boxlayoutBase->addWidget(wLinePlot, 0, 0); wLinePlot->showGrid(true); wLinePlot->setXLabel("x-axis"); wLinePlot->setYLabel("y-axis"); wLinePlot->setZoomEnabled(TRUE); wLinePlot->setAutoDisableZoom(FALSE); wLinePlot->setWrapAround (false); wLinePlot->setTraceLength(iTraceLength); wLinePlot->setXDataRange(WRange(0., iTraceLength/2)); wLinePlot->setXVisRange(WRange(iTraceLength/2 - iTraceLength/20, iTraceLength/2)); wLinePlot->setMinimumWidth(200); qframeStateVariableDisplays = new QFrame(this); boxlayoutStateFrames = new QHBoxLayout(qframeStateVariableDisplays,0,0); boxlayoutBase->addWidget(qframeStateVariableDisplays, 0, 2); QWidget::show(); };
/** A typed constructor * * \param t the new client type * */ RainbruRPG::Network::npIdentification::npIdentification(tNetworkClientType t) :NetPacketBase(NPI_GEN_IDENT){ data=new npIdentificationData(); setClientType(t); }