36
36
explicit DownloadFactoryPrivate(DownloadFactory* parent)
38
_apparmor = new AppArmor();
39
_uuidFactory = new UuidFactory();
40
_networkInfo = new SystemNetworkInfo();
41
_nam = new RequestFactory();
42
_processFactory = new ProcessFactory();
38
_apparmor = QSharedPointer<AppArmor>(new AppArmor());
39
_networkInfo = QSharedPointer<SystemNetworkInfo>(
40
new SystemNetworkInfo());
41
_nam = QSharedPointer<RequestFactory>(
42
new RequestFactory());
43
_processFactory = QSharedPointer<ProcessFactory>(
44
new ProcessFactory());
45
DownloadFactoryPrivate(UuidFactory* uuidFactory,
46
SystemNetworkInfo* networkInfo,
48
ProcessFactory* processFactory,
47
DownloadFactoryPrivate(QSharedPointer<SystemNetworkInfo> networkInfo,
48
QSharedPointer<RequestFactory> nam,
49
QSharedPointer<ProcessFactory> processFactory,
49
50
DownloadFactory* parent)
50
: _uuidFactory(uuidFactory),
51
_networkInfo(networkInfo),
51
: _networkInfo(networkInfo),
53
53
_processFactory(processFactory),
101
UuidFactory* _uuidFactory;
102
SystemNetworkInfo* _networkInfo;
103
RequestFactory* _nam;
104
ProcessFactory* _processFactory;
100
QSharedPointer<AppArmor> _apparmor;
101
QSharedPointer<SystemNetworkInfo> _networkInfo;
102
QSharedPointer<RequestFactory> _nam;
103
QSharedPointer<ProcessFactory> _processFactory;
105
104
DownloadFactory* q_ptr;
114
113
d_ptr(new DownloadFactoryPrivate(this)) {
117
DownloadFactory::DownloadFactory(UuidFactory* uuidFactory,
118
SystemNetworkInfo* networkInfo,
120
ProcessFactory* processFactory,
116
DownloadFactory::DownloadFactory(QSharedPointer<SystemNetworkInfo> networkInfo,
117
QSharedPointer<RequestFactory> nam,
118
QSharedPointer<ProcessFactory> processFactory,
122
120
: QObject(parent),
123
d_ptr(new DownloadFactoryPrivate(uuidFactory, networkInfo, nam,
124
processFactory, this)) {
121
d_ptr(new DownloadFactoryPrivate(networkInfo, nam, processFactory, this)) {