void UINetworkManager::prepare() { /* Prepare network-manager dialog: */ m_pNetworkManagerDialog = new UINetworkManagerDialog; connect(m_pNetworkManagerDialog, SIGNAL(sigCancelNetworkRequests()), this, SIGNAL(sigCancelNetworkRequests())); /* Prepare network-manager state-indicator: */ if (!vboxGlobal().isVMConsoleProcess()) { m_pNetworkManagerIndicator = new UINetworkManagerIndicator; connect(m_pNetworkManagerIndicator, SIGNAL(sigMouseDoubleClick(QIStatusBarIndicator*, QMouseEvent*)), this, SLOT(show())); }
void UINetworkRequest::prepare() { /* Prepare listeners for network-manager: */ connect(manager(), SIGNAL(sigCancelNetworkRequests()), this, SLOT(sltCancel()), Qt::QueuedConnection); /* Choose first url as current: */ m_iUrlIndex = 0; m_url = m_urls.at(m_iUrlIndex); /* Register network-request in network-manager: */ manager()->registerNetworkRequest(this); /* Prepare network-reply: */ prepareNetworkReply(); }
/* Initialize: */ void UINetworkRequest::initialize() { /* Prepare listeners for parent(): */ connect(parent(), SIGNAL(sigCancelNetworkRequests()), this, SLOT(sltCancel())); /* Create network-request widget in network-manager dialog: */ m_pNetworkManagerDialog->addNetworkRequestWidget(this); /* Create network-request description in network-manager state-indicator: */ m_pNetworkManagerIndicator->addNetworkRequest(this); /* Choose first network-request as current: */ m_iCurrentRequestIndex = 0; m_request = m_requests[m_iCurrentRequestIndex]; /* Create network-reply: */ prepareNetworkReply(); }
void UINetworkManagerDialog::sltHandleCancelAllButtonPress() { /* Ask if user wants to cancel all current network-requests: */ if (msgCenter().confirmCancelingAllNetworkRequests()) emit sigCancelNetworkRequests(); }
void UINetworkManager::prepare() { /* Prepare network-manager dialog: */ m_pNetworkManagerDialog = new UINetworkManagerDialog; connect(m_pNetworkManagerDialog, SIGNAL(sigCancelNetworkRequests()), this, SIGNAL(sigCancelNetworkRequests())); }