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
15 years ago
|
|
||
|
|
||
|
/* 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
|
||
15 years ago
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
Boston, MA 02110-1301, USA.
|
||
15 years ago
|
*/
|
||
|
|
||
11 years ago
|
#include "tdevprojectiface.h"
|
||
|
#include "tdevproject.h"
|
||
15 years ago
|
#include "domutil.h"
|
||
|
|
||
11 years ago
|
TDevProjectIface::TDevProjectIface(TDevProject *prj)
|
||
|
: TQObject(prj), DCOPObject("TDevProject"), m_prj(prj)
|
||
15 years ago
|
{
|
||
|
}
|
||
|
|
||
|
|
||
11 years ago
|
TDevProjectIface::~TDevProjectIface()
|
||
15 years ago
|
{
|
||
|
}
|
||
|
|
||
11 years ago
|
void TDevProjectIface::openProject( const TQString & dirName, const TQString & projectName )
|
||
15 years ago
|
{
|
||
|
m_prj->openProject(dirName,projectName);
|
||
|
}
|
||
|
|
||
11 years ago
|
void TDevProjectIface::closeProject( )
|
||
15 years ago
|
{
|
||
|
m_prj->closeProject();
|
||
|
}
|
||
|
|
||
11 years ago
|
uint TDevProjectIface::options( ) const
|
||
15 years ago
|
{
|
||
|
return (uint)m_prj->options();
|
||
|
}
|
||
|
|
||
11 years ago
|
TQString TDevProjectIface::projectDirectory( ) const
|
||
15 years ago
|
{
|
||
|
return m_prj->projectDirectory();
|
||
|
}
|
||
|
|
||
11 years ago
|
TQString TDevProjectIface::projectName( ) const
|
||
15 years ago
|
{
|
||
|
return m_prj->projectName();
|
||
|
}
|
||
|
|
||
11 years ago
|
TQString TDevProjectIface::mainProgram() const
|
||
15 years ago
|
{
|
||
|
return m_prj->mainProgram();
|
||
|
}
|
||
|
|
||
11 years ago
|
TQString TDevProjectIface::runDirectory( ) const
|
||
15 years ago
|
{
|
||
|
return m_prj->runDirectory();
|
||
|
}
|
||
|
|
||
11 years ago
|
TQString TDevProjectIface::activeDirectory( ) const
|
||
15 years ago
|
{
|
||
|
return m_prj->activeDirectory();
|
||
|
}
|
||
|
|
||
11 years ago
|
TQString TDevProjectIface::buildDirectory( ) const
|
||
15 years ago
|
{
|
||
|
return m_prj->buildDirectory();
|
||
|
}
|
||
|
|
||
11 years ago
|
TQStringList TDevProjectIface::allFiles( ) const
|
||
15 years ago
|
{
|
||
|
return m_prj->allFiles();
|
||
|
}
|
||
|
|
||
11 years ago
|
TQStringList TDevProjectIface::distFiles( ) const
|
||
15 years ago
|
{
|
||
|
return m_prj->distFiles();
|
||
|
}
|
||
|
|
||
11 years ago
|
void TDevProjectIface::addFiles( const TQStringList & fileList )
|
||
15 years ago
|
{
|
||
|
m_prj->addFiles(fileList);
|
||
|
}
|
||
|
|
||
11 years ago
|
void TDevProjectIface::addFile( const TQString & fileName )
|
||
15 years ago
|
{
|
||
|
m_prj->addFile(fileName);
|
||
|
}
|
||
|
|
||
11 years ago
|
void TDevProjectIface::removeFiles( const TQStringList & fileList )
|
||
15 years ago
|
{
|
||
|
m_prj->removeFiles(fileList);
|
||
|
}
|
||
|
|
||
11 years ago
|
void TDevProjectIface::removeFile( const TQString & fileName )
|
||
15 years ago
|
{
|
||
|
m_prj->removeFile(fileName);
|
||
|
}
|
||
|
|
||
11 years ago
|
void TDevProjectIface::changedFiles( const TQStringList & fileList )
|
||
15 years ago
|
{
|
||
|
m_prj->changedFiles(fileList);
|
||
|
}
|
||
|
|
||
11 years ago
|
void TDevProjectIface::changedFile( const TQString & fileName )
|
||
15 years ago
|
{
|
||
|
m_prj->changedFile(fileName);
|
||
|
}
|
||
|
|
||
11 years ago
|
bool TDevProjectIface::isProjectFile( const TQString & absFileName )
|
||
15 years ago
|
{
|
||
|
return m_prj->isProjectFile(absFileName);
|
||
|
}
|
||
|
|
||
11 years ago
|
TQString TDevProjectIface::relativeProjectFile( const TQString & absFileName )
|
||
15 years ago
|
{
|
||
|
return m_prj->relativeProjectFile(absFileName);
|
||
|
}
|
||
|
|
||
11 years ago
|
TQStringList TDevProjectIface::symlinkProjectFiles( )
|
||
15 years ago
|
{
|
||
|
return m_prj->symlinkProjectFiles();
|
||
|
}
|
||
|
|
||
11 years ago
|
TQString TDevProjectIface::readEntry( const TQString & path, const TQString & defaultEntry )
|
||
15 years ago
|
{
|
||
|
return DomUtil::readEntry( *m_prj->projectDom(), path, defaultEntry);
|
||
|
}
|
||
|
|
||
11 years ago
|
int TDevProjectIface::readIntEntry( const TQString & path, int defaultEntry )
|
||
15 years ago
|
{
|
||
|
return DomUtil::readIntEntry(*m_prj->projectDom(), path,defaultEntry);
|
||
|
}
|
||
|
|
||
11 years ago
|
bool TDevProjectIface::readBoolEntry( const TQString & path, bool defaultEntry )
|
||
15 years ago
|
{
|
||
|
return DomUtil::readBoolEntry(*m_prj->projectDom(), path, defaultEntry);
|
||
|
}
|
||
|
|
||
11 years ago
|
TQStringList TDevProjectIface::readListEntry( const TQString & path, const TQString & tag )
|
||
15 years ago
|
{
|
||
|
return DomUtil::readListEntry(*m_prj->projectDom(), path, tag);
|
||
|
}
|
||
|
|
||
11 years ago
|
TQMap< TQString, TQString > TDevProjectIface::readMapEntry( const TQString & path )
|
||
15 years ago
|
{
|
||
|
return DomUtil::readMapEntry(*m_prj->projectDom(), path);
|
||
|
}
|
||
|
|
||
11 years ago
|
void TDevProjectIface::writeEntry( const TQString & path, const TQString & value )
|
||
15 years ago
|
{
|
||
|
DomUtil::writeEntry(*m_prj->projectDom(), path, value);
|
||
|
}
|
||
|
|
||
11 years ago
|
void TDevProjectIface::writeIntEntry( const TQString & path, int value )
|
||
15 years ago
|
{
|
||
|
DomUtil::writeIntEntry(*m_prj->projectDom(), path, value);
|
||
|
}
|
||
|
|
||
11 years ago
|
void TDevProjectIface::writeBoolEntry( const TQString & path, bool value )
|
||
15 years ago
|
{
|
||
|
DomUtil::writeBoolEntry(*m_prj->projectDom(), path, value);
|
||
|
}
|
||
|
|
||
11 years ago
|
void TDevProjectIface::writeListEntry( const TQString & path, const TQString & tag, const TQStringList & value )
|
||
15 years ago
|
{
|
||
|
DomUtil::writeListEntry(*m_prj->projectDom(), path, tag, value);
|
||
|
}
|
||
|
|
||
11 years ago
|
void TDevProjectIface::writeMapEntry( const TQString & path, const TQMap< TQString, TQString > & map )
|
||
15 years ago
|
{
|
||
|
DomUtil::writeMapEntry(*m_prj->projectDom(), path, map);
|
||
|
}
|
||
|
|
||
11 years ago
|
#include "tdevprojectiface.moc"
|