kate Library API Documentation

projectmanager.cpp

00001 /* This file is part of the KDE project
00002    Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00016    Boston, MA 02111-1307, USA.
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 
KDE Logo
This file is part of the documentation for kate Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Sep 30 18:40:32 2005 by doxygen 1.4.3 written by Dimitri van Heesch, © 1997-2003