• 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 
26 KDevProjectIface::KDevProjectIface(KDevProject *prj)
27  : TQObject(prj), DCOPObject("KDevProject"), m_prj(prj)
28 {
29 }
30 
31 
32 KDevProjectIface::~KDevProjectIface()
33 {
34 }
35 
36 void KDevProjectIface::openProject( const TQString & dirName, const TQString & projectName )
37 {
38  m_prj->openProject(dirName,projectName);
39 }
40 
41 void KDevProjectIface::closeProject( )
42 {
43  m_prj->closeProject();
44 }
45 
46 uint KDevProjectIface::options( ) const
47 {
48  return (uint)m_prj->options();
49 }
50 
51 TQString KDevProjectIface::projectDirectory( ) const
52 {
53  return m_prj->projectDirectory();
54 }
55 
56 TQString KDevProjectIface::projectName( ) const
57 {
58  return m_prj->projectName();
59 }
60 
61 TQString KDevProjectIface::mainProgram() const
62 {
63  return m_prj->mainProgram();
64 }
65 
66 TQString KDevProjectIface::runDirectory( ) const
67 {
68  return m_prj->runDirectory();
69 }
70 
71 TQString KDevProjectIface::activeDirectory( ) const
72 {
73  return m_prj->activeDirectory();
74 }
75 
76 TQString KDevProjectIface::buildDirectory( ) const
77 {
78  return m_prj->buildDirectory();
79 }
80 
81 TQStringList KDevProjectIface::allFiles( ) const
82 {
83  return m_prj->allFiles();
84 }
85 
86 TQStringList KDevProjectIface::distFiles( ) const
87 {
88  return m_prj->distFiles();
89 }
90 
91 void KDevProjectIface::addFiles( const TQStringList & fileList )
92 {
93  m_prj->addFiles(fileList);
94 }
95 
96 void KDevProjectIface::addFile( const TQString & fileName )
97 {
98  m_prj->addFile(fileName);
99 }
100 
101 void KDevProjectIface::removeFiles( const TQStringList & fileList )
102 {
103  m_prj->removeFiles(fileList);
104 }
105 
106 void KDevProjectIface::removeFile( const TQString & fileName )
107 {
108  m_prj->removeFile(fileName);
109 }
110 
111 void KDevProjectIface::changedFiles( const TQStringList & fileList )
112 {
113  m_prj->changedFiles(fileList);
114 }
115 
116 void KDevProjectIface::changedFile( const TQString & fileName )
117 {
118  m_prj->changedFile(fileName);
119 }
120 
121 bool KDevProjectIface::isProjectFile( const TQString & absFileName )
122 {
123  return m_prj->isProjectFile(absFileName);
124 }
125 
126 TQString KDevProjectIface::relativeProjectFile( const TQString & absFileName )
127 {
128  return m_prj->relativeProjectFile(absFileName);
129 }
130 
131 TQStringList KDevProjectIface::symlinkProjectFiles( )
132 {
133  return m_prj->symlinkProjectFiles();
134 }
135 
136 TQString KDevProjectIface::readEntry( const TQString & path, const TQString & defaultEntry )
137 {
138  return DomUtil::readEntry( *m_prj->projectDom(), path, defaultEntry);
139 }
140 
141 int KDevProjectIface::readIntEntry( const TQString & path, int defaultEntry )
142 {
143  return DomUtil::readIntEntry(*m_prj->projectDom(), path,defaultEntry);
144 }
145 
146 bool KDevProjectIface::readBoolEntry( const TQString & path, bool defaultEntry )
147 {
148  return DomUtil::readBoolEntry(*m_prj->projectDom(), path, defaultEntry);
149 }
150 
151 TQStringList KDevProjectIface::readListEntry( const TQString & path, const TQString & tag )
152 {
153  return DomUtil::readListEntry(*m_prj->projectDom(), path, tag);
154 }
155 
156 TQMap< TQString, TQString > KDevProjectIface::readMapEntry( const TQString & path )
157 {
158  return DomUtil::readMapEntry(*m_prj->projectDom(), path);
159 }
160 
161 void KDevProjectIface::writeEntry( const TQString & path, const TQString & value )
162 {
163  DomUtil::writeEntry(*m_prj->projectDom(), path, value);
164 }
165 
166 void KDevProjectIface::writeIntEntry( const TQString & path, int value )
167 {
168  DomUtil::writeIntEntry(*m_prj->projectDom(), path, value);
169 }
170 
171 void KDevProjectIface::writeBoolEntry( const TQString & path, bool value )
172 {
173  DomUtil::writeBoolEntry(*m_prj->projectDom(), path, value);
174 }
175 
176 void KDevProjectIface::writeListEntry( const TQString & path, const TQString & tag, const TQStringList & value )
177 {
178  DomUtil::writeListEntry(*m_prj->projectDom(), path, tag, value);
179 }
180 
181 void 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"
KDevProject
KDevelop project interface.
Definition: kdevproject.h:48
KDevProject::projectName
virtual TQString projectName() const =0
Returns the name of 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.8.13
This website is maintained by Timothy Pearson.