#include <kexipartmanager.h>
Signals | |
| void | partLoaded (KexiPart::Part *) |
Public Member Functions | |
| Manager (TQObject *parent=0) | |
| void | lookup () |
| Part * | partForMimeType (const TQString &mimeTypt) |
| Part * | part (Info *) |
| Info * | infoForMimeType (const TQString &mimeType) |
| bool | checkProject (KexiDB::Connection *conn) |
| MissingList | missingParts () const |
| PartInfoList * | partInfoList () |
Public Member Functions inherited from KexiDB::Object | |
| bool | error () const |
| const TQString & | errorMsg () const |
| int | errorNum () const |
| int | previousServerResult () const |
| TQString | previousServerResultName () const |
| void | debugError () |
| virtual void | clearError () |
| virtual TQString | serverErrorMsg () |
| virtual int | serverResult () |
| virtual TQString | serverResultName () |
| TQString | msgTitle () const |
| const TQString | recentSQLString () const |
Protected Member Functions | |
| void | insertStaticPart (KexiPart::StaticPart *part) |
Protected Member Functions inherited from KexiDB::Object | |
| Object (MessageHandler *handler=0) | |
| virtual void | setError (int code=ERR_OTHER, const TQString &msg=TQString()) |
| virtual void | setError (const TQString &msg) |
| virtual void | setError (const TQString &title, const TQString &msg) |
| void | setError (KexiDB::Object *obj, const TQString &prependMessage=TQString()) |
| virtual void | setError (KexiDB::Object *obj, int code, const TQString &prependMessage=TQString()) |
| virtual int | askQuestion (const TQString &message, KMessageBox::DialogType dlgType, KMessageBox::ButtonCode defaultResult, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontShowAskAgainName=TQString(), int options=KMessageBox::Notify, MessageHandler *msgHandler=0) |
| virtual void | drv_clearServerResult () |
Friends | |
| class | StaticPart |
Additional Inherited Members | |
Protected Attributes inherited from KexiDB::Object | |
| TQString | m_sql |
| TQString | m_errorSql |
| int | m_serverResult |
| TQString | m_serverResultName |
| TQString | m_serverErrorMsg |
| TQString | m_errMsg |
Detailed Description
KexiPart's manager: looks up and instantiates them.
It dlopens them when needed, they aren't dlopened at startup is not necessary.
Definition at line 68 of file kexipartmanager.h.
Constructor & Destructor Documentation
◆ Manager()
| Manager::Manager | ( | TQObject * | parent = 0 | ) |
creates an empty instance
Definition at line 38 of file kexipartmanager.cpp.
◆ ~Manager()
| Manager::~Manager | ( | ) |
Definition at line 106 of file kexipartmanager.cpp.
Member Function Documentation
◆ checkProject()
| bool Manager::checkProject | ( | KexiDB::Connection * | conn | ) |
checks project's kexi__part table and checks if all parts used in a project are available locally
use missingParts() to get a list of missing parts
Definition at line 207 of file kexipartmanager.cpp.
◆ infoForMimeType()
| Info * Manager::infoForMimeType | ( | const TQString & | mimeType | ) |
- Returns
- the info for a corresponding internal mime
Definition at line 196 of file kexipartmanager.cpp.
◆ insertStaticPart()
|
protected |
Used by StaticPart.
Definition at line 269 of file kexipartmanager.cpp.
◆ lookup()
| void Manager::lookup | ( | ) |
queries ktrader and creates a list of available parts
Definition at line 49 of file kexipartmanager.cpp.
◆ missingParts()
|
inline |
- Returns
- parts metioned in the project meta tables but not available locally
Definition at line 113 of file kexipartmanager.h.
◆ part()
- Returns
- a part object for specified info. Dlopens a part using KexiPart::Info if needed. Return 0 if loading failed.
Definition at line 111 of file kexipartmanager.cpp.
◆ partForMimeType()
| Part * Manager::partForMimeType | ( | const TQString & | mimeTypt | ) |
- Returns
- a part object for specified mime type. Dlopens a part using KexiPart::Info if needed. Return 0 if loading failed.
Definition at line 190 of file kexipartmanager.cpp.
◆ partInfoList()
|
inline |
- Returns
- a list of the available KexiParts in well-defined order
Definition at line 119 of file kexipartmanager.h.
Friends And Related Symbol Documentation
◆ StaticPart
|
friend |
Definition at line 136 of file kexipartmanager.h.
The documentation for this class was generated from the following files:

Public Member Functions inherited from