~ubuntu-branches/ubuntu/utopic/kdevplatform/utopic-proposed

« back to all changes in this revision

Viewing changes to shell/kross/wrappers/krossiprojectfilemanager.cpp

  • Committer: Package Import Robot
  • Author(s): Scarlett Clark
  • Date: 2014-08-30 03:52:11 UTC
  • mfrom: (0.3.26)
  • Revision ID: package-import@ubuntu.com-20140830035211-wndqlc843eu2v8nk
Tags: 1.7.0-0ubuntu1
* New upstream release
* Add XS-Testsuite: autopkgtest

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//This is file has been generated by xmltokross, you should not edit this file but the files used to generate it.
2
 
 
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>
8
 
 
9
 
class KrossKDevelopIProjectFileManager : public QObject, public Kross::WrapperInterface
10
 
{
11
 
        Q_OBJECT
12
 
        Q_ENUMS(Feature)
13
 
        Q_FLAGS(Feature None Folders Targets Files)
14
 
 
15
 
        public:
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; }
19
 
 
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); }
31
 
        private:
32
 
                KDevelop::IProjectFileManager* wrapped;
33
 
};
34
 
 
35
 
bool krossiprojectfilemanager_registerHandler(const QByteArray& name, Kross::MetaTypeHandler::FunctionPtr* handler)
36
 
{ Kross::Manager::self().registerMetaTypeHandler(name, handler); return false; }
37
 
 
38
 
namespace Handlers
39
 
{
40
 
QVariant _kDevelopIProjectFileManagerHandler(void* type)
41
 
{
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));
46
 
}
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); }
51
 
 
52
 
}
53
 
#include "krossiprojectfilemanager.moc"