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

project

projectkcmodule.h

00001 /* KDevelop
00002  *
00003  * Copyright 2007 Andreas Pakulat <apaku@gmx.de>
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program 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
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00018  * 02110-1301, USA.
00019  */
00020 
00021 #ifndef PROJECTKCMODULE_H
00022 #define PROJECTKCMODULE_H
00023 
00024 #include <kcmodule.h>
00025 #include <QtCore/QVariant>
00026 
00027 class KComponentData;
00028 class QWidget;
00029 class QStringList;
00030 
00031 template <typename T> class ProjectKCModule : public KCModule
00032 {
00033     public:
00034         ProjectKCModule( const KComponentData& componentData, QWidget* parent, const QVariantList& args = QVariantList() )
00035             : KCModule( componentData, parent, args )
00036         {
00037             Q_ASSERT( args.count() > 3 );
00038             T::instance( args.at(0).toString() );
00039             T::self()->setDeveloperTempFile( args.at(0).toString() );
00040             T::self()->setProjectTempFile( args.at(1).toString() );
00041             T::self()->setProjectFileUrl( args.at(2).toString() );
00042             T::self()->setDeveloperFileUrl( args.at(3).toString() );
00043         }
00044         virtual ~ProjectKCModule() {}
00045 };
00046 
00047 #endif
00048 

project

Skip menu "project"
  • Main Page
  • 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