kate Library API Documentation

project.h

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 #ifndef _KATE_PROJECT_INCLUDE_
00020 #define _KATE_PROJECT_INCLUDE_
00021 
00022 #include <qobject.h>
00023 #include <qstringlist.h>
00024 
00025 class KConfig;
00026 class DCOPObject;
00027 
00028 namespace Kate
00029 {
00030 
00034 class Project : public QObject
00035 {
00036   friend class PrivateProject;
00037 
00038   Q_OBJECT
00039 
00040   public:
00044     Project (void *project);
00045 
00049     virtual ~Project ();
00050 
00051     unsigned int projectNumber () const;
00052 
00053     DCOPObject *dcopObject ();
00054 
00059     class ProjectPlugin *plugin () const;
00060 
00065     KConfig *data ();
00066 
00067     KConfig *dirData (const QString &dir = QString::null);
00068 
00069     KConfig *fileData (const QString &file = QString::null);
00070 
00075     QString type ();
00076 
00081     QString name ();
00082 
00087     QString fileName ();
00088 
00093     QString dir ();
00094 
00099     bool save ();
00100 
00106     bool queryClose ();
00107     
00112     bool close ();
00113 
00114     QStringList dirs (const QString &dir = QString::null);
00115 
00116     QStringList files (const QString &dir = QString::null);
00117 
00118     void addDirs (const QString &dir, QStringList &dirs);
00119     void removeDirs (const QString &dir, QStringList &dirs);
00120 
00121     void addFiles (const QString &dir, QStringList &files);
00122     void removeFiles (const QString &dir, QStringList &files);
00123 
00124   #undef signals
00125   #define signals public
00126   signals:
00127   #undef signals
00128   #define signals protected
00129 
00130     void dirsAdded (const QString &dir, const QStringList &dirs);
00131     void dirsRemoved (const QString &dir, const QStringList &dirs);
00132 
00133     void filesAdded (const QString &dir, const QStringList &files);
00134     void filesRemoved (const QString &dir, const QStringList &files);
00135 
00136   private:
00140     class PrivateProject *d;
00141     static unsigned int globalProjectNumber;
00142     unsigned int myProjectNumber;
00143 };
00144 
00145 }
00146 
00147 #endif
KDE Logo
This file is part of the documentation for kate Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Apr 11 13:44:49 2004 by doxygen 1.3.6-20040222 written by Dimitri van Heesch, © 1997-2003