You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
187 lines
4.6 KiB
187 lines
4.6 KiB
|
|
|
|
/* 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"
|