~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to lib/interfaces/kdevapi.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
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>
4
 
 
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.
9
 
 
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.
14
 
 
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.
19
 
*/
20
 
#include "kdevapi.h"
21
 
 
22
 
#include "kdevcoderepository.h"
23
 
 
24
 
///////////////////////////////////////////////////////////////////////////////
25
 
// class KDevApi::Private
26
 
///////////////////////////////////////////////////////////////////////////////
27
 
 
28
 
class KDevApi::Private
29
 
{
30
 
public:
31
 
    Private()
32
 
        : m_projectDom(0), m_project(0), m_languageSupport(0),
33
 
        m_codeRepository(0)
34
 
    {}
35
 
    
36
 
    QDomDocument *m_projectDom;
37
 
    KDevProject  *m_project;
38
 
    KDevLanguageSupport *m_languageSupport;
39
 
    KDevCodeRepository* m_codeRepository;
40
 
};
41
 
 
42
 
///////////////////////////////////////////////////////////////////////////////
43
 
// class KDevApi
44
 
///////////////////////////////////////////////////////////////////////////////
45
 
 
46
 
KDevApi::KDevApi()
47
 
{
48
 
    d = new KDevApi::Private;
49
 
    d->m_codeRepository = new KDevCodeRepository();
50
 
}
51
 
 
52
 
KDevApi::~KDevApi()
53
 
{
54
 
    delete d->m_codeRepository;
55
 
    delete d;
56
 
}
57
 
 
58
 
KDevProject *KDevApi::project() const
59
 
{
60
 
  return d->m_project;
61
 
}
62
 
 
63
 
void KDevApi::setProject(KDevProject *project)
64
 
{
65
 
  d->m_project = project;
66
 
}
67
 
 
68
 
KDevLanguageSupport *KDevApi::languageSupport() const
69
 
{
70
 
  return d->m_languageSupport;
71
 
}
72
 
 
73
 
void KDevApi::setLanguageSupport(KDevLanguageSupport *languageSupport)
74
 
{
75
 
  d->m_languageSupport = languageSupport;
76
 
}
77
 
 
78
 
QDomDocument *KDevApi::projectDom() const
79
 
{
80
 
    return d->m_projectDom;
81
 
}
82
 
 
83
 
void KDevApi::setProjectDom(QDomDocument *dom)
84
 
{
85
 
    d->m_projectDom = dom;
86
 
}
87
 
 
88
 
KDevCodeRepository *KDevApi::codeRepository() const
89
 
{
90
 
    return d->m_codeRepository;
91
 
}
92
 
 
93
 
#include "kdevapi.moc"