Changeset 38421 in vbox
- Timestamp:
- Aug 11, 2011 2:55:02 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 73462
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 added
- 3 edited
- 6 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r38412 r38421 185 185 ./src/wizards/importappliance \ 186 186 ./src/widgets \ 187 ./src/net \ 187 188 ./src/selector \ 188 189 ./src/runtime \ … … 336 337 src/widgets/UIBar.h \ 337 338 src/widgets/UIBootTable.h \ 338 src/widgets/UIDownloader.h \339 src/widgets/UIDownloaderAdditions.h \340 src/widgets/UIDownloaderUserManual.h \341 339 src/widgets/UIHotKeyEditor.h \ 342 340 src/widgets/UIPopupBox.h \ … … 354 352 src/widgets/VBoxOSTypeSelectorWidget.h \ 355 353 src/widgets/VBoxWarningPane.h \ 354 src/net/UINetworkManager.h \ 355 src/net/UIDownloader.h \ 356 src/net/UIDownloaderAdditions.h \ 357 src/net/UIDownloaderUserManual.h \ 356 358 src/selector/UIActionPoolSelector.h \ 357 359 src/selector/UIVMDesktop.h \ … … 507 509 src/widgets/UIBar.cpp \ 508 510 src/widgets/UIBootTable.cpp \ 509 src/widgets/UIDownloader.cpp \510 src/widgets/UIDownloaderAdditions.cpp \511 src/widgets/UIDownloaderUserManual.cpp \512 511 src/widgets/UIHotKeyEditor.cpp \ 513 512 src/widgets/UIPopupBox.cpp \ … … 526 525 src/widgets/VBoxOSTypeSelectorWidget.cpp \ 527 526 src/widgets/VBoxWarningPane.cpp \ 527 src/net/UINetworkManager.cpp \ 528 src/net/UIDownloader.cpp \ 529 src/net/UIDownloaderAdditions.cpp \ 530 src/net/UIDownloaderUserManual.cpp \ 528 531 src/selector/UIActionPoolSelector.cpp \ 529 532 src/selector/UISelectorShortcuts.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/nls/VirtualBox_ja.ts
r38412 r38421 1178 1178 </message> 1179 1179 <message> 1180 <location filename="../src/ widgets/UIDownloader.cpp" line="262"/>1180 <location filename="../src/net/UIDownloader.cpp" line="262"/> 1181 1181 <source>The download process has been canceled by the user.</source> 1182 1182 <translation>ダウンロード処理がユーザーによってキャンセルされました。</translation> … … 1198 1198 </message> 1199 1199 <message> 1200 <location filename="../src/ widgets/UIDownloaderAdditions.cpp" line="120"/>1200 <location filename="../src/net/UIDownloaderAdditions.cpp" line="120"/> 1201 1201 <source><p>Failed to save the downloaded file as <nobr><b>%1</b>.</nobr></p></source> 1202 1202 <translation><p>ダウンロードしたファイル(<nobr><b>%1</b></nobr>)の保存に失敗しました。</p></translation> 1203 1203 </message> 1204 1204 <message> 1205 <location filename="../src/ widgets/UIDownloaderAdditions.cpp" line="126"/>1205 <location filename="../src/net/UIDownloaderAdditions.cpp" line="107"/> 1206 1206 <source>Select folder to save Guest Additions image to</source> 1207 1207 <translation>Guest Additionsイメージを保存するフォルダを選択</translation> … … 1211 1211 <name>UIDownloaderUserManual</name> 1212 1212 <message> 1213 <location filename="../src/ widgets/UIDownloaderUserManual.cpp" line="151"/>1213 <location filename="../src/net/UIDownloaderUserManual.cpp" line="137"/> 1214 1214 <source>Select folder to save User Manual to</source> 1215 1215 <translation>ユーザーマニュアルを保存するフォルダを選択</translation> … … 5360 5360 <name>UIMiniProcessWidgetAdditions</name> 5361 5361 <message> 5362 <location filename="../src/ widgets/UIDownloaderAdditions.h" line="46"/>5362 <location filename="../src/net/UIDownloaderAdditions.h" line="46"/> 5363 5363 <source>Cancel</source> 5364 5364 <translation>キャンセル</translation> 5365 5365 </message> 5366 5366 <message> 5367 <location filename="../src/ widgets/UIDownloaderAdditions.h" line="47"/>5367 <location filename="../src/net/UIDownloaderAdditions.h" line="47"/> 5368 5368 <source>Cancel the VirtualBox Guest Additions CD image download</source> 5369 5369 <translation>VirtualBox Guest Additions CDイメージのダウンロードをキャンセル</translation> 5370 5370 </message> 5371 5371 <message> 5372 <location filename="../src/ widgets/UIDownloaderAdditions.h" line="49"/>5372 <location filename="../src/net/UIDownloaderAdditions.h" line="49"/> 5373 5373 <source>Downloading the VirtualBox Guest Additions CD image from <nobr><b>%1</b>...</nobr></source> 5374 5374 <translation>VirtualBox Guest Additions CDイメージを<nobr><b>%1</b>からダウンロード...</nobr></translation> … … 5378 5378 <name>UIMiniProcessWidgetUserManual</name> 5379 5379 <message> 5380 <location filename="../src/ widgets/UIDownloaderUserManual.h" line="53"/>5380 <location filename="../src/net/UIDownloaderUserManual.h" line="53"/> 5381 5381 <source>Cancel</source> 5382 5382 <translation>キャンセル</translation> 5383 5383 </message> 5384 5384 <message> 5385 <location filename="../src/ widgets/UIDownloaderUserManual.h" line="54"/>5385 <location filename="../src/net/UIDownloaderUserManual.h" line="54"/> 5386 5386 <source>Cancel the VirtualBox User Manual download</source> 5387 5387 <translation>VirtualBox ユーザーマニュアルのダウンロードをキャンセル</translation> 5388 5388 </message> 5389 5389 <message> 5390 <location filename="../src/ widgets/UIDownloaderUserManual.h" line="55"/>5390 <location filename="../src/net/UIDownloaderUserManual.h" line="55"/> 5391 5391 <source>Downloading the VirtualBox User Manual</source> 5392 5392 <translation>VirtualBox ユーザーマニュアルのダウンロード</translation> 5393 5393 </message> 5394 5394 <message> 5395 <location filename="../src/ widgets/UIDownloaderUserManual.h" line="56"/>5395 <location filename="../src/net/UIDownloaderUserManual.h" line="56"/> 5396 5396 <source>Downloading the VirtualBox User Manual <nobr><b>%1</b>...</nobr></source> 5397 5397 <translation>VirtualBox ユーザーマニュアルを<nobr><b>%1</b>からダウンロード...</nobr></translation> -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r38324 r38421 31 31 #include "UIExtraDataEventHandler.h" 32 32 #include "QIFileDialog.h" 33 #include "UINetworkManager.h" 33 34 34 35 #include "UIMachine.h" … … 5242 5243 /* Handle global settings change for the first time: */ 5243 5244 sltProcessGlobalSettingChange(); 5245 5246 /* Create network manager: */ 5247 UINetworkManager::create(); 5244 5248 } 5245 5249 … … 5252 5256 void VBoxGlobal::cleanup() 5253 5257 { 5258 /* Destroy network manager: */ 5259 UINetworkManager::destroy(); 5260 5254 5261 /* sanity check */ 5255 5262 if (!sVBoxGlobalInCleanup) -
trunk/src/VBox/Frontends/VirtualBox/src/net/UIDownloader.cpp
r38415 r38421 24 24 /* Local includes: */ 25 25 #include "UIDownloader.h" 26 #include "UINetworkManager.h" 26 27 #include "VBoxGlobal.h" 27 28 #include "UIMessageCenter.h" … … 123 124 124 125 UIDownloader::UIDownloader() 125 : m_pNetworkManager(new QNetworkAccessManager(this))126 126 { 127 127 connect(this, SIGNAL(sigToStartAcknowledging()), this, SLOT(sltStartAcknowledging()), Qt::QueuedConnection); … … 135 135 QNetworkRequest request; 136 136 request.setUrl(m_source); 137 QNetworkReply *pReply = m_pNetworkManager->head(request);137 QNetworkReply *pReply = gNetworkManager->head(request); 138 138 connect(pReply, SIGNAL(sslErrors(QList<QSslError>)), pReply, SLOT(ignoreSslErrors())); 139 139 connect(pReply, SIGNAL(finished()), this, SLOT(sltFinishAcknowledging())); … … 188 188 QNetworkRequest request; 189 189 request.setUrl(m_source); 190 QNetworkReply *pReply = m_pNetworkManager->get(request);190 QNetworkReply *pReply = gNetworkManager->get(request); 191 191 connect(pReply, SIGNAL(sslErrors(QList<QSslError>)), pReply, SLOT(ignoreSslErrors())); 192 192 connect(pReply, SIGNAL(downloadProgress(qint64, qint64)), this, SIGNAL(sigDownloadProgress(qint64, qint64))); -
trunk/src/VBox/Frontends/VirtualBox/src/net/UIDownloader.h
r38415 r38421 28 28 class QProgressBar; 29 29 class UIMiniCancelButton; 30 class QNetworkAccessManager;31 30 class QNetworkReply; 32 31 … … 167 166 168 167 /* Private variables: */ 169 QNetworkAccessManager *m_pNetworkManager;170 168 QUrl m_source; 171 169 QString m_strTarget;
Note:
See TracChangeset
for help on using the changeset viewer.