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.
94 lines
2.4 KiB
94 lines
2.4 KiB
15 years ago
|
/* This file is part of the KDE project
|
||
11 years ago
|
Copyright (C) 2000-2001 Bernd Gehrmann <bernd@kdevelop.org>
|
||
|
Copyright (C) 2004 Alexander Dymo <adymo@kdevelop.org>
|
||
15 years ago
|
|
||
|
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 "tdevapi.h"
|
||
15 years ago
|
|
||
11 years ago
|
#include "tdevcoderepository.h"
|
||
15 years ago
|
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
11 years ago
|
// class TDevApi::Private
|
||
15 years ago
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
11 years ago
|
class TDevApi::Private
|
||
15 years ago
|
{
|
||
|
public:
|
||
|
Private()
|
||
|
: m_projectDom(0), m_project(0), m_languageSupport(0),
|
||
|
m_codeRepository(0)
|
||
|
{}
|
||
|
|
||
15 years ago
|
TQDomDocument *m_projectDom;
|
||
11 years ago
|
TDevProject *m_project;
|
||
|
TDevLanguageSupport *m_languageSupport;
|
||
|
TDevCodeRepository* m_codeRepository;
|
||
15 years ago
|
};
|
||
|
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
11 years ago
|
// class TDevApi
|
||
15 years ago
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
11 years ago
|
TDevApi::TDevApi()
|
||
15 years ago
|
{
|
||
11 years ago
|
d = new TDevApi::Private;
|
||
|
d->m_codeRepository = new TDevCodeRepository();
|
||
15 years ago
|
}
|
||
|
|
||
11 years ago
|
TDevApi::~TDevApi()
|
||
15 years ago
|
{
|
||
|
delete d->m_codeRepository;
|
||
|
delete d;
|
||
|
}
|
||
|
|
||
11 years ago
|
TDevProject *TDevApi::project() const
|
||
15 years ago
|
{
|
||
|
return d->m_project;
|
||
|
}
|
||
|
|
||
11 years ago
|
void TDevApi::setProject(TDevProject *project)
|
||
15 years ago
|
{
|
||
|
d->m_project = project;
|
||
|
}
|
||
|
|
||
11 years ago
|
TDevLanguageSupport *TDevApi::languageSupport() const
|
||
15 years ago
|
{
|
||
|
return d->m_languageSupport;
|
||
|
}
|
||
|
|
||
11 years ago
|
void TDevApi::setLanguageSupport(TDevLanguageSupport *languageSupport)
|
||
15 years ago
|
{
|
||
|
d->m_languageSupport = languageSupport;
|
||
|
}
|
||
|
|
||
11 years ago
|
TQDomDocument *TDevApi::projectDom() const
|
||
15 years ago
|
{
|
||
|
return d->m_projectDom;
|
||
|
}
|
||
|
|
||
11 years ago
|
void TDevApi::setProjectDom(TQDomDocument *dom)
|
||
15 years ago
|
{
|
||
|
d->m_projectDom = dom;
|
||
|
}
|
||
|
|
||
11 years ago
|
TDevCodeRepository *TDevApi::codeRepository() const
|
||
15 years ago
|
{
|
||
|
return d->m_codeRepository;
|
||
|
}
|
||
|
|
||
11 years ago
|
#include "tdevapi.moc"
|