• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • TDevelop Interfaces Library
 

TDevelop Interfaces Library

  • lib
  • interfaces
kdevgenericfactory.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * Copyright (C) 2003 Harald Fernengel <harry@kdevelop.org>
3 * Copyright (C) 2004 Alexander Dymo <adymo@kdevelop.org>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20#include <kgenericfactory.h>
21#include <tdeaboutdata.h>
22
27
64template <class T, class ParentType = TQObject>
65class KDevGenericFactory: public KGenericFactory<T, ParentType>
66{
67public:
76 KDevGenericFactory(TDEAboutData *data)
77 :KGenericFactory<T, ParentType>(data->appName()), aboutData(data)
78 {
79 }
80
82 TDEInstance *createInstance()
83 {
84 return new TDEInstance(aboutData);
85 }
86
87private:
88 TDEAboutData *aboutData;
89
90};
91
KDevGenericFactory::KDevGenericFactory
KDevGenericFactory(TDEAboutData *data)
Constructor.
Definition kdevgenericfactory.h:76
KDevGenericFactory::createInstance
TDEInstance * createInstance()
Creates an instance.
Definition kdevgenericfactory.h:82

TDevelop Interfaces Library

Skip menu "TDevelop Interfaces Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

TDevelop Interfaces Library

Skip menu "TDevelop Interfaces Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for TDevelop Interfaces Library by doxygen 1.15.0
This website is maintained by Timothy Pearson.