void ScanServers( void ) { Debug( "ScanServers\n" ); addServers( staticServers, dFromFile | dPermanent ); addServers( reserveServers, dFromFile | dReserve ); }
ServersList::ServersList(QString dbName, DbEnv *_dbEnv, Servers *_servers, QWidget* parent) : QTreeWidget(parent), servers(_servers), dbEnv(_dbEnv),serversDbName(dbName) { #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) this->header()->setMovable(false); #else this->header()->setSectionsMovable(false); #endif m_loadServers(); //this populates the serverlist addServers(); //this populates the listview connect(this, SIGNAL(itemSelectionChanged()), this, SLOT(slotSelectionChanged())); serverSpeedTimer = new QTimer(); connect(serverSpeedTimer, SIGNAL(timeout()), this, SLOT(slotServerSpeedTimeout())); qDebug() << "In ServersList::ServersList 1"; }
void ServersList::serversListInit() { NntpHost::initHostMaps(); activeIcon = new QIcon(QString::fromUtf8(":/quban/images/ginux/Entire_Network-16.png")); activePausedIcon = new QIcon(QString::fromUtf8(":/quban/images/ginux/Entire_Network_Paused-16.png")); passiveIcon = new QIcon(QString::fromUtf8(":/quban/images/ginux/Passive_Network-16.png")); passivePausedIcon = new QIcon(QString::fromUtf8(":/quban/images/ginux/Passive_Network_Paused-16.png")); dormantIcon = new QIcon(QString::fromUtf8(":/quban/images/ginux/Dormant_Network-16.png")); m_loadServers(); //this populates the serverlist addServers(); //this populates the listview connect(this, SIGNAL(itemSelectionChanged()), this, SLOT(slotSelectionChanged())); qDebug() << "In ServersList::serversListInit"; serverSpeedTimer = new QTimer(this); connect(serverSpeedTimer, SIGNAL(timeout()), this, SLOT(slotServerSpeedTimeout())); }