UIDownloaderAdditions.h revision e64031e20c39650a7bc902a3e1aba613b9415dee
/** @file
*
* VBox frontends: Qt GUI ("VirtualBox"):
* UIDownloaderAdditions class declaration
*/
/*
* Copyright (C) 2006-2010 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 __UIDownloaderAdditions_h__
#define __UIDownloaderAdditions_h__
/* Local includes */
#include "QIWithRetranslateUI.h"
#include "UIDownloader.h"
/* Global includes */
#include <QPointer>
{
{
}
void retranslateUi()
{
"Additions CD image download"));
"CD image from <nobr><b>%1</b>...</nobr>")
}
};
{
static UIDownloaderAdditions* create();
static UIDownloaderAdditions* current();
static void destroy();
QWidget *parentWidget() const;
void startDownload();
void downloadFinished(bool fError);
void suicide();
bool confirmDownload();
/* Private member vars */
static UIDownloaderAdditions *m_pInstance;
/* We use QPointer here, cause these items could be deleted in the life of
* this object. QPointer guarantees that the ptr itself is zero in that
* case. */
};
#endif // __UIDownloaderAdditions_h__