~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to languages/cpp/cppsupportfactory.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright (C) 2000-2001 by Bernd Gehrmann                             *
3
 
 *   bernd@kdevelop.org                                                    *
4
 
 *                                                                         *
5
 
 *   This program is free software; you can redistribute it and/or modify  *
6
 
 *   it under the terms of the GNU General Public License as published by  *
7
 
 *   the Free Software Foundation; either version 2 of the License, or     *
8
 
 *   (at your option) any later version.                                   *
9
 
 *                                                                         *
10
 
 ***************************************************************************/
11
 
 
12
 
#include <kinstance.h>
13
 
#include <kstandarddirs.h>
14
 
#include <kdevplugininfo.h>
15
 
#include "cppsupportfactory.h"
16
 
 
17
 
K_EXPORT_COMPONENT_FACTORY( libkdevcppsupport, CppSupportFactory )
18
 
 
19
 
static const KDevPluginInfo data("kdevcppsupport");
20
 
 
21
 
CppSupportFactory::CppSupportFactory()
22
 
: KDevGenericFactory<CppSupportPart>( data )
23
 
{
24
 
}
25
 
 
26
 
KInstance *CppSupportFactory::createInstance()
27
 
{
28
 
        KInstance *instance = KDevGenericFactory<CppSupportPart>::createInstance();
29
 
        KStandardDirs *dirs = instance->dirs();
30
 
        dirs->addResourceType( "newclasstemplates", KStandardDirs::kde_default("data") + "kdevcppsupport/newclass/" );
31
 
        dirs->addResourceType( "pcs", KStandardDirs::kde_default( "data" ) + "kdevcppsupport/pcs/" );
32
 
        
33
 
        return instance;
34
 
}
35
 
 
36
 
const KDevPluginInfo * CppSupportFactory::info()
37
 
{
38
 
        return &data;
39
 
}
40
 
//kate: indent-mode csands; tab-width 4; space-indent off;
41
 
 
42