• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

interfaces

iprojectcontroller.h

00001 /* This file is part of KDevelop
00002 Copyright 2006 Adam Treat <treat@kde.org>
00003 Copyright 2007 Anreas Pakulat <apaku@gmx.de>
00004 
00005 This library is free software; you can redistribute it and/or
00006 modify it under the terms of the GNU Library General Public
00007 License as published by the Free Software Foundation; either
00008 version 2 of the License, or (at your option) any later version.
00009 
00010 This library is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 Library General Public License for more details.
00014 
00015 You should have received a copy of the GNU Library General Public License
00016 along with this library; see the file COPYING.LIB.  If not, write to
00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018 Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef IPROJECTCONTROLLER_H
00022 #define IPROJECTCONTROLLER_H
00023 
00024 #include <QtCore/QObject>
00025 #include <QtCore/QList>
00026 #include <kurl.h>
00027 #include "interfacesexport.h"
00028 
00029 class QItemSelectionModel;
00030 
00031 namespace KDevelop
00032 {
00033 
00034 class IProject;
00035 class ProjectModel;
00036 class ProjectBaseItem;
00037 
00038 class KDEVPLATFORMINTERFACES_EXPORT IProjectController : public QObject
00039 {
00040     Q_OBJECT
00041 public:
00042     IProjectController( QObject *parent = 0 );
00043     virtual ~IProjectController();
00044 
00045     Q_SCRIPTABLE virtual IProject* projectAt( int ) const = 0;
00046     Q_SCRIPTABLE virtual int projectCount() const = 0;
00047     Q_SCRIPTABLE virtual QList<IProject*> projects() const = 0;
00048 
00053     Q_SCRIPTABLE virtual ProjectModel* projectModel() = 0;
00054 
00061     Q_SCRIPTABLE virtual QItemSelectionModel* projectSelectionModel() = 0;
00062 
00068     Q_SCRIPTABLE virtual IProject* findProjectByName( const QString& name ) = 0;
00069 
00076     Q_SCRIPTABLE virtual IProject* findProjectForUrl( const KUrl& url ) const = 0;
00077 
00078 public Q_SLOTS:
00086     virtual bool openProject( const KUrl & url = KUrl() ) = 0;
00094     virtual bool closeProject( IProject* ) = 0;
00095     virtual bool configureProject( IProject* ) = 0;
00096 //     virtual void changeCurrentProject( KDevelop::ProjectBaseItem* ) = 0;
00097 
00098 Q_SIGNALS:
00104     void projectOpened( KDevelop::IProject* project );
00109     void projectClosing( KDevelop::IProject* project );
00116     void projectClosed( KDevelop::IProject* project );
00117 };
00118 
00119 }
00120 #endif
00121 

interfaces

Skip menu "interfaces"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal