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

TDevelop Interfaces Library

  • lib
  • interfaces
kdevcoderepository.cpp
1/* This file is part of the KDE project
2 Copyright (C) 2003 Roberto Raggi <roberto@kdevelop.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19#include "kdevcoderepository.h"
20
21struct KDevCodeRepositoryData
22{
23 Catalog* mainCatalog;
24 TQValueList<Catalog*> catalogs;
25
26 KDevCodeRepositoryData(): mainCatalog( 0 ) {}
27};
28
29KDevCodeRepository::KDevCodeRepository( )
30 : d( new KDevCodeRepositoryData )
31{
32}
33
34KDevCodeRepository::~KDevCodeRepository( )
35{
36 delete( d );
37}
38
39Catalog* KDevCodeRepository::mainCatalog()
40{
41 return d->mainCatalog;
42}
43
44void KDevCodeRepository::setMainCatalog( Catalog * mainCatalog )
45{
46 d->mainCatalog = mainCatalog;
47}
48
49void KDevCodeRepository::registerCatalog( Catalog * catalog )
50{
51 d->catalogs.append( catalog );
52 emit catalogRegistered( catalog );
53}
54
55void KDevCodeRepository::unregisterCatalog( Catalog * catalog )
56{
57 d->catalogs.remove( catalog );
58 emit catalogUnregistered( catalog );
59}
60
61void KDevCodeRepository::touchCatalog( Catalog * catalog )
62{
63 emit catalogChanged( catalog );
64}
65
66TQValueList< Catalog * > KDevCodeRepository::registeredCatalogs( )
67{
68 return d->catalogs;
69}
70
71#include "kdevcoderepository.moc"
KDevCodeRepository::catalogChanged
void catalogChanged(Catalog *catalog)
Emitted when the contens of catalog is changed.
KDevCodeRepository::catalogRegistered
void catalogRegistered(Catalog *catalog)
Emitted when a new catalog is registered.
KDevCodeRepository::unregisterCatalog
void unregisterCatalog(Catalog *catalog)
Unregisters catalog from the repository.
Definition kdevcoderepository.cpp:55
KDevCodeRepository::setMainCatalog
void setMainCatalog(Catalog *mainCatalog)
Sets the main catalog.
Definition kdevcoderepository.cpp:44
KDevCodeRepository::touchCatalog
void touchCatalog(Catalog *catalog)
Marks catalog as changed and emits catalogChanged signal.
Definition kdevcoderepository.cpp:61
KDevCodeRepository::~KDevCodeRepository
virtual ~KDevCodeRepository()
Destructor.
Definition kdevcoderepository.cpp:34
KDevCodeRepository::registeredCatalogs
TQValueList< Catalog * > registeredCatalogs()
Definition kdevcoderepository.cpp:66
KDevCodeRepository::KDevCodeRepository
KDevCodeRepository()
Constructor.
Definition kdevcoderepository.cpp:29
KDevCodeRepository::registerCatalog
void registerCatalog(Catalog *catalog)
Registers catalog in the repository.
Definition kdevcoderepository.cpp:49
KDevCodeRepository::mainCatalog
Catalog * mainCatalog()
Definition kdevcoderepository.cpp:39
KDevCodeRepository::catalogUnregistered
void catalogUnregistered(Catalog *catalog)
Emitted when a catalog in removed.
kdevcoderepository.h
Code repository - the persistent symbol store accessor.

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.