Kexi API Documentation (2.0 alpha)

KexiPart::Manager Class Reference

#include <kexipartmanager.h>

Inheritance diagram for KexiPart::Manager:

KexiDB::Object List of all members.

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.

Signals

void partLoaded (KexiPart::Part *)

Public Member Functions

 Manager (QObject *parent=0)
 creates an empty instance
 ~Manager ()
void lookup ()
 queries ktrader and creates a list of available parts
PartpartForMimeType (const QString &mimeTypt)
Partpart (Info *)
InfoinfoForMimeType (const QString &mimeType)
bool checkProject (KexiDB::Connection *conn)
 checks project's kexi__part table and checks if all parts used in a project are available locally
MissingList missingParts () const
PartInfoListpartInfoList ()

Protected Member Functions

void insertStaticPart (KexiPart::StaticPart *part)
 Used by StaticPart.

Friends

class StaticPart


Constructor & Destructor Documentation

Manager::Manager QObject *  parent = 0  ) 
 

creates an empty instance

Definition at line 38 of file kexipartmanager.cpp.

Manager::~Manager  ) 
 

Definition at line 106 of file kexipartmanager.cpp.


Member Function Documentation

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.

References KexiDB::Object::clearError(), KexiDB::Connection::deleteCursor(), KexiDB::Cursor::eof(), KexiDB::Connection::executeQuery(), infoForMimeType(), KexiDB::Connection::insertRecord(), KexiDB::Connection::isDatabaseUsed(), KexiPart::Missing::mime, KexiDB::Cursor::moveFirst(), KexiDB::Cursor::moveNext(), KexiPart::Missing::name, KexiDB::Object::setError(), KexiPart::Info::setIdStoredInPartDatabase(), KexiPart::Info::setProjectPartID(), KexiDB::FieldList::subList(), KexiDB::Connection::tableSchema(), KexiPart::Missing::url, and KexiDB::Cursor::value().

Info * Manager::infoForMimeType const QString mimeType  ) 
 

Returns:
the info for a corresponding internal mime

Definition at line 196 of file kexipartmanager.cpp.

References KexiDB::Object::setError().

Referenced by checkProject().

void Manager::insertStaticPart KexiPart::StaticPart part  )  [protected]
 

Used by StaticPart.

Definition at line 269 of file kexipartmanager.cpp.

References KexiPart::Part::info().

void Manager::lookup  ) 
 

queries ktrader and creates a list of available parts

Definition at line 49 of file kexipartmanager.cpp.

References KEXI_PART_VERSION, KexiPart::Info::mimeType(), KexiPart::Info::setProjectPartID(), size, Kexi::tempShowForms(), Kexi::tempShowMacros(), Kexi::tempShowReports(), and Kexi::tempShowScripts().

MissingList KexiPart::Manager::missingParts  )  const [inline]
 

Returns:
parts metioned in the project meta tables but not available locally

Definition at line 112 of file kexipartmanager.h.

Part * Manager::part Info  ) 
 

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.

References KexiDB::Object::clearError(), KexiDB::Object::error(), KexiPart::Info::errorMessage(), KexiPart::Info::isBroken(), KexiPart::Part::m_registeredPartID, KexiPart::Info::objectName(), partLoaded(), KexiPart::Info::projectPartID(), KexiPart::Info::ptr(), KexiPart::Info::setBroken(), KexiDB::Object::setError(), KexiPart::Part::setInfo(), and KexiPart::Info::setProjectPartID().

Referenced by partForMimeType().

Part * Manager::partForMimeType const QString 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.

References part().

PartInfoList* KexiPart::Manager::partInfoList  )  [inline]
 

Returns:
a list of the available KexiParts in well-defined order

Definition at line 118 of file kexipartmanager.h.

void KexiPart::Manager::partLoaded KexiPart::Part  )  [signal]
 

Referenced by part().


Friends And Related Function Documentation

friend class StaticPart [friend]
 

Definition at line 135 of file kexipartmanager.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:53 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003