87257be935f5157da1a686f4200fad77d5c8b999
[qstardict] / qstardict / moc_dbusadaptor.cpp
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'dbusadaptor.h'
3 **
4 ** Created: Tue Dec 29 16:45:06 2009
5 **      by: The Qt Meta Object Compiler version 61 (Qt 4.5.3)
6 **
7 ** WARNING! All changes made in this file will be lost!
8 *****************************************************************************/
9
10 #include "dbusadaptor.h"
11 #if !defined(Q_MOC_OUTPUT_REVISION)
12 #error "The header file 'dbusadaptor.h' doesn't include <QObject>."
13 #elif Q_MOC_OUTPUT_REVISION != 61
14 #error "This file was generated using the moc from 4.5.3. It"
15 #error "cannot be used with the include files from this version of Qt."
16 #error "(The moc has changed too much.)"
17 #endif
18
19 QT_BEGIN_MOC_NAMESPACE
20 static const uint qt_meta_data_QStarDict__DBusAdaptor[] = {
21
22  // content:
23        2,       // revision
24        0,       // classname
25        1,   12, // classinfo
26        4,   14, // methods
27        1,   34, // properties
28        0,    0, // enums/sets
29        0,    0, // constructors
30
31  // classinfo: key, value
32       23,   39,
33
34  // slots: signature, parameters, type, tag, flags
35       58,   83,   88,   88, 0x0a,
36       89,   83,   88,   88, 0x0a,
37      108,   83,  127,   88, 0x0a,
38      135,   83,  127,   88, 0x0a,
39
40  // properties: name, type, flags
41      158,  176, 0x02095103,
42
43        0        // eod
44 };
45
46 static const char qt_meta_stringdata_QStarDict__DBusAdaptor[] = {
47     "QStarDict::DBusAdaptor\0D-Bus Interface\0"
48     "org.qstardict.dbus\0showTranslation(QString)\0"
49     "text\0\0showPopup(QString)\0translate(QString)\0"
50     "QString\0translateHtml(QString)\0"
51     "mainWindowVisible\0int\0"
52 };
53
54 const QMetaObject QStarDict::DBusAdaptor::staticMetaObject = {
55     { &QDBusAbstractAdaptor::staticMetaObject, qt_meta_stringdata_QStarDict__DBusAdaptor,
56       qt_meta_data_QStarDict__DBusAdaptor, 0 }
57 };
58
59 const QMetaObject *QStarDict::DBusAdaptor::metaObject() const
60 {
61     return &staticMetaObject;
62 }
63
64 void *QStarDict::DBusAdaptor::qt_metacast(const char *_clname)
65 {
66     if (!_clname) return 0;
67     if (!strcmp(_clname, qt_meta_stringdata_QStarDict__DBusAdaptor))
68         return static_cast<void*>(const_cast< DBusAdaptor*>(this));
69     return QDBusAbstractAdaptor::qt_metacast(_clname);
70 }
71
72 int QStarDict::DBusAdaptor::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
73 {
74     _id = QDBusAbstractAdaptor::qt_metacall(_c, _id, _a);
75     if (_id < 0)
76         return _id;
77     if (_c == QMetaObject::InvokeMetaMethod) {
78         switch (_id) {
79         case 0: showTranslation((*reinterpret_cast< const QString(*)>(_a[1]))); break;
80         case 1: showPopup((*reinterpret_cast< const QString(*)>(_a[1]))); break;
81         case 2: { QString _r = translate((*reinterpret_cast< const QString(*)>(_a[1])));
82             if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
83         case 3: { QString _r = translateHtml((*reinterpret_cast< const QString(*)>(_a[1])));
84             if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
85         default: ;
86         }
87         _id -= 4;
88     }
89 #ifndef QT_NO_PROPERTIES
90       else if (_c == QMetaObject::ReadProperty) {
91         void *_v = _a[0];
92         switch (_id) {
93         case 0: *reinterpret_cast< int*>(_v) = mainWindowVisible(); break;
94         }
95         _id -= 1;
96     } else if (_c == QMetaObject::WriteProperty) {
97         void *_v = _a[0];
98         switch (_id) {
99         case 0: setMainWindowVisible(*reinterpret_cast< int*>(_v)); break;
100         }
101         _id -= 1;
102     } else if (_c == QMetaObject::ResetProperty) {
103         _id -= 1;
104     } else if (_c == QMetaObject::QueryPropertyDesignable) {
105         _id -= 1;
106     } else if (_c == QMetaObject::QueryPropertyScriptable) {
107         _id -= 1;
108     } else if (_c == QMetaObject::QueryPropertyStored) {
109         _id -= 1;
110     } else if (_c == QMetaObject::QueryPropertyEditable) {
111         _id -= 1;
112     } else if (_c == QMetaObject::QueryPropertyUser) {
113         _id -= 1;
114     }
115 #endif // QT_NO_PROPERTIES
116     return _id;
117 }
118 QT_END_MOC_NAMESPACE