2 * hfdialer - Hands Free Voice Call Manager
3 * Copyright (c) 2012, Intel Corporation.
5 * This program is licensed under the terms and conditions of the
6 * Apache License, version 2.0. The full text of the Apache License is at
7 * http://www.apache.org/licenses/LICENSE-2.0
11 #include "dbustypes.h"
13 // Marshall the CallHistoryEvent data into a D-BUS argument
14 QDBusArgument & operator << (QDBusArgument &argument,
15 const CallHistoryEvent &d)
17 argument.beginStructure();
18 argument << d.id << d.lineid << d.type << d.start << d.end;
19 argument.endStructure();
23 // Retrieve the CallHistoryEvent data from the D-BUS argument
24 const QDBusArgument & operator >> (const QDBusArgument &argument,
27 argument.beginStructure();
28 argument >> d.id >> d.lineid >> d.type >> d.start >> d.end;
29 argument.endStructure();
33 // Marshall the OfonoPathProperties data into a D-BUS argument
34 QDBusArgument & operator << (QDBusArgument &argument,
35 const OfonoPathProperties &d)
37 argument.beginStructure();
38 argument << d.path << d.properties;
39 argument.endStructure();
43 // Retrieve the OfonoPathProperties data from the D-BUS argument
44 const QDBusArgument & operator >> (const QDBusArgument &argument,
45 OfonoPathProperties &d)
47 argument.beginStructure();
48 argument >> d.path >> d.properties;
49 argument.endStructure();
53 /* Local Variables: */
55 /* c-basic-offset:4 */
56 /* indent-tabs-mode: nil */