~ken-vandine/content-hub/desktop_file_less

« back to all changes in this revision

Viewing changes to src/com/ubuntu/content/transfer_p.h

New upstream version to reflect addition of the out of process
peer picker

Show diffs side-by-side

added added

removed removed

Lines of Context:
243
243
        return static_cast<QString>(reply.value());
244
244
    }
245
245
 
 
246
    QString instanceId()
 
247
    {
 
248
        auto reply = remote_transfer->InstanceId();
 
249
        reply.waitForFinished();
 
250
 
 
251
        if (reply.isError())
 
252
            return QString();
 
253
 
 
254
        return static_cast<QString>(reply.value());
 
255
    }
 
256
 
 
257
    bool setInstanceId(QString instance_id)
 
258
    {
 
259
        auto reply = remote_transfer->SetInstanceId(instance_id);
 
260
        reply.waitForFinished();
 
261
 
 
262
        return not reply.isError();
 
263
    }
 
264
 
246
265
    com::ubuntu::content::dbus::Transfer* remote_transfer;
247
266
};
248
267
}