~mandel/ubuntu-download-manager/properties

« back to all changes in this revision

Viewing changes to src/common/priv/ubuntu/transfers/transfer.cpp

  • Committer: CI bot
  • Author(s): Manuel de la Peña
  • Date: 2014-07-21 09:39:39 UTC
  • mfrom: (304.2.8 write-upload-response)
  • Revision ID: ps-jenkins@lists.canonical.com-20140721093939-grgfcboq0ppb1dmz
On a succesful upload write the response to a secure local path for the client to read. 
Approved by: Sergio Schvezov, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
         const QString& appId,
28
28
         const QString& path,
29
29
         bool isConfined,
 
30
         const QString& rootPath,
30
31
         QObject* parent)
31
32
    : QObject(parent),
32
33
      _id(id),
35
36
      _allowMobileData(true),
36
37
      _state(Transfer::IDLE),
37
38
      _dbusPath(path),
38
 
      _isConfined(isConfined) {
 
39
      _isConfined(isConfined),
 
40
      _rootPath(rootPath) {
39
41
    _networkInfo = System::SystemNetworkInfo::instance();
40
42
    setObjectName(id);
41
43
}
60
62
    return _isConfined;
61
63
}
62
64
 
 
65
QString
 
66
Transfer::rootPath() const {
 
67
    return _rootPath;
 
68
}
 
69
 
 
70
 
63
71
Transfer::State
64
72
Transfer::state() const {
65
73
    return _state;