~ubuntu-branches/ubuntu/trusty/syncevolution/trusty-proposed

« back to all changes in this revision

Viewing changes to src/dbus/qt/dbustypes.h

  • Committer: Bazaar Package Importer
  • Author(s): Tino Keitel
  • Date: 2011-07-20 16:02:02 UTC
  • mfrom: (3.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110720160202-e8uf7ogw4vh0q0f3
Tags: 1.1.99.5a-1
* New upstream version 1.1.99.5a, first release candiate for 1.2
* Added python-openssl dependency, the HTTP server needs it for HTTPS support
* Added versioned dependency on libsynthesis0 to get required features
* Fixed .orig.tar.gz generation in get-orig-source target
* Added myself to Uploaders:, thanks to David for sponsoring
* Use updated upstream tag for source package generation
* Removed 0001-Replace-with-in-call-to-PKG_CHECK_MODULES.patch, fixed upstream
* Renamed NEWS.Debian to NEWS so that it is actually used
* Updated NEWS for 1.1.99.5a

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DBUSTYPES_H
21
21
#define DBUSTYPES_H
22
22
 
23
 
#include "commondbustypes.h"
24
 
 
25
23
#include <QtCore/QList>
26
24
#include <QtCore/QMap>
27
25
#include <QtCore/QString>
36
34
};
37
35
Q_DECLARE_METATYPE ( SyncDatabase )
38
36
 
39
 
 // Marshall the SyncDatabase data into a D-BUS argument
40
 
 QDBusArgument &operator<<(QDBusArgument &argument, const SyncDatabase &mystruct);
41
 
 // Retrieve the SyncDatabase data from the D-BUS argument
42
 
 const QDBusArgument &operator>>(const QDBusArgument &argument, SyncDatabase &mystruct);
 
37
// Marshall the SyncDatabase data into a D-BUS argument
 
38
QDBusArgument &operator<<(QDBusArgument &argument, const SyncDatabase &mystruct);
 
39
// Retrieve the SyncDatabase data from the D-BUS argument
 
40
const QDBusArgument &operator>>(const QDBusArgument &argument, SyncDatabase &mystruct);
43
41
 
44
42
struct SyncProgress
45
43
{
53
51
};
54
52
Q_DECLARE_METATYPE ( SyncProgress )
55
53
 
56
 
 // Marshall the SyncProgress data into a D-BUS argument
57
 
 QDBusArgument &operator<<(QDBusArgument &argument, const SyncProgress &mystruct);
58
 
 // Retrieve the SyncProgress data from the D-BUS argument
59
 
 const QDBusArgument &operator>>(const QDBusArgument &argument, SyncProgress &mystruct);
 
54
// Marshall the SyncProgress data into a D-BUS argument
 
55
QDBusArgument &operator<<(QDBusArgument &argument, const SyncProgress &mystruct);
 
56
// Retrieve the SyncProgress data from the D-BUS argument
 
57
const QDBusArgument &operator>>(const QDBusArgument &argument, SyncProgress &mystruct);
60
58
 
61
59
struct SyncStatus
62
60
{
66
64
};
67
65
Q_DECLARE_METATYPE ( SyncStatus )
68
66
 
69
 
 // Marshall the SyncStatus data into a D-BUS argument
70
 
 QDBusArgument &operator<<(QDBusArgument &argument, const SyncStatus &mystruct);
71
 
 // Retrieve the SyncStatus data from the D-BUS argument
72
 
 const QDBusArgument &operator>>(const QDBusArgument &argument, SyncStatus &mystruct);
 
67
// Marshall the SyncStatus data into a D-BUS argument
 
68
QDBusArgument &operator<<(QDBusArgument &argument, const SyncStatus &mystruct);
 
69
// Retrieve the SyncStatus data from the D-BUS argument
 
70
const QDBusArgument &operator>>(const QDBusArgument &argument, SyncStatus &mystruct);
73
71
 
74
 
typedef QMap<QString, StringMap > QStringMultiMap;
75
 
typedef QList< StringMap > QArrayOfStringMap;
 
72
typedef QMap<QString, QString> QStringMap;
 
73
typedef QMap<QString, QStringMap > QStringMultiMap;
 
74
typedef QList< QStringMap > QArrayOfStringMap;
76
75
typedef QList< SyncDatabase > QArrayOfDatabases;
77
76
typedef QMap<QString, SyncProgress >  QSyncProgressMap;
78
77
typedef QMap<QString, SyncStatus >  QSyncStatusMap;
79
78
 
 
79
Q_DECLARE_METATYPE ( QStringMap )
80
80
Q_DECLARE_METATYPE ( QStringMultiMap )
81
81
Q_DECLARE_METATYPE ( QArrayOfStringMap )
82
82
Q_DECLARE_METATYPE ( QArrayOfDatabases )
83
83
Q_DECLARE_METATYPE ( QSyncProgressMap )
84
84
Q_DECLARE_METATYPE ( QSyncStatusMap )
85
85
 
86
 
inline void registerMyDataTypes() {
 
86
inline void syncevolution_qt_dbus_register_types() {
87
87
    qDBusRegisterMetaType< SyncDatabase >();
 
88
    qDBusRegisterMetaType< QStringMap >();
88
89
    qDBusRegisterMetaType< QStringMultiMap >();
89
90
    qDBusRegisterMetaType< QArrayOfStringMap >();
90
91
    qDBusRegisterMetaType< QArrayOfDatabases >();