summaryrefslogtreecommitdiffstats
path: root/lib/interfaces/tdevprojectiface.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2014-03-02 20:05:33 +0100
committerSlávek Banko <slavek.banko@axis.cz>2014-03-02 20:05:33 +0100
commit722ce1efbac31c61b1d4b13f7e075c9f311e3e73 (patch)
treedb1b6b28566e5fe9accb4a688f7257673cecb080 /lib/interfaces/tdevprojectiface.cpp
parentafb74575caf7dd8ccb6c235b1c8d788e320c19da (diff)
downloadtdevelop-722ce1efbac31c61b1d4b13f7e075c9f311e3e73.tar.gz
tdevelop-722ce1efbac31c61b1d4b13f7e075c9f311e3e73.zip
Finish renaming tdevelop components
Diffstat (limited to 'lib/interfaces/tdevprojectiface.cpp')
-rw-r--r--lib/interfaces/tdevprojectiface.cpp186
1 files changed, 186 insertions, 0 deletions
diff --git a/lib/interfaces/tdevprojectiface.cpp b/lib/interfaces/tdevprojectiface.cpp
new file mode 100644
index 00000000..625a4118
--- /dev/null
+++ b/lib/interfaces/tdevprojectiface.cpp
@@ -0,0 +1,186 @@
+
+
+/* This file is part of the KDE project
+ Copyright (C) 2005 Ian Reinhart Geiser <geiseri@kde.org>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#include "tdevprojectiface.h"
+#include "tdevproject.h"
+#include "domutil.h"
+
+TDevProjectIface::TDevProjectIface(TDevProject *prj)
+ : TQObject(prj), DCOPObject("TDevProject"), m_prj(prj)
+{
+}
+
+
+TDevProjectIface::~TDevProjectIface()
+{
+}
+
+void TDevProjectIface::openProject( const TQString & dirName, const TQString & projectName )
+{
+ m_prj->openProject(dirName,projectName);
+}
+
+void TDevProjectIface::closeProject( )
+{
+ m_prj->closeProject();
+}
+
+uint TDevProjectIface::options( ) const
+{
+ return (uint)m_prj->options();
+}
+
+TQString TDevProjectIface::projectDirectory( ) const
+{
+ return m_prj->projectDirectory();
+}
+
+TQString TDevProjectIface::projectName( ) const
+{
+ return m_prj->projectName();
+}
+
+TQString TDevProjectIface::mainProgram() const
+{
+ return m_prj->mainProgram();
+}
+
+TQString TDevProjectIface::runDirectory( ) const
+{
+ return m_prj->runDirectory();
+}
+
+TQString TDevProjectIface::activeDirectory( ) const
+{
+ return m_prj->activeDirectory();
+}
+
+TQString TDevProjectIface::buildDirectory( ) const
+{
+ return m_prj->buildDirectory();
+}
+
+TQStringList TDevProjectIface::allFiles( ) const
+{
+ return m_prj->allFiles();
+}
+
+TQStringList TDevProjectIface::distFiles( ) const
+{
+ return m_prj->distFiles();
+}
+
+void TDevProjectIface::addFiles( const TQStringList & fileList )
+{
+ m_prj->addFiles(fileList);
+}
+
+void TDevProjectIface::addFile( const TQString & fileName )
+{
+ m_prj->addFile(fileName);
+}
+
+void TDevProjectIface::removeFiles( const TQStringList & fileList )
+{
+ m_prj->removeFiles(fileList);
+}
+
+void TDevProjectIface::removeFile( const TQString & fileName )
+{
+ m_prj->removeFile(fileName);
+}
+
+void TDevProjectIface::changedFiles( const TQStringList & fileList )
+{
+ m_prj->changedFiles(fileList);
+}
+
+void TDevProjectIface::changedFile( const TQString & fileName )
+{
+ m_prj->changedFile(fileName);
+}
+
+bool TDevProjectIface::isProjectFile( const TQString & absFileName )
+{
+ return m_prj->isProjectFile(absFileName);
+}
+
+TQString TDevProjectIface::relativeProjectFile( const TQString & absFileName )
+{
+ return m_prj->relativeProjectFile(absFileName);
+}
+
+TQStringList TDevProjectIface::symlinkProjectFiles( )
+{
+ return m_prj->symlinkProjectFiles();
+}
+
+TQString TDevProjectIface::readEntry( const TQString & path, const TQString & defaultEntry )
+{
+ return DomUtil::readEntry( *m_prj->projectDom(), path, defaultEntry);
+}
+
+int TDevProjectIface::readIntEntry( const TQString & path, int defaultEntry )
+{
+ return DomUtil::readIntEntry(*m_prj->projectDom(), path,defaultEntry);
+}
+
+bool TDevProjectIface::readBoolEntry( const TQString & path, bool defaultEntry )
+{
+ return DomUtil::readBoolEntry(*m_prj->projectDom(), path, defaultEntry);
+}
+
+TQStringList TDevProjectIface::readListEntry( const TQString & path, const TQString & tag )
+{
+ return DomUtil::readListEntry(*m_prj->projectDom(), path, tag);
+}
+
+TQMap< TQString, TQString > TDevProjectIface::readMapEntry( const TQString & path )
+{
+ return DomUtil::readMapEntry(*m_prj->projectDom(), path);
+}
+
+void TDevProjectIface::writeEntry( const TQString & path, const TQString & value )
+{
+ DomUtil::writeEntry(*m_prj->projectDom(), path, value);
+}
+
+void TDevProjectIface::writeIntEntry( const TQString & path, int value )
+{
+ DomUtil::writeIntEntry(*m_prj->projectDom(), path, value);
+}
+
+void TDevProjectIface::writeBoolEntry( const TQString & path, bool value )
+{
+ DomUtil::writeBoolEntry(*m_prj->projectDom(), path, value);
+}
+
+void TDevProjectIface::writeListEntry( const TQString & path, const TQString & tag, const TQStringList & value )
+{
+ DomUtil::writeListEntry(*m_prj->projectDom(), path, tag, value);
+}
+
+void TDevProjectIface::writeMapEntry( const TQString & path, const TQMap< TQString, TQString > & map )
+{
+ DomUtil::writeMapEntry(*m_prj->projectDom(), path, map);
+}
+
+#include "tdevprojectiface.moc"