KDbResultable

Search for usage in LXR

#include <KDbResult.shared.h>

Inheritance diagram for KDbResultable:

Public Member Functions

 KDbResultable (const KDbResultable &other)
 
void clearResult ()
 
KDbMessageHandlermessageHandler () const
 
KDbResultableoperator= (const KDbResultable &other)
 
KDbResult result () const
 
virtual QString serverResultName () const
 
void setMessageHandler (KDbMessageHandler *handler)
 
void showMessage ()
 

Protected Attributes

Private *const d
 
KDbResult m_result
 

Detailed Description

Interface for classes providing a result.

Definition at line 149 of file KDbResult.shared.h.

Constructor & Destructor Documentation

◆ KDbResultable() [1/2]

KDbResultable::KDbResultable ( )

Definition at line 176 of file KDbResult.cpp.

◆ KDbResultable() [2/2]

KDbResultable::KDbResultable ( const KDbResultable & other)

Definition at line 181 of file KDbResult.cpp.

◆ ~KDbResultable()

KDbResultable::~KDbResultable ( )
virtual

Definition at line 187 of file KDbResult.cpp.

Member Function Documentation

◆ clearResult()

void KDbResultable::clearResult ( )

Definition at line 204 of file KDbResult.cpp.

◆ messageHandler()

KDbMessageHandler * KDbResultable::messageHandler ( ) const
Returns
associated message handler. 0 by default.

Definition at line 219 of file KDbResult.cpp.

◆ operator=()

KDbResultable & KDbResultable::operator= ( const KDbResultable & other)

Definition at line 192 of file KDbResult.cpp.

◆ result()

KDbResult KDbResultable::result ( ) const

Definition at line 199 of file KDbResult.cpp.

◆ serverResultName()

QString KDbResultable::serverResultName ( ) const
virtual
Returns
engine-specific last server-side operation result name, a name for KDbResult::serverErrorCode(). Use this in your application to give users more information on what's up.

Use this for your driver - default implementation just returns empty string. Note that this result name is not the same as the error message returned by KDbResult::serverMessage() or KDbResult::message().

See also
KDbResult::serverMessage()

Reimplemented in MysqlConnection, SqliteConnection, SybaseConnection, and xBaseConnection.

Definition at line 209 of file KDbResult.cpp.

◆ setMessageHandler()

void KDbResultable::setMessageHandler ( KDbMessageHandler * handler)

Sets message handler to handler.

Definition at line 214 of file KDbResult.cpp.

◆ showMessage()

void KDbResultable::showMessage ( )

Definition at line 224 of file KDbResult.cpp.

Member Data Documentation

◆ d

Private* const KDbResultable::d
protected

Definition at line 184 of file KDbResult.shared.h.

◆ m_result

KDbResult KDbResultable::m_result
protected

Definition at line 182 of file KDbResult.shared.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.