00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
#include "projectmanager.h"
00020
#include "projectmanager.moc"
00021
00022
#include "application.h"
00023
00024
#include "../app/kateprojectmanager.h"
00025
00026
namespace Kate
00027 {
00028
00029
class PrivateProjectManager
00030 {
00031
public:
00032 PrivateProjectManager ()
00033 {
00034 }
00035
00036 ~PrivateProjectManager ()
00037 {
00038 }
00039
00040 KateProjectManager *projectMan;
00041 };
00042
00043 ProjectManager::ProjectManager (
void *projectManager) : QObject ((KateProjectManager*)
projectManager)
00044 {
00045 d =
new PrivateProjectManager ();
00046 d->projectMan = (KateProjectManager*)
projectManager;
00047 }
00048
00049 ProjectManager::~ProjectManager ()
00050 {
00051
delete d;
00052 }
00053
00054 Project *ProjectManager::create (
const QString &type,
const QString &name,
const QString &filename)
00055 {
00056
return d->projectMan->create (type, name, filename);
00057 }
00058
00059 Project *ProjectManager::open (
const QString &filename)
00060 {
00061
return d->projectMan->open (filename);
00062 }
00063
00064
bool ProjectManager::close (
Kate::Project *project)
00065 {
00066
return d->projectMan->close (project);
00067 }
00068
00069 Project *ProjectManager::project (uint n)
00070 {
00071
return d->projectMan->project (n);
00072 }
00073
00074 uint ProjectManager::projects ()
00075 {
00076
return d->projectMan->projects ();
00077 }
00078
00079 ProjectManager *
projectManager ()
00080 {
00081
return application()->
projectManager ();
00082 }
00083
00084 }
00085