#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) | |||
| ||||
| typedef sigc::slot<bool, const Row&> Gnome::Gda::DataModel::SlotForEach |
For example, void on_foreach(const Row& row);.
| virtual Gnome::Gda::DataModel::~DataModel | ( | ) | [virtual] |
| GdaDataModel* Gnome::Gda::DataModel::gobj | ( | ) | [inline] |
| const GdaDataModel* Gnome::Gda::DataModel::gobj | ( | ) | const [inline] |
| GdaDataModel* Gnome::Gda::DataModel::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
| void Gnome::Gda::DataModel::changed | ( | ) |
| void Gnome::Gda::DataModel::row_inserted | ( | int | row | ) |
| void Gnome::Gda::DataModel::row_updated | ( | int | row | ) |
| void Gnome::Gda::DataModel::row_removed | ( | int | row | ) |
| void Gnome::Gda::DataModel::column_inserted | ( | int | col | ) |
| void Gnome::Gda::DataModel::column_updated | ( | int | col | ) |
| void Gnome::Gda::DataModel::column_removed | ( | int | col | ) |
| void Gnome::Gda::DataModel::freeze | ( | ) |
| void Gnome::Gda::DataModel::thaw | ( | ) |
| int Gnome::Gda::DataModel::get_n_rows | ( | ) | const |
| int Gnome::Gda::DataModel::get_n_columns | ( | ) | const |
| FieldAttributes Gnome::Gda::DataModel::describe_column | ( | int | col | ) |
| Glib::ustring Gnome::Gda::DataModel::get_column_title | ( | int | col | ) | const |
| void Gnome::Gda::DataModel::set_column_title | ( | int | col, | |
| const Glib::ustring & | title | |||
| ) |
| int Gnome::Gda::DataModel::get_column_position | ( | const Glib::ustring & | title | ) | const |
| Row Gnome::Gda::DataModel::get_row | ( | int | row | ) | const |
| Value Gnome::Gda::DataModel::get_value_at | ( | int | col, | |
| int | row | |||
| ) | const |
| bool Gnome::Gda::DataModel::is_updatable | ( | ) | const |
| const GdaRow* Gnome::Gda::DataModel::append_row | ( | const GList * | values | ) |
| bool Gnome::Gda::DataModel::remove_row | ( | const Row & | row | ) |
| bool Gnome::Gda::DataModel::update_row | ( | const Row & | row | ) |
| bool Gnome::Gda::DataModel::append_column | ( | const FieldAttributes & | col | ) |
| bool Gnome::Gda::DataModel::update_column | ( | int | col, | |
| const FieldAttributes & | attrs | |||
| ) |
| bool Gnome::Gda::DataModel::remove_column | ( | int | col | ) |
| void Gnome::Gda::DataModel::foreach | ( | const SlotForEach & | slot | ) |
| bool Gnome::Gda::DataModel::has_changed | ( | ) | const |
| bool Gnome::Gda::DataModel::begin_update | ( | ) |
| bool Gnome::Gda::DataModel::cancel_update | ( | ) |
| bool Gnome::Gda::DataModel::end_update | ( | ) |
| Glib::ustring Gnome::Gda::DataModel::to_comma_separated | ( | ) | const |
| Glib::ustring Gnome::Gda::DataModel::to_tab_separated | ( | ) | const |
| Glib::ustring Gnome::Gda::DataModel::to_xml | ( | bool | standalone | ) | const |
| Glib::ustring Gnome::Gda::DataModel::get_command_text | ( | ) | const |
| void Gnome::Gda::DataModel::set_command_text | ( | const Glib::ustring & | txt | ) |
| CommandType Gnome::Gda::DataModel::get_command_type | ( | ) | const |
| void Gnome::Gda::DataModel::set_command_type | ( | CommandType | type | ) |
| Glib::SignalProxy0< void > Gnome::Gda::DataModel::signal_changed | ( | ) |
| virtual int Gnome::Gda::DataModel::get_n_rows_vfunc | ( | ) | [virtual] |
| virtual int Gnome::Gda::DataModel::get_n_columns_vfunc | ( | ) | [virtual] |
| virtual GdaFieldAttributes* Gnome::Gda::DataModel::describe_column_vfunc | ( | int | col | ) | [virtual] |
| virtual const GdaValue* Gnome::Gda::DataModel::get_value_at_vfunc | ( | int | col, | |
| int | row | |||
| ) | [virtual] |
| virtual void Gnome::Gda::DataModel::on_changed | ( | ) | [protected, virtual] |
| Glib::RefPtr< Gnome::Gda::DataModel > wrap | ( | GdaDataModel * | object, | |
| bool | take_copy = false | |||
| ) | [related] |
| 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. |
1.5.1