1
/***************************************************************************
2
* kexidbconnectiondata.h
3
* This file is part of the KDE project
4
* copyright (C)2004-2005 by Sebastian Sauer (mail@dipe.org)
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Library General Public
8
* License as published by the Free Software Foundation; either
9
* version 2 of the License, or (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Library General Public License for more details.
14
* You should have received a copy of the GNU Library General Public License
15
* along with this program; see the file COPYING. If not, write to
16
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
* Boston, MA 02111-1307, USA.
18
***************************************************************************/
20
#ifndef KROSS_KEXIDB_KEXIDBCONNECTIONDATA_H
21
#define KROSS_KEXIDB_KEXIDBCONNECTIONDATA_H
25
#include "../api/object.h"
26
#include "../api/variant.h"
27
#include "../api/list.h"
28
//#include "../api/module.h"
29
#include "../api/class.h"
31
#include <kexidb/connection.h>
32
#include <kexidb/connectiondata.h>
34
namespace Kross { namespace KexiDB {
37
* The KexiDBConnection class handles \a ::KexiDB::Connection
38
* instances and wraps parts of the functionality.
40
class KexiDBConnectionData : public Kross::Api::Class<KexiDBConnectionData>
47
* \param data The \a ::KexiDB::ConnectionData instance
50
KexiDBConnectionData(::KexiDB::ConnectionData* data);
55
virtual ~KexiDBConnectionData();
57
/// See \see Kross::Api::Object::getClassName
58
virtual const QString getClassName() const;
60
/// See \see Kross::Api::Object::getDescription
61
virtual const QString getDescription() const;
63
::KexiDB::ConnectionData* getConnectionData() const;
66
::KexiDB::ConnectionData* m_data;
68
Kross::Api::Object* connName(Kross::Api::List*);
69
Kross::Api::Object* setConnName(Kross::Api::List*);
71
Kross::Api::Object* description(Kross::Api::List*);
72
Kross::Api::Object* setDescription(Kross::Api::List*);
74
Kross::Api::Object* driverName(Kross::Api::List*);
75
Kross::Api::Object* setDriverName(Kross::Api::List*);
77
Kross::Api::Object* localSocketFileName(Kross::Api::List*);
79
// For serverbased drivers
80
Kross::Api::Object* hostName(Kross::Api::List*);
81
Kross::Api::Object* setHostName(Kross::Api::List*);
82
Kross::Api::Object* port(Kross::Api::List*);
83
Kross::Api::Object* setPort(Kross::Api::List*);
84
Kross::Api::Object* password(Kross::Api::List*);
85
Kross::Api::Object* setPassword(Kross::Api::List*);
86
Kross::Api::Object* userName(Kross::Api::List*);
87
Kross::Api::Object* setUserName(Kross::Api::List*);
89
// For filebased drivers
90
Kross::Api::Object* fileName(Kross::Api::List*);
91
Kross::Api::Object* setFileName(Kross::Api::List*);
92
Kross::Api::Object* dbPath(Kross::Api::List*);
93
Kross::Api::Object* dbFileName(Kross::Api::List*);
95
Kross::Api::Object* serverInfoString(Kross::Api::List*);