Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

VBoxDownloaderWgt Class Reference

#include <VBoxDownloaderWgt.h>

Inheritance diagram for VBoxDownloaderWgt:

List of all members.

Detailed Description

class VBoxDownloaderWgt

The VBoxDownloaderWgt class is an QWidget class for Guest Additions http backgroung downloading. This class is also used to display the Guest Additions download state through the progress dialog integrated into the VM console status bar.

The VBoxDownloaderWgt class is QWidget class re-implementation which embeds into the Dialog's status-bar and allows background http downloading. This class is not supposed to be used itself and made for sub-classing only.

This class has two parts: 1. Acknowledging (getting information about target presence and size). 2. Downloading (starting and handling file downloading process). Every subclass can determine using or not those two parts and handling the result of those parts itself.

Definition at line 45 of file VBoxDownloaderWgt.h.

Public Member Functions

bool isCheckingPresence ()
void languageChange ()
virtual void start ()
 VBoxDownloaderWgt (const QString &aSource, const QString &aTarget)
 VBoxDownloaderWgt (QStatusBar *aStatusBar, QAction *aAction, const QString &aUrl, const QString &aTarget)

Protected Slots

virtual void abortDownload (const QString &aError)
virtual void acknowledgeFinished (bool aError)
virtual void acknowledgeProcess (const QHttpResponseHeader &aResponse)
virtual void acknowledgeStart ()
virtual void cancelDownloading ()
virtual void downloadFinished (bool aError)
virtual void downloadProcess (int aDone, int aTotal)
virtual void downloadStart ()
virtual void suicide ()

Protected Member Functions

virtual void changeEvent (QEvent *aEvent)
virtual bool confirmDownload ()=0
virtual void retranslateUi ()=0
virtual void warnAboutError (const QString &aError)=0

Protected Attributes

QIHttp * mHttp
QUrl mSource

Private Slots

void processAbort ()
void processTimeout ()
void suicide ()

Private Member Functions

void abortConnection ()
void abortDownload (const QString &aReason=QString::null)
bool event (QEvent *aEvent)
void getFile ()
void processFile (int aSize)

Private Attributes

QAction * mAction
QToolButton * mCancelButton
HConnect * mConn
QByteArray mDataArray
QDataStream mDataStream
bool mIsChecking
QMutex mMutex
QProgressBar * mProgressBar
QThread * mRequestThread
QStatusBar * mStatusBar
bool mSuicide
QString mTarget
QTimer * mTimeout
QUrl mUrl

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index