1
/* This file is part of the KDE project
2
Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License version 2 as published by the Free Software Foundation.
8
This library is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
Library General Public License for more details.
13
You should have received a copy of the GNU Library General Public License
14
along with this library; see the file COPYING.LIB. If not, write to
15
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16
Boston, MA 02111-1307, USA.
19
#include "projectmanager.h"
20
#include "projectmanager.moc"
22
#include "application.h"
24
#include "../app/kateprojectmanager.h"
29
class PrivateProjectManager
32
PrivateProjectManager ()
36
~PrivateProjectManager ()
40
KateProjectManager *projectMan;
43
ProjectManager::ProjectManager (void *projectManager) : QObject ((KateProjectManager*) projectManager)
45
d = new PrivateProjectManager ();
46
d->projectMan = (KateProjectManager*) projectManager;
49
ProjectManager::~ProjectManager ()
54
Project *ProjectManager::create (const QString &type, const QString &name, const QString &filename)
56
return d->projectMan->create (type, name, filename);
59
Project *ProjectManager::open (const QString &filename)
61
return d->projectMan->open (filename);
64
bool ProjectManager::close (Kate::Project *project)
66
return d->projectMan->close (project);
69
Project *ProjectManager::project (uint n)
71
return d->projectMan->project (n);
74
uint ProjectManager::projects ()
76
return d->projectMan->projects ();
79
ProjectManager *projectManager ()
81
return application()->projectManager ();