1
/* This file is part of the KDE project
2
Copyright (C) 2000-2001 Bernd Gehrmann <bernd@kdevelop.org>
3
Copyright (C) 2004 Alexander Dymo <adymo@kdevelop.org>
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
License as published by the Free Software Foundation; either
8
version 2 of the License, or (at your option) any later version.
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
15
You should have received a copy of the GNU Library General Public License
16
along with this library; see the file COPYING.LIB. If not, write to
17
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
Boston, MA 02111-1307, USA.
22
#include "kdevcoderepository.h"
24
///////////////////////////////////////////////////////////////////////////////
25
// class KDevApi::Private
26
///////////////////////////////////////////////////////////////////////////////
28
class KDevApi::Private
32
: m_projectDom(0), m_project(0), m_languageSupport(0),
36
QDomDocument *m_projectDom;
37
KDevProject *m_project;
38
KDevLanguageSupport *m_languageSupport;
39
KDevCodeRepository* m_codeRepository;
42
///////////////////////////////////////////////////////////////////////////////
44
///////////////////////////////////////////////////////////////////////////////
48
d = new KDevApi::Private;
49
d->m_codeRepository = new KDevCodeRepository();
54
delete d->m_codeRepository;
58
KDevProject *KDevApi::project() const
63
void KDevApi::setProject(KDevProject *project)
65
d->m_project = project;
68
KDevLanguageSupport *KDevApi::languageSupport() const
70
return d->m_languageSupport;
73
void KDevApi::setLanguageSupport(KDevLanguageSupport *languageSupport)
75
d->m_languageSupport = languageSupport;
78
QDomDocument *KDevApi::projectDom() const
80
return d->m_projectDom;
83
void KDevApi::setProjectDom(QDomDocument *dom)
85
d->m_projectDom = dom;
88
KDevCodeRepository *KDevApi::codeRepository() const
90
return d->m_codeRepository;
93
#include "kdevapi.moc"