libgdamm Reference Documentation |
Public Member Functions | |
glong | get_code () const |
Glib::ustring | get_description () const |
ConnectionEventType | get_event_type () const |
Get event's severity (from a simple notice to a fatal event). | |
ConnectionEventCode | get_gda_code () const |
Retreive the code associated to event. | |
Glib::ustring | get_source () const |
Glib::ustring | get_sqlstate () const |
const GdaConnectionEvent* | gobj () const |
Provides access to the underlying C GObject. | |
GdaConnectionEvent* | gobj () |
Provides access to the underlying C GObject. | |
GdaConnectionEvent* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
Glib::PropertyProxy_ReadOnly <ConnectionEventType> | property_type () const |
Connection event type. | |
Glib::PropertyProxy <ConnectionEventType> | property_type () |
Connection event type. | |
void | set_code (glong code) |
Sets event's code: the code is specific to the provider being used. | |
void | set_description (const Glib::ustring& description) |
Sets event's description. | |
void | set_event_type (ConnectionEventType type) |
Sets event's severity (from a simple notice to a fatal event). | |
void | set_gda_code (ConnectionEventCode code) |
Sets event's gda code: that code is standardized by the libgda library. | |
void | set_source (const Glib::ustring& source) |
Sets event's source. | |
void | set_sqlstate (const Glib::ustring& sqlstate) |
Sets event's SQL state. | |
virtual | ~ConnectionEvent () |
Static Public Member Functions | |
static Glib::RefPtr <ConnectionEvent> | create () |
Protected Member Functions | |
ConnectionEvent () | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr <Gnome::Gda::ConnectionEvent> | wrap (GdaConnectionEvent* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
Events occuring on a connection are each represented as a ConnectionEvent object. Each Connection is responsible for keeping a list of past events; that list can be consulted using the Connection::get_events() function.
virtual Gnome::Gda::ConnectionEvent::~ConnectionEvent | ( | ) | [virtual] |
Gnome::Gda::ConnectionEvent::ConnectionEvent | ( | ) | [protected] |
static Glib::RefPtr<ConnectionEvent> Gnome::Gda::ConnectionEvent::create | ( | ) | [static] |
glong Gnome::Gda::ConnectionEvent::get_code | ( | ) | const |
Glib::ustring Gnome::Gda::ConnectionEvent::get_description | ( | ) | const |
ConnectionEventType Gnome::Gda::ConnectionEvent::get_event_type | ( | ) | const |
Get event's severity (from a simple notice to a fatal event).
ConnectionEventCode Gnome::Gda::ConnectionEvent::get_gda_code | ( | ) | const |
Glib::ustring Gnome::Gda::ConnectionEvent::get_source | ( | ) | const |
Glib::ustring Gnome::Gda::ConnectionEvent::get_sqlstate | ( | ) | const |
const GdaConnectionEvent* Gnome::Gda::ConnectionEvent::gobj | ( | ) | const [inline] |
GdaConnectionEvent* Gnome::Gda::ConnectionEvent::gobj | ( | ) | [inline] |
GdaConnectionEvent* Gnome::Gda::ConnectionEvent::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Glib::PropertyProxy_ReadOnly<ConnectionEventType> Gnome::Gda::ConnectionEvent::property_type | ( | ) | const |
Connection event type.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy<ConnectionEventType> Gnome::Gda::ConnectionEvent::property_type | ( | ) |
Connection event type.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
void Gnome::Gda::ConnectionEvent::set_code | ( | glong | code | ) |
Sets event's code: the code is specific to the provider being used.
If you want to have a common understanding of the event codes, use get_gda_code() instead.
code | A code. |
void Gnome::Gda::ConnectionEvent::set_description | ( | const Glib::ustring & | description | ) |
Sets event's description.
description | A description. |
void Gnome::Gda::ConnectionEvent::set_event_type | ( | ConnectionEventType | type | ) |
Sets event's severity (from a simple notice to a fatal event).
type | The severity of the event. |
void Gnome::Gda::ConnectionEvent::set_gda_code | ( | ConnectionEventCode | code | ) |
Sets event's gda code: that code is standardized by the libgda library.
If you want to specify the corresponding provider specific code, use get_code() instead.
code | A code. |
void Gnome::Gda::ConnectionEvent::set_source | ( | const Glib::ustring & | source | ) |
Sets event's source.
source | A source. |
void Gnome::Gda::ConnectionEvent::set_sqlstate | ( | const Glib::ustring & | sqlstate | ) |
Sets event's SQL state.
sqlstate | SQL state. |
Glib::RefPtr<Gnome::Gda::ConnectionEvent> wrap | ( | GdaConnectionEvent * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |