kexi

#include <kexipartinfo.h>

Inheritance diagram for KexiPart::Info:
KexiPart::StaticInfo

Public Member Functions

 Info (KService::Ptr service)
TQString groupName () const
TQCString mimeType () const
TQString itemIcon () const
TQString createItemIcon () const
TQString objectName () const
int projectPartID () const
KService::Ptr ptr () const
bool isBroken () const
bool isVisibleInNavigator () const
bool isDataExportSupported () const
bool isPrintingSupported () const
bool isExecuteSupported () const

Protected Member Functions

 Info ()
void setProjectPartID (int id)
void setBroken (bool broken, const TQString &errorMessage)
TQString errorMessage () const
void setIdStoredInPartDatabase (bool set)
bool isIdStoredInPartDatabase () const

Protected Attributes

Private * d

Friends

class Manager
class ::KexiProject
class ::KexiMainWindowImpl
class ::KexiDialogBase

Detailed Description

Information about a Kexi Part (plugin).

Definition at line 40 of file kexipartinfo.h.

Constructor & Destructor Documentation

◆ Info() [1/2]

Info::Info ( KService::Ptr service)

Definition at line 60 of file kexipartinfo.cpp.

◆ ~Info()

Info::~Info ( )

Definition at line 70 of file kexipartinfo.cpp.

◆ Info() [2/2]

Info::Info ( )
protected

Used in StaticInfo.

Definition at line 65 of file kexipartinfo.cpp.

Member Function Documentation

◆ createItemIcon()

TQString Info::createItemIcon ( ) const
Returns
the icon for a item

Definition at line 81 of file kexipartinfo.cpp.

◆ errorMessage()

TQString Info::errorMessage ( ) const
protected
Returns
i18n'd error message set by setBroken().

Definition at line 98 of file kexipartinfo.cpp.

◆ groupName()

TQString Info::groupName ( ) const
Returns
a i18n'ed group name e.g. "Tables"

Definition at line 75 of file kexipartinfo.cpp.

◆ isBroken()

bool Info::isBroken ( ) const
Returns
true if loading was tried but failed

Definition at line 87 of file kexipartinfo.cpp.

◆ isDataExportSupported()

bool Info::isDataExportSupported ( ) const
Returns
true if the part supports data exporting.

Definition at line 110 of file kexipartinfo.cpp.

◆ isExecuteSupported()

bool Info::isExecuteSupported ( ) const
Returns
true if the part supports execution. This is as example the case for the Macro and the Scripting plugins.

Definition at line 122 of file kexipartinfo.cpp.

◆ isIdStoredInPartDatabase()

bool Info::isIdStoredInPartDatabase ( ) const
protected
Returns
true if ID of the part is stored in project's database false by default. This flag is updated in Manager::checkProject() and set to true on first successful execution of KexiDialogBase::storeNewData()

Definition at line 105 of file kexipartinfo.cpp.

◆ isPrintingSupported()

bool Info::isPrintingSupported ( ) const
Returns
true if the part supports data printing.

Definition at line 116 of file kexipartinfo.cpp.

◆ isVisibleInNavigator()

bool Info::isVisibleInNavigator ( ) const
Returns
true if the part should be visible in the Project Navigator (as a folder).

Definition at line 89 of file kexipartinfo.cpp.

◆ itemIcon()

TQString Info::itemIcon ( ) const
Returns
the icon for groups
the icon for a item

Definition at line 79 of file kexipartinfo.cpp.

◆ mimeType()

TQCString Info::mimeType ( ) const
Returns
the internal mime type of this part

Definition at line 77 of file kexipartinfo.cpp.

◆ objectName()

TQString Info::objectName ( ) const
Returns
the object name associated with this part (e.g. "table")

Definition at line 83 of file kexipartinfo.cpp.

◆ projectPartID()

int Info::projectPartID ( ) const
Returns
the project-part-id

Definition at line 91 of file kexipartinfo.cpp.

◆ ptr()

KService::Ptr Info::ptr ( ) const
Returns
the KService::Ptr associated with this part

Definition at line 85 of file kexipartinfo.cpp.

◆ setBroken()

void Info::setBroken ( bool broken,
const TQString & errorMessage )
protected

Sets the broken flag and error message.

Most likely to be called by KexiPart::Manager

Definition at line 95 of file kexipartinfo.cpp.

◆ setIdStoredInPartDatabase()

void Info::setIdStoredInPartDatabase ( bool set)
protected

Definition at line 100 of file kexipartinfo.cpp.

◆ setProjectPartID()

void Info::setProjectPartID ( int id)
protected

Sets the project-part-id.

Definition at line 93 of file kexipartinfo.cpp.

◆ ::KexiDialogBase

friend class ::KexiDialogBase
friend

Definition at line 121 of file kexipartinfo.h.

◆ ::KexiMainWindowImpl

friend class ::KexiMainWindowImpl
friend

Definition at line 120 of file kexipartinfo.h.

◆ ::KexiProject

friend class ::KexiProject
friend

Definition at line 119 of file kexipartinfo.h.

◆ Manager

friend class Manager
friend

Definition at line 118 of file kexipartinfo.h.

Member Data Documentation

◆ d

Private* KexiPart::Info::d
protected

Definition at line 150 of file kexipartinfo.h.


The documentation for this class was generated from the following files: