kexi

kexipartinfo.h
1/* This file is part of the KDE project
2 Copyright (C) 2003 Lucijan Busch <lucijan@kde.org>
3 Copyright (C) 2003,2005 Jaroslaw Staniek <js@iidea.pl>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library 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
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KEXIPARTINFO_H
22#define KEXIPARTINFO_H
23
24#include "kexipartmanager.h"
25
27class KexiProject;
28class KexiDialogBase;
29
30namespace KexiPart
31{
32
33 class Manager;
34 class Item;
35 class Part;
36
40class KEXICORE_EXPORT Info
41{
42 public:
43 Info(KService::Ptr service);
44 ~Info();
45
49 TQString groupName() const;
50
54 TQCString mimeType() const;
55
56// /**
57// * @return the icon for groups
58// */
59// inline TQString groupIcon() const { return m_groupIcon; }
60
64 TQString itemIcon() const;
65
69 TQString createItemIcon() const;
70
74 TQString objectName() const;
75
79 int projectPartID() const;
80
84 KService::Ptr ptr() const;
85
89 bool isBroken() const;
90
94 bool isVisibleInNavigator() const;
95
99 bool isDataExportSupported() const;
100
104 bool isPrintingSupported() const;
105
110 bool isExecuteSupported() const;
111
112 protected:
116 Info();
117
118 friend class Manager;
119 friend class ::KexiProject;
120 friend class ::KexiMainWindowImpl;
121 friend class ::KexiDialogBase;
122
126 void setProjectPartID(int id);
127
132 void setBroken(bool broken, const TQString& errorMessage);
133
137 TQString errorMessage() const;
138
139 void setIdStoredInPartDatabase(bool set);
140
147 bool isIdStoredInPartDatabase() const;
148
149 class Private;
150 Private *d;
151};
152
156KEXICORE_EXPORT TQCString nameForCreateAction(const Info& info);
157
158}
159
160#endif
Base class for child window of Kexi's main application window.
Kexi's main window implementation.
Information about a Kexi Part (plugin).
KexiPart's manager: looks up and instantiates them.
A project's main controller.
Definition kexiproject.h:68