Fix no newlines warnings. Patch by Peter Oberndorfer
[kdevelopdvcssupport.git] / kross / krossplugin.h
blob27c4de30d7911bb815f70f2b32d3e0e941423bb8
1 /* KDevPlatform Kross Support
3 * Copyright 2008 Aleix Pol <aleixpol@gmail.com>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 * 02110-1301, USA.
21 #ifndef KROSSPLUGIN_H
22 #define KROSSPLUGIN_H
24 #include <interfaces/iplugin.h>
26 #include <kross/core/action.h>
28 #include "krossbuildsystemmanager.h"
29 #include "krossdistributedversioncontrol.h"
31 namespace Kross { class Action; }
32 namespace KDevelop { class IDocument; }
33 class KrossToolViewFactory;
35 class KrossPlugin : public KDevelop::IPlugin, public KrossBuildSystemManager, public KrossDistributedVersionControl
37 Q_OBJECT
38 Q_INTERFACES( KDevelop::IBuildSystemManager )
39 Q_INTERFACES( KDevelop::IProjectFileManager )
40 Q_INTERFACES( KDevelop::IDistributedVersionControl )
41 public:
42 explicit KrossPlugin( QObject* parent = 0, const QVariantList& args = QVariantList() );
43 virtual ~KrossPlugin();
45 KDevelop::ContextMenuExtension contextMenuExtension(KDevelop::Context* context);
47 Q_SCRIPTABLE void createToolViewFactory(const QString& method, const QString& id, Qt::DockWidgetArea pos);
48 Q_SCRIPTABLE KUrl pluginDirectory() const { return m_pluginDir; }
50 private:
51 QList<KrossToolViewFactory*> m_toolFactories;
52 Kross::Action* action;
54 KUrl m_pluginDir;
57 #endif