~ubuntu-branches/ubuntu/breezy/koffice/breezy-security

« back to all changes in this revision

Viewing changes to kexi/scripting/kexidb/kexidbconnectiondata.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-10-11 14:49:50 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051011144950-lwpngbifzp8nk0ds
Tags: 1:1.4.1-0ubuntu7
* SECURITY UPDATE: fix heap based buffer overflow in the RTF importer of KWord
* Opening specially crafted RTF files in KWord can cause
  execution of abitrary code.
* Add kubuntu_01_rtfimport_heap_overflow.diff
* References:
  CAN-2005-2971
  CESA-2005-005
  http://www.koffice.org/security/advisory-20051011-1.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 * kexidbconnectiondata.h
 
3
 * This file is part of the KDE project
 
4
 * copyright (C)2004-2005 by Sebastian Sauer (mail@dipe.org)
 
5
 *
 
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
 ***************************************************************************/
 
19
 
 
20
#ifndef KROSS_KEXIDB_KEXIDBCONNECTIONDATA_H
 
21
#define KROSS_KEXIDB_KEXIDBCONNECTIONDATA_H
 
22
 
 
23
#include <qstring.h>
 
24
 
 
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"
 
30
 
 
31
#include <kexidb/connection.h>
 
32
#include <kexidb/connectiondata.h>
 
33
 
 
34
namespace Kross { namespace KexiDB {
 
35
 
 
36
    /**
 
37
     * The KexiDBConnection class handles \a ::KexiDB::Connection
 
38
     * instances and wraps parts of the functionality.
 
39
     */
 
40
    class KexiDBConnectionData : public Kross::Api::Class<KexiDBConnectionData>
 
41
    {
 
42
        public:
 
43
 
 
44
            /**
 
45
             * Constructor.
 
46
             *
 
47
             * \param data The \a ::KexiDB::ConnectionData instance
 
48
             *        this class wraps.
 
49
             */
 
50
            KexiDBConnectionData(::KexiDB::ConnectionData* data);
 
51
 
 
52
            /**
 
53
             * Destructor.
 
54
             */
 
55
            virtual ~KexiDBConnectionData();
 
56
 
 
57
            /// See \see Kross::Api::Object::getClassName
 
58
            virtual const QString getClassName() const;
 
59
 
 
60
            /// See \see Kross::Api::Object::getDescription
 
61
            virtual const QString getDescription() const;
 
62
 
 
63
            ::KexiDB::ConnectionData* getConnectionData() const;
 
64
 
 
65
        private:
 
66
            ::KexiDB::ConnectionData* m_data;
 
67
 
 
68
            Kross::Api::Object* connName(Kross::Api::List*);
 
69
            Kross::Api::Object* setConnName(Kross::Api::List*);
 
70
 
 
71
            Kross::Api::Object* description(Kross::Api::List*);
 
72
            Kross::Api::Object* setDescription(Kross::Api::List*);
 
73
 
 
74
            Kross::Api::Object* driverName(Kross::Api::List*);
 
75
            Kross::Api::Object* setDriverName(Kross::Api::List*);
 
76
 
 
77
            Kross::Api::Object* localSocketFileName(Kross::Api::List*);
 
78
 
 
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*);
 
88
 
 
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*);
 
94
 
 
95
            Kross::Api::Object* serverInfoString(Kross::Api::List*);
 
96
    };
 
97
 
 
98
}}
 
99
 
 
100
#endif
 
101