~mzanetti/+junk/ubtd

« back to all changes in this revision

Viewing changes to app/obexagentadaptor.h

  • 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:
24
24
QT_END_NAMESPACE
25
25
 
26
26
/*
27
 
 * Adaptor class for interface org.openobex.Agent
 
27
 * Adaptor class for interface org.bluez.obex.Agent1
28
28
 */
29
29
class ObexAgentAdaptor: public QDBusAbstractAdaptor
30
30
{
31
31
    Q_OBJECT
32
 
    Q_CLASSINFO("D-Bus Interface", "org.openobex.Agent")
 
32
    Q_CLASSINFO("D-Bus Interface", "org.bluez.obex.Agent1")
33
33
    Q_CLASSINFO("D-Bus Introspection", ""
34
34
"  <interface name=\"org.openobex.Agent\">\n"
35
 
"    <method name=\"Authorize\">\n"
 
35
"    <method name=\"Release\">\n"
 
36
"      <annotation value=\"\" name=\"org.freedesktop.DBus.GLib.Async\"/>\n"
 
37
"    </method>\n"
 
38
"    <method name=\"AuthorizePush\">\n"
36
39
"      <annotation value=\"\" name=\"org.freedesktop.DBus.GLib.Async\"/>\n"
37
40
"      <arg type=\"o\" name=\"transfer\"/>\n"
38
 
"      <arg type=\"s\" name=\"bt_address\"/>\n"
39
 
"      <arg type=\"s\" name=\"name\"/>\n"
40
 
"      <arg type=\"s\" name=\"type\"/>\n"
41
 
"      <arg type=\"i\" name=\"length\"/>\n"
42
 
"      <arg type=\"i\" name=\"time\"/>\n"
43
41
"      <arg direction=\"out\" type=\"s\" name=\"path\"/>\n"
44
42
"    </method>\n"
45
43
"    <method name=\"Cancel\">\n"
53
51
 
54
52
public: // PROPERTIES
55
53
public Q_SLOTS: // METHODS
56
 
    QString Authorize(const QDBusObjectPath &transfer, const QString &bt_address, const QString &name, const QString &type, int length, int time);
 
54
    void Release();
 
55
    QString AuthorizePush(const QDBusObjectPath &transfer);
57
56
    void Cancel();
58
57
Q_SIGNALS: // SIGNALS
59
58
};