[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kate/interfaces
From: Christoph Cullmann <crossfire () babylon2k ! de>
Date: 2002-12-24 10:54:20
[Download RAW message or body]
CVS commit by cullmann:
dummy class to start with, kateprojectfile will get the methodes to access the data \
of a kate project file ;)
M +29 -1 project.cpp 1.16
M +33 -0 project.h 1.17
--- kdebase/kate/interfaces/project.cpp #1.15:1.16
@@ -49,4 +49,17 @@ class PrivateProject
};
+class PrivateProjectFile
+ {
+ public:
+ PrivateProjectFile ()
+ {
+ }
+
+ ~PrivateProjectFile ()
+ {
+ }
+ };
+
+
unsigned int Project::globalProjectNumber = 0;
@@ -89,4 +102,9 @@ QString Project::name () const
}
+QString Project::fileName () const
+{
+ d->data->fileName;
+}
+
KURL Project::url () const
{
@@ -114,4 +132,14 @@ QStringList Project::files (const QStrin
{
return QStringList ();
+}
+
+ProjectFile::ProjectFile (void *projectFile) : QObject ()
+{
+ d = new PrivateProjectFile ();
+}
+
+ProjectFile::~ProjectFile ()
+{
+ delete d;
}
--- kdebase/kate/interfaces/project.h #1.16:1.17
@@ -30,4 +30,31 @@ namespace Kate
* Interface to the project
*/
+class ProjectFile : public QObject
+{
+ friend class PrivateProjectFile;
+
+ Q_OBJECT
+
+ public:
+ /**
+ * Construtor, should not interest, internal usage
+ */
+ ProjectFile (void *projectFile);
+
+ /**
+ * Desctructor
+ */
+ virtual ~ProjectFile ();
+
+ private:
+ /**
+ * REALLY PRIVATE ;)
+ */
+ class PrivateProjectFile *d;
+};
+
+/**
+ * Interface to the project
+ */
class Project : public QObject
{
@@ -66,4 +93,10 @@ class Project : public QObject
*/
QString name () const;
+
+ /**
+ * Return the project name
+ * @return QString project name
+ */
+ QString fileName () const;
/**
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic