KDevelop API Documentation

cppsupportfactory.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2000-2001 by Bernd Gehrmann                             *
00003  *   bernd@kdevelop.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  ***************************************************************************/
00011 
00012 #include <kinstance.h>
00013 #include <kstandarddirs.h>
00014 #include "cppsupportfactory.h"
00015 
00016 K_EXPORT_COMPONENT_FACTORY( libkdevcppsupport, CppSupportFactory )
00017 
00018 static const KAboutData data("kdevcppsupport", I18N_NOOP("C++ Specific"), "1.0");
00019 
00020 CppSupportFactory::CppSupportFactory()
00021     : KDevGenericFactory<CppSupportPart>( &data )
00022 {
00023 }
00024 
00025 KInstance *CppSupportFactory::createInstance()
00026 {
00027     KInstance *instance = KDevGenericFactory<CppSupportPart>::createInstance();
00028     KStandardDirs *dirs = instance->dirs();
00029     dirs->addResourceType( "newclasstemplates", KStandardDirs::kde_default("data") + "kdevcppsupport/newclass/" );
00030     dirs->addResourceType( "pcs", KStandardDirs::kde_default( "data" ) + "kdevcppsupport/pcs/" );
00031 
00032     return instance;
00033 }
00034 
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:46 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003