Last change
on this file since 82781 was 78665, checked in by vboxsync, 5 years ago |
FE/Qt: bugref:9470: Networking stuff: Switch file downloading procedure from RTHttpGetBinary to RTHttpGetFile; This allows us to avoid memory-chunk size limitation preventing large files from being downloaded; We do this only for files, not for other network requests, because we know the target filename in that case.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.3 KB
|
Line | |
---|
1 | /* $Id: UINetworkCustomer.cpp 78665 2019-05-22 15:27:01Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UINetworkCustomer class implementation.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2012-2019 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | /* Qt includes: */
|
---|
19 | #include <QUrl>
|
---|
20 |
|
---|
21 | /* Local includes: */
|
---|
22 | #include "UINetworkCustomer.h"
|
---|
23 | #include "UINetworkManager.h"
|
---|
24 |
|
---|
25 |
|
---|
26 | UINetworkCustomer::UINetworkCustomer(QObject *pParent /* = 0 */, bool fForceCall /* = true */)
|
---|
27 | : QObject(pParent)
|
---|
28 | , m_fForceCall(fForceCall)
|
---|
29 | {
|
---|
30 | }
|
---|
31 |
|
---|
32 | void UINetworkCustomer::createNetworkRequest(UINetworkRequestType enmType, const QList<QUrl> urls,
|
---|
33 | const QString &strTarget /* = QString() */,
|
---|
34 | const UserDictionary requestHeaders /* = UserDictionary() */)
|
---|
35 | {
|
---|
36 | gNetworkManager->createNetworkRequest(enmType, urls, strTarget, requestHeaders, this);
|
---|
37 | }
|
---|
38 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.