annotate cpp/qt_gui/UrlHandler_shell.cpp @ 214:11f1760d1700

UrlHandler windows fix
author eldar
date Tue, 14 Jul 2009 14:37:23 +0000
parents 7bc921c7100a
children 3855c7a9a5a2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
149
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
1 #include "UrlHandler_shell.h"
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
2
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
3 #include "qtd_core.h"
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
4
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
5 UrlHandler::UrlHandler(void *d_ptr, QObject* parent0)
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
6 : QObject(parent0),
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
7 Qtd_QObjectEntity(d_ptr)
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
8 {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
9 }
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
10
214
11f1760d1700 UrlHandler windows fix
eldar
parents: 149
diff changeset
11 #ifdef CPP_SHARED
11f1760d1700 UrlHandler windows fix
eldar
parents: 149
diff changeset
12 extern "C" typedef void (*pfqtd_UrlHandler_handleUrl_QUrl_dispatch)(void *d_entity, void* arg__1);
11f1760d1700 UrlHandler windows fix
eldar
parents: 149
diff changeset
13 pfqtd_UrlHandler_handleUrl_QUrl_dispatch qtd_UrlHandler_handleUrl_QUrl_dispatch;
11f1760d1700 UrlHandler windows fix
eldar
parents: 149
diff changeset
14 #else
149
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
15 extern "C" void qtd_UrlHandler_handleUrl_QUrl_dispatch(void *d_entity, void* name1);
214
11f1760d1700 UrlHandler windows fix
eldar
parents: 149
diff changeset
16 #endif
149
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
17 void UrlHandler::handleUrl(const QUrl &url)
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
18 {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
19 qtd_UrlHandler_handleUrl_QUrl_dispatch(this->d_entity(), &(QUrl& )url);
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
20 }
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
21
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
22 extern "C" DLL_PUBLIC void qtd_UrlHandler_destructor(void *ptr)
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
23 {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
24 delete (UrlHandler *)ptr;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
25 }
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
26
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
27 extern "C" DLL_PUBLIC void* qtd_UrlHandler_UrlHandler_QObject
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
28 (void *d_ptr,
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
29 void* parent0)
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
30 {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
31 QObject* __qt_parent0 = (QObject* ) parent0;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
32 UrlHandler *__qt_this = new UrlHandler(d_ptr, (QObject* )__qt_parent0);
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
33 return (void *) __qt_this;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
34 }
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
35
214
11f1760d1700 UrlHandler windows fix
eldar
parents: 149
diff changeset
36 extern "C" DLL_PUBLIC void qtd_UrlHandler_initCallBacks(pfunc_abstr *virts, pfunc_abstr qobj_del) {
11f1760d1700 UrlHandler windows fix
eldar
parents: 149
diff changeset
37 qtd_UrlHandler_handleUrl_QUrl_dispatch = (pfqtd_UrlHandler_handleUrl_QUrl_dispatch) virts[0];
11f1760d1700 UrlHandler windows fix
eldar
parents: 149
diff changeset
38 // qtd_D_QWidget_delete = (qtd_pf_D_QWidget_delete)qobj_del;
11f1760d1700 UrlHandler windows fix
eldar
parents: 149
diff changeset
39 }
149
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
40 /* ---------------------------------------- */
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
41
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
42 #if !defined(Q_MOC_OUTPUT_REVISION)
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
43 #error "The header file 'urlhandler.h' doesn't include <QObject>."
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
44 #elif Q_MOC_OUTPUT_REVISION != 61
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
45 #error "This file was generated using the moc from 4.5.0. It"
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
46 #error "cannot be used with the include files from this version of Qt."
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
47 #error "(The moc has changed too much.)"
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
48 #endif
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
49
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
50 QT_BEGIN_MOC_NAMESPACE
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
51 static const uint qt_meta_data_UrlHandler[] = {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
52
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
53 // content:
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
54 2, // revision
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
55 0, // classname
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
56 0, 0, // classinfo
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
57 1, 12, // methods
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
58 0, 0, // properties
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
59 0, 0, // enums/sets
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
60 0, 0, // constructors
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
61
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
62 // slots: signature, parameters, type, tag, flags
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
63 16, 12, 11, 11, 0x0a,
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
64
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
65 0 // eod
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
66 };
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
67
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
68 static const char qt_meta_stringdata_UrlHandler[] = {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
69 "UrlHandler\0\0url\0handleUrl(QUrl)\0"
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
70 };
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
71
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
72 const QMetaObject UrlHandler::staticMetaObject = {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
73 { &QObject::staticMetaObject, qt_meta_stringdata_UrlHandler,
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
74 qt_meta_data_UrlHandler, 0 }
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
75 };
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
76
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
77 const QMetaObject *UrlHandler::metaObject() const
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
78 {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
79 return &staticMetaObject;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
80 }
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
81
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
82 void *UrlHandler::qt_metacast(const char *_clname)
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
83 {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
84 if (!_clname) return 0;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
85 if (!strcmp(_clname, qt_meta_stringdata_UrlHandler))
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
86 return static_cast<void*>(const_cast< UrlHandler*>(this));
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
87 if (!strcmp(_clname, "Qtd_QObjectEntity"))
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
88 return static_cast< Qtd_QObjectEntity*>(const_cast< UrlHandler*>(this));
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
89 return QObject::qt_metacast(_clname);
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
90 }
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
91
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
92 int UrlHandler::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
93 {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
94 _id = QObject::qt_metacall(_c, _id, _a);
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
95 if (_id < 0)
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
96 return _id;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
97 if (_c == QMetaObject::InvokeMetaMethod) {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
98 switch (_id) {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
99 case 0: handleUrl((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
100 default: ;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
101 }
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
102 _id -= 1;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
103 }
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
104 return _id;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
105 }
214
11f1760d1700 UrlHandler windows fix
eldar
parents: 149
diff changeset
106 QT_END_MOC_NAMESPACE