~mzanetti/+junk/ubtd

« back to all changes in this revision

Viewing changes to app/obexagentadaptor.cpp

  • Committer: Michael Zanetti
  • Date: 2016-04-14 23:34:10 UTC
  • Revision ID: michael.zanetti@canonical.com-20160414233410-17jg7ez3w1qc5e16
make it work, polish a bit, 0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    // destructor
34
34
}
35
35
 
36
 
QString ObexAgentAdaptor::Authorize(const QDBusObjectPath &transfer, const QString &bt_address, const QString &name, const QString &type, int length, int time)
 
36
QString ObexAgentAdaptor::AuthorizePush(const QDBusObjectPath &transfer)
37
37
{
38
 
    // handle method call org.openobex.Agent.Authorize
 
38
    // handle method call org.bluez.obex.Agent1.AuthorizePush
39
39
    QString path;
40
 
    QMetaObject::invokeMethod(parent(), "Authorize", Q_RETURN_ARG(QString, path), Q_ARG(QDBusObjectPath, transfer), Q_ARG(QString, bt_address), Q_ARG(QString, name), Q_ARG(QString, type), Q_ARG(int, length), Q_ARG(int, time));
 
40
    QMetaObject::invokeMethod(parent(), "AuthorizePush", Q_RETURN_ARG(QString, path), Q_ARG(QDBusObjectPath, transfer));
41
41
    return path;
42
42
}
43
43
 
44
44
void ObexAgentAdaptor::Cancel()
45
45
{
46
 
    // handle method call org.openobex.Agent.Cancel
 
46
    // handle method call org.bluez.obex.Agent1.Cancel
47
47
    QMetaObject::invokeMethod(parent(), "Cancel");
48
48
}
49
49
 
 
50
void ObexAgentAdaptor::Release()
 
51
{
 
52
    // handle method call org.bluez.obex.Agent1.Release
 
53
    QMetaObject::invokeMethod(parent(), "Release");
 
54
}