kexi

kexiprojectdata.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2003 Lucijan Busch <lucijan@gmx.at>
00003    Copyright (C) 2003-2004 Jaroslaw Staniek <js@iidea.pl>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KEXIPROJECTDATA_H
00022 #define KEXIPROJECTDATA_H
00023 
00024 #include <kexidb/connectiondata.h>
00025 #include <kexidb/schemadata.h>
00026 
00027 #include <qdatetime.h>
00028 
00029 class KexiProjectDataPrivate;
00030 
00039 class KEXICORE_EXPORT KexiProjectData : public QObject, public KexiDB::SchemaData
00040 {
00041     public:
00042         typedef QPtrList<KexiProjectData> List;
00043         typedef QMap<QCString,QString> ObjectInfo;
00044         
00045         KexiProjectData();
00046 
00047         KexiProjectData( const KexiDB::ConnectionData &cdata, 
00048             const QString& dbname = QString::null, const QString& caption = QString::null );
00049             
00051         KexiProjectData( const KexiProjectData& pdata );
00052 
00053         ~KexiProjectData();
00054 
00055         KexiProjectData& operator=(const KexiProjectData& pdata);
00056 
00059         bool finalMode() const;
00060         
00061         KexiDB::ConnectionData* connectionData();
00062 
00063         const KexiDB::ConnectionData* constConnectionData() const;
00064 
00067         QString databaseName() const;
00068         void setDatabaseName(const QString& dbName);
00069 
00076         QString infoString(bool nobr = true) const;
00077 
00078         QDateTime lastOpened() const;
00079         void setLastOpened(const QDateTime& lastOpened);
00080         QString description() const;
00081         void setDescription(const QString& desc);
00082 
00085         QValueList<ObjectInfo> autoopenObjects;
00086 
00092         uint formatVersion;
00093 
00094     private:
00095         KexiProjectDataPrivate *d;
00096 };
00097 
00098 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys