Fix no newlines warnings. Patch by Peter Oberndorfer
[kdevelopdvcssupport.git] / project / projectkcmodule.h
blobeb4e3ac644ebada60d0b1dea4bd9b70f7f0575ed
1 /* KDevelop
3 * Copyright 2007 Andreas Pakulat <apaku@gmx.de>
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 PROJECTKCMODULE_H
22 #define PROJECTKCMODULE_H
24 #include <kcmodule.h>
25 #include <QtCore/QVariant>
27 class KComponentData;
28 class QWidget;
29 class QStringList;
31 template <typename T> class ProjectKCModule : public KCModule
33 public:
34 ProjectKCModule( const KComponentData& componentData, QWidget* parent, const QVariantList& args = QVariantList() )
35 : KCModule( componentData, parent, args )
37 Q_ASSERT( args.count() > 3 );
38 T::instance( args.at(0).toString() );
39 T::self()->setDeveloperTempFile( args.at(0).toString() );
40 T::self()->setProjectTempFile( args.at(1).toString() );
41 T::self()->setProjectFileUrl( args.at(2).toString() );
42 T::self()->setDeveloperFileUrl( args.at(3).toString() );
44 virtual ~ProjectKCModule() {}
47 #endif