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

TDevelop Interfaces Library

  • lib
  • interfaces
kdevprojectiface.cpp
1
2
3/* This file is part of the KDE project
4 Copyright (C) 2005 Ian Reinhart Geiser <geiseri@kde.org>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20*/
21
22#include "kdevprojectiface.h"
23#include "kdevproject.h"
24#include "domutil.h"
25
26KDevProjectIface::KDevProjectIface(KDevProject *prj)
27 : TQObject(prj), DCOPObject("KDevProject"), m_prj(prj)
28{
29}
30
31
32KDevProjectIface::~KDevProjectIface()
33{
34}
35
36void KDevProjectIface::openProject( const TQString & dirName, const TQString & projectName )
37{
38 m_prj->openProject(dirName,projectName);
39}
40
41void KDevProjectIface::closeProject( )
42{
43 m_prj->closeProject();
44}
45
46uint KDevProjectIface::options( ) const
47{
48 return (uint)m_prj->options();
49}
50
51TQString KDevProjectIface::projectDirectory( ) const
52{
53 return m_prj->projectDirectory();
54}
55
56TQString KDevProjectIface::projectName( ) const
57{
58 return m_prj->projectName();
59}
60
61TQString KDevProjectIface::mainProgram() const
62{
63 return m_prj->mainProgram();
64}
65
66TQString KDevProjectIface::runDirectory( ) const
67{
68 return m_prj->runDirectory();
69}
70
71TQString KDevProjectIface::activeDirectory( ) const
72{
73 return m_prj->activeDirectory();
74}
75
76TQString KDevProjectIface::buildDirectory( ) const
77{
78 return m_prj->buildDirectory();
79}
80
81TQStringList KDevProjectIface::allFiles( ) const
82{
83 return m_prj->allFiles();
84}
85
86TQStringList KDevProjectIface::distFiles( ) const
87{
88 return m_prj->distFiles();
89}
90
91void KDevProjectIface::addFiles( const TQStringList & fileList )
92{
93 m_prj->addFiles(fileList);
94}
95
96void KDevProjectIface::addFile( const TQString & fileName )
97{
98 m_prj->addFile(fileName);
99}
100
101void KDevProjectIface::removeFiles( const TQStringList & fileList )
102{
103 m_prj->removeFiles(fileList);
104}
105
106void KDevProjectIface::removeFile( const TQString & fileName )
107{
108 m_prj->removeFile(fileName);
109}
110
111void KDevProjectIface::changedFiles( const TQStringList & fileList )
112{
113 m_prj->changedFiles(fileList);
114}
115
116void KDevProjectIface::changedFile( const TQString & fileName )
117{
118 m_prj->changedFile(fileName);
119}
120
121bool KDevProjectIface::isProjectFile( const TQString & absFileName )
122{
123 return m_prj->isProjectFile(absFileName);
124}
125
126TQString KDevProjectIface::relativeProjectFile( const TQString & absFileName )
127{
128 return m_prj->relativeProjectFile(absFileName);
129}
130
131TQStringList KDevProjectIface::symlinkProjectFiles( )
132{
133 return m_prj->symlinkProjectFiles();
134}
135
136TQString KDevProjectIface::readEntry( const TQString & path, const TQString & defaultEntry )
137{
138 return DomUtil::readEntry( *m_prj->projectDom(), path, defaultEntry);
139}
140
141int KDevProjectIface::readIntEntry( const TQString & path, int defaultEntry )
142{
143 return DomUtil::readIntEntry(*m_prj->projectDom(), path,defaultEntry);
144}
145
146bool KDevProjectIface::readBoolEntry( const TQString & path, bool defaultEntry )
147{
148 return DomUtil::readBoolEntry(*m_prj->projectDom(), path, defaultEntry);
149}
150
151TQStringList KDevProjectIface::readListEntry( const TQString & path, const TQString & tag )
152{
153 return DomUtil::readListEntry(*m_prj->projectDom(), path, tag);
154}
155
156TQMap< TQString, TQString > KDevProjectIface::readMapEntry( const TQString & path )
157{
158 return DomUtil::readMapEntry(*m_prj->projectDom(), path);
159}
160
161void KDevProjectIface::writeEntry( const TQString & path, const TQString & value )
162{
163 DomUtil::writeEntry(*m_prj->projectDom(), path, value);
164}
165
166void KDevProjectIface::writeIntEntry( const TQString & path, int value )
167{
168 DomUtil::writeIntEntry(*m_prj->projectDom(), path, value);
169}
170
171void KDevProjectIface::writeBoolEntry( const TQString & path, bool value )
172{
173 DomUtil::writeBoolEntry(*m_prj->projectDom(), path, value);
174}
175
176void KDevProjectIface::writeListEntry( const TQString & path, const TQString & tag, const TQStringList & value )
177{
178 DomUtil::writeListEntry(*m_prj->projectDom(), path, tag, value);
179}
180
181void KDevProjectIface::writeMapEntry( const TQString & path, const TQMap< TQString, TQString > & map )
182{
183 DomUtil::writeMapEntry(*m_prj->projectDom(), path, map);
184}
185
186#include "kdevprojectiface.moc"
KDevPlugin::projectDom
TQDomDocument * projectDom() const
Definition kdevplugin.cpp:94
KDevProject
KDevelop project interface.
Definition kdevproject.h:49
KDevProject::relativeProjectFile
virtual TQString relativeProjectFile(const TQString &absFileName)
Definition kdevproject.cpp:86
KDevProject::options
virtual Options options() const
Reimplement this method to set project plugin options.
Definition kdevproject.cpp:76
KDevProject::removeFile
virtual void removeFile(const TQString &fileName)=0
Removes a file from the project.
KDevProject::projectDirectory
virtual TQString projectDirectory() const =0
KDevProject::removeFiles
virtual void removeFiles(const TQStringList &fileList)=0
Removes a list of files from the project.
KDevProject::closeProject
virtual void closeProject()=0
This method is invoked when the project is about to be closed.
KDevProject::symlinkProjectFiles
virtual TQStringList symlinkProjectFiles()
Definition kdevproject.cpp:123
KDevProject::addFiles
virtual void addFiles(const TQStringList &fileList)=0
Adds a list of files to the project.
KDevProject::changedFiles
virtual void changedFiles(const TQStringList &fileList)
Notifies the project about changes to the files.
Definition kdevproject.cpp:71
KDevProject::openProject
virtual void openProject(const TQString &dirName, const TQString &projectName)
This method is invoked when the project is opened (i.e.
Definition kdevproject.cpp:118
KDevProject::isProjectFile
virtual bool isProjectFile(const TQString &absFileName)
Definition kdevproject.cpp:81
KDevProject::activeDirectory
virtual TQString activeDirectory() const =0
Returns the path (relative to the project directory) of the active directory.
KDevProject::changedFile
virtual void changedFile(const TQString &fileName)
Notifies the project of a change to one of the files.
Definition kdevproject.cpp:62
KDevProject::projectName
virtual TQString projectName() const =0
Returns the name of the project.
KDevProject::allFiles
virtual TQStringList allFiles() const =0
KDevProject::distFiles
virtual TQStringList distFiles() const =0
KDevProject::buildDirectory
virtual TQString buildDirectory() const =0
KDevProject::runDirectory
virtual TQString runDirectory() const =0
Absolute path (directory) from where the mainProgram() should be run.
KDevProject::mainProgram
virtual TQString mainProgram() const =0
KDevProject::addFile
virtual void addFile(const TQString &fileName)=0
Adds a file to the project.
kdevproject.h
KDevelop project interface.

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.9.8
This website is maintained by Timothy Pearson.