1
//This is file has been generated by xmltokross,you should not edit this file but the files used to generate it.
3
#include <QtCore/QObject>
4
#include <QtCore/QVariant>
5
#include <kross/core/object.h>
6
#include <kross/core/manager.h>
7
#include <kross/core/wrapperinterface.h>
8
#include <project/projectmodel.h>
9
#include <interfaces/iproject.h>
11
class KrossImplKDevelopProjectVisitor : public KDevelop::ProjectVisitor
14
KrossImplKDevelopProjectVisitor(Kross::Object::Ptr _obj) : obj(_obj) {}
15
void visit(KDevelop::IProject* x0)
17
Kross::Object* p=obj.data();
18
if(!p->methodNames().contains("visit"))
19
KDevelop::ProjectVisitor::visit(x0);
21
p->callMethod("visit", QVariantList() << qVariantFromValue<QObject*>(x0));
24
void visit(KDevelop::ProjectBuildFolderItem* x0)
26
Kross::Object* p=obj.data();
27
if(!p->methodNames().contains("visit"))
28
KDevelop::ProjectVisitor::visit(x0);
30
p->callMethod("visit", QVariantList() << Kross::Manager::self().metaTypeHandler("KDevelop::ProjectBuildFolderItem*")->callHandler(x0));
33
void visit(KDevelop::ProjectExecutableTargetItem* x0)
35
Kross::Object* p=obj.data();
36
if(!p->methodNames().contains("visit"))
37
KDevelop::ProjectVisitor::visit(x0);
39
p->callMethod("visit", QVariantList() << Kross::Manager::self().metaTypeHandler("KDevelop::ProjectExecutableTargetItem*")->callHandler(x0));
42
void visit(KDevelop::ProjectFolderItem* x0)
44
Kross::Object* p=obj.data();
45
if(!p->methodNames().contains("visit"))
46
KDevelop::ProjectVisitor::visit(x0);
48
p->callMethod("visit", QVariantList() << Kross::Manager::self().metaTypeHandler("KDevelop::ProjectFolderItem*")->callHandler(x0));
51
void visit(KDevelop::ProjectFileItem* x0)
53
Kross::Object* p=obj.data();
54
if(!p->methodNames().contains("visit"))
55
KDevelop::ProjectVisitor::visit(x0);
57
p->callMethod("visit", QVariantList() << Kross::Manager::self().metaTypeHandler("KDevelop::ProjectFileItem*")->callHandler(x0));
60
void visit(KDevelop::ProjectLibraryTargetItem* x0)
62
Kross::Object* p=obj.data();
63
if(!p->methodNames().contains("visit"))
64
KDevelop::ProjectVisitor::visit(x0);
66
p->callMethod("visit", QVariantList() << Kross::Manager::self().metaTypeHandler("KDevelop::ProjectLibraryTargetItem*")->callHandler(x0));
70
Kross::Object::Ptr obj;
73
class KrossImplKDevelopProjectBaseItem : public KDevelop::ProjectBaseItem
76
KrossImplKDevelopProjectBaseItem(Kross::Object::Ptr _obj, KDevelop::IProject* x0, const QString& x1, QStandardItem* x2=0) : KDevelop::ProjectBaseItem(x0, x1, x2), obj(_obj) {}
77
KDevelop::ProjectFolderItem* folder() const
79
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
80
if(!p->methodNames().contains("folder"))
81
return KDevelop::ProjectBaseItem::folder();
83
return dynamic_cast<KDevelop::ProjectFolderItem*>(p->callMethod("folder").value<QObject*>());
86
KDevelop::ProjectTargetItem* target() const
88
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
89
if(!p->methodNames().contains("target"))
90
return KDevelop::ProjectBaseItem::target();
92
return dynamic_cast<KDevelop::ProjectTargetItem*>(p->callMethod("target").value<QObject*>());
95
KDevelop::ProjectFileItem* file() const
97
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
98
if(!p->methodNames().contains("file"))
99
return KDevelop::ProjectBaseItem::file();
101
return dynamic_cast<KDevelop::ProjectFileItem*>(p->callMethod("file").value<QObject*>());
104
KDevelop::ProjectExecutableTargetItem* executable() const
106
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
107
if(!p->methodNames().contains("executable"))
108
return KDevelop::ProjectBaseItem::executable();
110
return dynamic_cast<KDevelop::ProjectExecutableTargetItem*>(p->callMethod("executable").value<QObject*>());
114
Kross::Object::Ptr obj;
117
class KrossImplKDevelopProjectFolderItem : public KDevelop::ProjectFolderItem
120
KrossImplKDevelopProjectFolderItem(Kross::Object::Ptr _obj, KDevelop::IProject* x0, const KUrl& x1, QStandardItem* x2=0) : KDevelop::ProjectFolderItem(x0, x1, x2), obj(_obj) {}
121
KDevelop::ProjectFolderItem* folder() const
123
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
124
if(!p->methodNames().contains("folder"))
125
return KDevelop::ProjectFolderItem::folder();
127
return dynamic_cast<KDevelop::ProjectFolderItem*>(p->callMethod("folder").value<QObject*>());
132
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
133
if(!p->methodNames().contains("type"))
134
return KDevelop::ProjectFolderItem::type();
136
return p->callMethod("type").value<int>();
140
Kross::Object::Ptr obj;
143
class KrossImplKDevelopProjectBuildFolderItem : public KDevelop::ProjectBuildFolderItem
146
KrossImplKDevelopProjectBuildFolderItem(Kross::Object::Ptr _obj, KDevelop::IProject* x0, const KUrl& x1, QStandardItem* x2=0) : KDevelop::ProjectBuildFolderItem(x0, x1, x2), obj(_obj) {}
149
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
150
if(!p->methodNames().contains("type"))
151
return KDevelop::ProjectBuildFolderItem::type();
153
return p->callMethod("type").value<int>();
157
Kross::Object::Ptr obj;
160
class KrossImplKDevelopProjectTargetItem : public KDevelop::ProjectTargetItem
163
KrossImplKDevelopProjectTargetItem(Kross::Object::Ptr _obj, KDevelop::IProject* x0, const QString& x1, QStandardItem* x2=0) : KDevelop::ProjectTargetItem(x0, x1, x2), obj(_obj) {}
166
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
167
if(!p->methodNames().contains("type"))
168
return KDevelop::ProjectTargetItem::type();
170
return p->callMethod("type").value<int>();
173
KDevelop::ProjectTargetItem* target() const
175
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
176
if(!p->methodNames().contains("target"))
177
return KDevelop::ProjectTargetItem::target();
179
return dynamic_cast<KDevelop::ProjectTargetItem*>(p->callMethod("target").value<QObject*>());
183
Kross::Object::Ptr obj;
186
class KrossImplKDevelopProjectExecutableTargetItem : public KDevelop::ProjectExecutableTargetItem
189
KrossImplKDevelopProjectExecutableTargetItem(Kross::Object::Ptr _obj, KDevelop::IProject* x0, const QString& x1, QStandardItem* x2=0) : KDevelop::ProjectExecutableTargetItem(x0, x1, x2), obj(_obj) {}
190
KDevelop::ProjectExecutableTargetItem* executable() const
192
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
193
if(!p->methodNames().contains("executable"))
194
return KDevelop::ProjectExecutableTargetItem::executable();
196
return dynamic_cast<KDevelop::ProjectExecutableTargetItem*>(p->callMethod("executable").value<QObject*>());
201
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
202
if(!p->methodNames().contains("type"))
203
return KDevelop::ProjectExecutableTargetItem::type();
205
return p->callMethod("type").value<int>();
208
KUrl builtUrl() const
210
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
211
return p->callMethod("builtUrl").value<KUrl>();
214
KUrl installedUrl() const
216
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
217
return p->callMethod("installedUrl").value<KUrl>();
221
Kross::Object::Ptr obj;
224
class KrossImplKDevelopProjectLibraryTargetItem : public KDevelop::ProjectLibraryTargetItem
227
KrossImplKDevelopProjectLibraryTargetItem(Kross::Object::Ptr _obj, KDevelop::IProject* x0, const QString& x1, QStandardItem* x2=0) : KDevelop::ProjectLibraryTargetItem(x0, x1, x2), obj(_obj) {}
230
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
231
if(!p->methodNames().contains("type"))
232
return KDevelop::ProjectLibraryTargetItem::type();
234
return p->callMethod("type").value<int>();
238
Kross::Object::Ptr obj;
241
class KrossImplKDevelopProjectFileItem : public KDevelop::ProjectFileItem
244
KrossImplKDevelopProjectFileItem(Kross::Object::Ptr _obj, KDevelop::IProject* x0, const KUrl& x1, QStandardItem* x2=0) : KDevelop::ProjectFileItem(x0, x1, x2), obj(_obj) {}
247
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
248
if(!p->methodNames().contains("type"))
249
return KDevelop::ProjectFileItem::type();
251
return p->callMethod("type").value<int>();
254
KDevelop::ProjectFileItem* file() const
256
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
257
if(!p->methodNames().contains("file"))
258
return KDevelop::ProjectFileItem::file();
260
return dynamic_cast<KDevelop::ProjectFileItem*>(p->callMethod("file").value<QObject*>());
264
Kross::Object::Ptr obj;
267
class KrossImplKDevelopProjectModel : public KDevelop::ProjectModel
270
KrossImplKDevelopProjectModel(Kross::Object::Ptr _obj, QObject* x0=0) : KDevelop::ProjectModel(x0), obj(_obj) {}
271
Qt::ItemFlags flags(const QModelIndex& x0) const
273
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
274
if(!p->methodNames().contains("flags"))
275
return KDevelop::ProjectModel::flags(x0);
277
// return p->callMethod("flags", QVariantList() << QVariant()).value<int>();
280
void fetchMore(const QModelIndex& x0)
282
Kross::Object* p=obj.data();
283
if(!p->methodNames().contains("fetchMore"))
284
KDevelop::ProjectModel::fetchMore(x0);
286
p->callMethod("fetchMore", QVariantList() << QVariant());
289
bool canFetchMore(const QModelIndex& x0) const
291
Kross::Object* p=const_cast<Kross::Object*>(obj.constData());
292
if(!p->methodNames().contains("canFetchMore"))
293
return KDevelop::ProjectModel::canFetchMore(x0);
295
return p->callMethod("canFetchMore", QVariantList() << QVariant()).value<bool>();
299
Kross::Object::Ptr obj;