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.

Member Function Documentation

◆ messageHandler()

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

Definition at line 219 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 SqliteConnection, MysqlConnection, 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.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Nov 29 2022 04:08:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.