kexi

KexiPart::Item Class Reference

#include <kexipartitem.h>

List of all members.


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.


Public Member Functions

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

Member Function Documentation

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.

void KexiPart::Item::setNeverSaved ( bool  set  )  [inline]

See also:
neverSaved(). Used by KexiMainWindowImpl::newObject().

Definition at line 77 of file kexipartitem.h.

QString KexiPart::Item::captionOrName (  )  const [inline]

Returns:
caption if not empty, else returns name.

Definition at line 82 of file kexipartitem.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys