annotate cpp/qt_gui/UrlHandler_shell.cpp @ 149:7bc921c7100a

QDesktopServices.setUrlHandler - temporary solution
author eldar
date Sat, 13 Jun 2009 16:37:42 +0000
parents
children 11f1760d1700
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
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
11 extern "C" void qtd_UrlHandler_handleUrl_QUrl_dispatch(void *d_entity, void* name1);
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
12 void UrlHandler::handleUrl(const QUrl &url)
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
13 {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
14 qtd_UrlHandler_handleUrl_QUrl_dispatch(this->d_entity(), &(QUrl& )url);
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
15 }
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
16
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
17 extern "C" DLL_PUBLIC void qtd_UrlHandler_destructor(void *ptr)
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
18 {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
19 delete (UrlHandler *)ptr;
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_UrlHandler_QObject
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
23 (void *d_ptr,
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
24 void* parent0)
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
25 {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
26 QObject* __qt_parent0 = (QObject* ) parent0;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
27 UrlHandler *__qt_this = new UrlHandler(d_ptr, (QObject* )__qt_parent0);
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
28 return (void *) __qt_this;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
29 }
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
30
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
31
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
32 /* ---------------------------------------- */
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
33
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
34 #if !defined(Q_MOC_OUTPUT_REVISION)
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
35 #error "The header file 'urlhandler.h' doesn't include <QObject>."
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
36 #elif Q_MOC_OUTPUT_REVISION != 61
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
37 #error "This file was generated using the moc from 4.5.0. It"
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
38 #error "cannot be used with the include files from this version of Qt."
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
39 #error "(The moc has changed too much.)"
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
40 #endif
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
41
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
42 QT_BEGIN_MOC_NAMESPACE
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
43 static const uint qt_meta_data_UrlHandler[] = {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
44
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
45 // content:
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
46 2, // revision
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
47 0, // classname
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
48 0, 0, // classinfo
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
49 1, 12, // methods
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
50 0, 0, // properties
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
51 0, 0, // enums/sets
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
52 0, 0, // constructors
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
53
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
54 // slots: signature, parameters, type, tag, flags
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
55 16, 12, 11, 11, 0x0a,
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
56
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
57 0 // eod
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
58 };
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
59
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
60 static const char qt_meta_stringdata_UrlHandler[] = {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
61 "UrlHandler\0\0url\0handleUrl(QUrl)\0"
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
62 };
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
63
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
64 const QMetaObject UrlHandler::staticMetaObject = {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
65 { &QObject::staticMetaObject, qt_meta_stringdata_UrlHandler,
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
66 qt_meta_data_UrlHandler, 0 }
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
67 };
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
68
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
69 const QMetaObject *UrlHandler::metaObject() const
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
70 {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
71 return &staticMetaObject;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
72 }
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
73
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
74 void *UrlHandler::qt_metacast(const char *_clname)
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
75 {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
76 if (!_clname) return 0;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
77 if (!strcmp(_clname, qt_meta_stringdata_UrlHandler))
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
78 return static_cast<void*>(const_cast< UrlHandler*>(this));
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
79 if (!strcmp(_clname, "Qtd_QObjectEntity"))
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
80 return static_cast< Qtd_QObjectEntity*>(const_cast< UrlHandler*>(this));
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
81 return QObject::qt_metacast(_clname);
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
82 }
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
83
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
84 int UrlHandler::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
85 {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
86 _id = QObject::qt_metacall(_c, _id, _a);
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
87 if (_id < 0)
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
88 return _id;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
89 if (_c == QMetaObject::InvokeMetaMethod) {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
90 switch (_id) {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
91 case 0: handleUrl((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
92 default: ;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
93 }
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
94 _id -= 1;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
95 }
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
96 return _id;
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
97 }
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
98 QT_END_MOC_NAMESPACE