kexiappmainwindow.h
1/***************************************************************************
2 * kexiappmainwindow.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., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 ***************************************************************************/
19
20#ifndef KROSS_KEXIAPP_KEXIAPPMAINWINDOW_H
21#define KROSS_KEXIAPP_KEXIAPPMAINWINDOW_H
22
23#include <tqstring.h>
24#include <tqvariant.h>
25
26#include <api/object.h>
27#include <api/variant.h>
28#include <api/list.h>
29#include <api/class.h>
30
31// Forward declarations.
32class KexiMainWindow;
33
34namespace Kross { namespace KexiApp {
35
36 // Forward declarations.
37 class KexiAppPartItem;
38 class KexiAppMainWindowPrivate;
39
43 class KexiAppMainWindow : public Kross::Api::Class<KexiAppMainWindow>
44 {
45 public:
46
54
58 virtual ~KexiAppMainWindow();
59
61 virtual const TQString getClassName() const;
62
65 bool isConnected();
66
73 Kross::Api::Object::Ptr getConnection();
74
77 Kross::Api::List* getPartItems(const TQString& mimetype);
78
81 bool openPartItem(KexiAppPartItem* partitem);
82
83 private:
85 KexiAppMainWindowPrivate* d;
86 };
87
88}}
89
90#endif
91
Kexi's main window interface This interface is implemented by KexiMainWindowImpl class.
Class to handle Kexi's mainwindow instance.
Kross::Api::Object::Ptr getConnection()
Kross::Api::List * getPartItems(const TQString &mimetype)
virtual const TQString getClassName() const
bool openPartItem(KexiAppPartItem *partitem)
Try to open the defined KexiAppPartItem and.
Class to handle Kexi Part::Item instance.
Definition kexiapppart.h:42