kexi

kexiprojectconnectiondata.h
1/* This file is part of the KDE project
2 Copyright (C) 2003 Lucijan Busch <lucijan@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KEXIPROJECTCONNECTIONDATA_H
21#define KEXIPROJECTCONNECTIONDATA_H
22
23#include <kexidb/connectiondata.h>
24
25class TQDomElement;
26class TQDomDocument;
27class KoStore;
37{
38 public:
39
41
42 KexiProjectConnectionData(const TQString& driverName, const TQString& databaseName, const TQString &hostName, unsigned short int port,
43 const TQString& userName, const TQString &password, const TQString& fileName);
44
48 KexiProjectConnectionData(const TQString &driverName, const TQString &fileName=TQString());
49
51
52 static const TQString &generateTmpName();
53
54 static KexiProjectConnectionData* loadInfo(TQDomElement &e);
55 void writeInfo(TQDomDocument &doc);
56
57 void setDriverName(const TQString &driverName);
58 void setDatabaseName(const TQString &databaseName);
59
60 TQString driverName() const;
61 TQString databaseName() const;
62
63 private:
64 TQString m_driverName;
65 TQString m_databaseName;
66
67};
68
69#endif
TQString driverName
the name of the driver that should be used to create a connection
Database specific connection data, e.g. host, port.
This class aims to provide methods to store/load database settings especially for file based engines.