UINetworkManagerIndicator.h revision d34409ad02ea0d28e08a6c4b089a412fdb3b4c9c
/** @file
* VBox Qt GUI - UINetworkManagerIndicator stuff declaration.
*/
/*
* Copyright (C) 2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef __UINetworkManagerIndicator_h__
#define __UINetworkManagerIndicator_h__
/* Global includes: */
#include <QVector>
#include <QUuid>
/* Local includes: */
#include "QIStatusBarIndicator.h"
/* Forward declarations: */
/* Network-manager status-bar indicator states: */
{
};
/* Network-manager status-bar indicator: */
{
/** Update routine. */
void updateAppearance();
/* Allow creation of UINetworkManagerIndicator to UINetworkManager: */
/* Constructor: */
/* Add network-request token: */
/* Remove network-request token: */
/* Set particular network-request progress to 'started': */
/* Set particular network-request progress to 'canceled': */
/* Set particular network-request progress to 'failed': */
/* Set particular network-request progress to 'finished': */
/* Update particular network-request progress: */
struct UINetworkRequestData
{
: description(strDescription), bytesReceived(iBytesReceived), bytesTotal(iBytesTotal), failed(false) {}
int bytesReceived;
int bytesTotal;
bool failed;
};
/* Translate stuff: */
void retranslateUi();
/* Update stuff: */
void recalculateIndicatorState();
/* Variables: */
};
#endif // __UINetworkManagerIndicator_h__