~mandel/ubuntu-download-manager/expose-logger

« back to all changes in this revision

Viewing changes to src/downloads/client/ubuntu/download_manager/download_interface.h

  • Committer: Manuel de la Peña
  • Date: 2014-06-18 11:10:18 UTC
  • Revision ID: manuel.delapena@canonical.com-20140618111018-t5po3fkp254dakg3
Added support to set the headers of a single file download.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
        return asyncCallWithArgumentList(QLatin1String("cancel"), argumentList);
51
51
    }
52
52
 
 
53
    inline QDBusPendingReply<StringMap> headers()
 
54
    {
 
55
        QList<QVariant> argumentList;
 
56
        return asyncCallWithArgumentList(QLatin1String("headers"), argumentList);
 
57
    }
 
58
 
53
59
    inline QDBusPendingReply<bool> isGSMDownloadAllowed()
54
60
    {
55
61
        QList<QVariant> argumentList;
87
93
        return asyncCallWithArgumentList(QLatin1String("setDestinationDir"), argumentList);
88
94
    }
89
95
 
 
96
    inline QDBusPendingReply<> setHeaders(StringMap headers)
 
97
    {
 
98
        QList<QVariant> argumentList;
 
99
        argumentList << QVariant::fromValue(headers);
 
100
        return asyncCallWithArgumentList(QLatin1String("setHeaders"), argumentList);
 
101
    }
 
102
 
90
103
    inline QDBusPendingReply<> setThrottle(qulonglong speed)
91
104
    {
92
105
        QList<QVariant> argumentList;