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/manager.h>
6
#include <kross/core/wrapperinterface.h>
7
#include <project/interfaces/iprojectfilemanager.h>
9
class KrossKDevelopIProjectFileManager : public QObject, public Kross::WrapperInterface
13
Q_FLAGS(Feature None Folders Targets Files)
16
enum KrossFeature { None=KDevelop::IProjectFileManager::None, Folders=KDevelop::IProjectFileManager::Folders, Targets=KDevelop::IProjectFileManager::Targets, Files=KDevelop::IProjectFileManager::Files };
17
KrossKDevelopIProjectFileManager(KDevelop::IProjectFileManager* obj, QObject* parent=0) : QObject(parent), wrapped(obj) { setObjectName("KDevelop::IProjectFileManager"); }
18
void* wrappedObject() const { return wrapped; }
20
Q_SCRIPTABLE KDevelop::IProjectFileManager::Features features() const { return wrapped->features(); }
21
Q_SCRIPTABLE QList< KDevelop::ProjectFolderItem* > parse(KDevelop::ProjectFolderItem* x0) { return wrapped->parse(x0); }
22
Q_SCRIPTABLE KDevelop::ProjectFolderItem* import(KDevelop::IProject* x0) { return wrapped->import(x0); }
23
Q_SCRIPTABLE KJob* createImportJob(KDevelop::ProjectFolderItem* x0) { return wrapped->createImportJob(x0); }
24
Q_SCRIPTABLE KDevelop::ProjectFolderItem* addFolder(const KUrl& x0, KDevelop::ProjectFolderItem* x1) { return wrapped->addFolder(x0, x1); }
25
Q_SCRIPTABLE KDevelop::ProjectFileItem* addFile(const KUrl& x0, KDevelop::ProjectFolderItem* x1) { return wrapped->addFile(x0, x1); }
26
Q_SCRIPTABLE bool removeFolder(KDevelop::ProjectFolderItem* x0) { return wrapped->removeFolder(x0); }
27
Q_SCRIPTABLE bool removeFile(KDevelop::ProjectFileItem* x0) { return wrapped->removeFile(x0); }
28
Q_SCRIPTABLE bool renameFile(KDevelop::ProjectFileItem* x0, const KUrl& x1) { return wrapped->renameFile(x0, x1); }
29
Q_SCRIPTABLE bool renameFolder(KDevelop::ProjectFolderItem* x0, const KUrl& x1) { return wrapped->renameFolder(x0, x1); }
30
Q_SCRIPTABLE bool reload(KDevelop::ProjectFolderItem* x0) { return wrapped->reload(x0); }
32
KDevelop::IProjectFileManager* wrapped;
35
bool krossiprojectfilemanager_registerHandler(const QByteArray& name, Kross::MetaTypeHandler::FunctionPtr* handler)
36
{ Kross::Manager::self().registerMetaTypeHandler(name, handler); return false; }
40
QVariant _kDevelopIProjectFileManagerHandler(void* type)
42
if(!type) return QVariant();
43
KDevelop::IProjectFileManager* t=static_cast<KDevelop::IProjectFileManager*>(type);
44
Q_ASSERT(dynamic_cast<KDevelop::IProjectFileManager*>(t));
45
return qVariantFromValue((QObject*) new KrossKDevelopIProjectFileManager(t, 0));
47
bool b_KDevelopIProjectFileManager1=krossiprojectfilemanager_registerHandler("IProjectFileManager*", _kDevelopIProjectFileManagerHandler);
48
bool b_KDevelopIProjectFileManager=krossiprojectfilemanager_registerHandler("KDevelop::IProjectFileManager*", _kDevelopIProjectFileManagerHandler);
49
QVariant kDevelopIProjectFileManagerHandler(KDevelop::IProjectFileManager* type){ return _kDevelopIProjectFileManagerHandler(type); }
50
QVariant kDevelopIProjectFileManagerHandler(const KDevelop::IProjectFileManager* type) { return _kDevelopIProjectFileManagerHandler((void*) type); }
53
#include "krossiprojectfilemanager.moc"