コード例 #1
0
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()));
    }
コード例 #2
0
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();
}
コード例 #3
0
/* 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();
}
コード例 #4
0
void UINetworkManagerDialog::sltHandleCancelAllButtonPress()
{
    /* Ask if user wants to cancel all current network-requests: */
    if (msgCenter().confirmCancelingAllNetworkRequests())
        emit sigCancelNetworkRequests();
}
コード例 #5
0
ファイル: UINetworkManager.cpp プロジェクト: miguelinux/vbox
void UINetworkManager::prepare()
{
    /* Prepare network-manager dialog: */
    m_pNetworkManagerDialog = new UINetworkManagerDialog;
    connect(m_pNetworkManagerDialog, SIGNAL(sigCancelNetworkRequests()), this, SIGNAL(sigCancelNetworkRequests()));
}