kexi

KexiPart::Item Class Reference

#include <kexipartitem.h>

Public Member Functions

int identifier () const
void setIdentifier (int id)
TQCString mimeType () const
void setMimeType (const TQCString &mime)
TQString name () const
void setName (const TQString &name)
TQString caption () const
void setCaption (const TQString &c)
TQString description () const
void setDescription (const TQString &d)
bool neverSaved () const
void setNeverSaved (bool set)
bool isNull () const
TQString captionOrName () const

Detailed Description

Information about a single object that can be instantiated using Kexi Part.

KexiPart::Item stores:

  • identifier ident (low-level name, for example: table name)
  • mime type name, eg. "kexi/table"
  • caption (visible, i18n'd hight level name, eg. table or query title)

Definition at line 46 of file kexipartitem.h.

Constructor & Destructor Documentation

◆ Item()

Item::Item ( )

Definition at line 24 of file kexipartitem.cpp.

◆ ~Item()

Item::~Item ( )

Definition at line 30 of file kexipartitem.cpp.

Member Function Documentation

◆ caption()

TQString KexiPart::Item::caption ( ) const
inline

Definition at line 62 of file kexipartitem.h.

◆ captionOrName()

TQString KexiPart::Item::captionOrName ( ) const
inline
Returns
caption if not empty, else returns name.

Definition at line 82 of file kexipartitem.h.

◆ description()

TQString KexiPart::Item::description ( ) const
inline

Definition at line 65 of file kexipartitem.h.

◆ identifier()

int KexiPart::Item::identifier ( ) const
inline

Definition at line 53 of file kexipartitem.h.

◆ isNull()

bool KexiPart::Item::isNull ( ) const
inline

Definition at line 79 of file kexipartitem.h.

◆ mimeType()

TQCString KexiPart::Item::mimeType ( ) const
inline

Definition at line 56 of file kexipartitem.h.

◆ name()

TQString KexiPart::Item::name ( ) const
inline

Definition at line 59 of file kexipartitem.h.

◆ neverSaved()

bool KexiPart::Item::neverSaved ( ) const
inline
Returns
"neverSaved" flag for this item what mean that is used when new item is created in-memory-only, so we need to indicate for KexiProject about that state. By default this flag is false. Used by KexiMainWindowImpl::newObject().

Definition at line 73 of file kexipartitem.h.

◆ setCaption()

void KexiPart::Item::setCaption ( const TQString & c)
inline

Definition at line 63 of file kexipartitem.h.

◆ setDescription()

void KexiPart::Item::setDescription ( const TQString & d)
inline

Definition at line 66 of file kexipartitem.h.

◆ setIdentifier()

void KexiPart::Item::setIdentifier ( int id)
inline

Definition at line 54 of file kexipartitem.h.

◆ setMimeType()

void KexiPart::Item::setMimeType ( const TQCString & mime)
inline

Definition at line 57 of file kexipartitem.h.

◆ setName()

void KexiPart::Item::setName ( const TQString & name)
inline

Definition at line 60 of file kexipartitem.h.

◆ setNeverSaved()

void KexiPart::Item::setNeverSaved ( bool set)
inline
See also
neverSaved(). Used by KexiMainWindowImpl::newObject().

Definition at line 77 of file kexipartitem.h.


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