kexi

KexiBLOBBuffer::Handle Class Reference

#include <kexiblobbuffer.h>

Public Member Functions

 Handle ()
 Handle (const Handle &handle)
Id_t id () const
bool stored () const
 operator bool () const
Handle & operator= (const Handle &handle)
TQByteArray data () const
TQPixmap pixmap () const
void setStoredWidthID (Id_t id)
TQString originalFileName () const
TQString mimeType () const
Id_t folderId () const

Protected Member Functions

 Handle (Item *item)

Friends

class KexiBLOBBuffer

Detailed Description

Object handle used by KexiBLOBBuffer.

Definition at line 97 of file kexiblobbuffer.h.

Constructor & Destructor Documentation

◆ Handle() [1/3]

KexiBLOBBuffer::Handle::Handle ( )

Constructs a null handle. Null handles have empty pixap and data members, id == 0 and cast to boolean false.

Definition at line 71 of file kexiblobbuffer.cpp.

◆ Handle() [2/3]

KexiBLOBBuffer::Handle::Handle ( const Handle & handle)

Constructs a copy of handle.

Definition at line 66 of file kexiblobbuffer.cpp.

◆ ~Handle()

KexiBLOBBuffer::Handle::~Handle ( )

Definition at line 76 of file kexiblobbuffer.cpp.

◆ Handle() [3/3]

KexiBLOBBuffer::Handle::Handle ( Item * item)
protected

Constructs a handle based on item. Null handle is constructed for null item.

Definition at line 59 of file kexiblobbuffer.cpp.

Member Function Documentation

◆ data()

TQByteArray KexiBLOBBuffer::Handle::data ( ) const
inline

Definition at line 119 of file kexiblobbuffer.h.

◆ folderId()

Id_t KexiBLOBBuffer::Handle::folderId ( ) const
inline

Definition at line 131 of file kexiblobbuffer.h.

◆ id()

Id_t KexiBLOBBuffer::Handle::id ( ) const
inline

Definition at line 108 of file kexiblobbuffer.h.

◆ mimeType()

TQString KexiBLOBBuffer::Handle::mimeType ( ) const
inline

Definition at line 129 of file kexiblobbuffer.h.

◆ operator bool()

KexiBLOBBuffer::Handle::operator bool ( ) const
inline
Returns
true if this is null handle (i.e. one not pointing to any data)

Definition at line 115 of file kexiblobbuffer.h.

◆ operator=()

KexiBLOBBuffer::Handle & KexiBLOBBuffer::Handle::operator= ( const Handle & handle)

Definition at line 85 of file kexiblobbuffer.cpp.

◆ originalFileName()

TQString KexiBLOBBuffer::Handle::originalFileName ( ) const
inline

Definition at line 127 of file kexiblobbuffer.h.

◆ pixmap()

TQPixmap KexiBLOBBuffer::Handle::pixmap ( ) const
inline

Definition at line 121 of file kexiblobbuffer.h.

◆ setStoredWidthID()

void KexiBLOBBuffer::Handle::setStoredWidthID ( KexiBLOBBuffer::Id_t id)

Sets "stored" flag to true by setting non-temporary identifier. Only call this method for unstored (in memory) BLOBs

Todo
What about other handles for this item?
Todo
Todo
They were assuming it's unstored item, but it's stored now....

Definition at line 93 of file kexiblobbuffer.cpp.

◆ stored()

bool KexiBLOBBuffer::Handle::stored ( ) const
inline
Returns
true if this BLOB data pointed by this handle is stored at the db backend or false if it is kept in memory. Null handles return false.

Definition at line 112 of file kexiblobbuffer.h.

◆ KexiBLOBBuffer

friend class KexiBLOBBuffer
friend

Definition at line 138 of file kexiblobbuffer.h.


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