#include <datamodel.h>
Inheritance diagram for Gnome::Gda::DataModel:
Public Types | |
typedef sigc::slot< bool, const Row & > | SlotForEach |
For example, void on_foreach(const Row& row);. | |
Public Member Functions | |
virtual | ~DataModel () |
GdaDataModel * | gobj () |
Provides access to the underlying C GObject. | |
const GdaDataModel * | gobj () const |
Provides access to the underlying C GObject. | |
GdaDataModel * | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
void | changed () |
void | row_inserted (int row) |
void | row_updated (int row) |
void | row_removed (int row) |
void | column_inserted (int col) |
void | column_updated (int col) |
void | column_removed (int col) |
void | freeze () |
void | thaw () |
int | get_n_rows () const |
int | get_n_columns () const |
FieldAttributes | describe_column (int col) |
Glib::ustring | get_column_title (int col) const |
void | set_column_title (int col, const Glib::ustring &title) |
int | get_column_position (const Glib::ustring &title) const |
Row | get_row (int row) const |
Value | get_value_at (int col, int row) const |
bool | is_updatable () const |
const GdaRow * | append_row (const GList *values) |
bool | remove_row (const Row &row) |
bool | update_row (const Row &row) |
bool | append_column (const FieldAttributes &col) |
bool | update_column (int col, const FieldAttributes &attrs) |
bool | remove_column (int col) |
void | foreach (const SlotForEach &slot) |
bool | has_changed () const |
bool | begin_update () |
bool | cancel_update () |
bool | end_update () |
Glib::ustring | to_comma_separated () const |
Glib::ustring | to_tab_separated () const |
Glib::ustring | to_xml (bool standalone) const |
Glib::ustring | get_command_text () const |
void | set_command_text (const Glib::ustring &txt) |
CommandType | get_command_type () const |
void | set_command_type (CommandType type) |
Glib::SignalProxy0< void > | signal_changed () |
virtual int | get_n_rows_vfunc () |
virtual int | get_n_columns_vfunc () |
virtual GdaFieldAttributes * | describe_column_vfunc (int col) |
virtual const GdaValue * | get_value_at_vfunc (int col, int row) |
Protected Member Functions | |
virtual void | on_changed () |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr< Gnome::Gda::DataModel > | wrap (GdaDataModel *object, bool take_copy=false) |
|
For example, void on_foreach(const Row& row);.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase. |
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase. |
|
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|