Gnome::Gda::DataModel Class Reference

#include <datamodel.h>

Inheritance diagram for Gnome::Gda::DataModel:

Glib::Object Glib::ObjectBase sigc::trackable List of all members.

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::DataModelwrap (GdaDataModel *object, bool take_copy=false)

Member Typedef Documentation

typedef sigc::slot<bool, const Row&> Gnome::Gda::DataModel::SlotForEach
 

For example, void on_foreach(const Row& row);.


Constructor & Destructor Documentation

virtual Gnome::Gda::DataModel::~DataModel  )  [virtual]
 


Member Function Documentation

bool Gnome::Gda::DataModel::append_column const FieldAttributes col  ) 
 

const GdaRow* Gnome::Gda::DataModel::append_row const GList *  values  ) 
 

bool Gnome::Gda::DataModel::begin_update  ) 
 

bool Gnome::Gda::DataModel::cancel_update  ) 
 

void Gnome::Gda::DataModel::changed  ) 
 

void Gnome::Gda::DataModel::column_inserted int  col  ) 
 

void Gnome::Gda::DataModel::column_removed int  col  ) 
 

void Gnome::Gda::DataModel::column_updated int  col  ) 
 

FieldAttributes Gnome::Gda::DataModel::describe_column int  col  ) 
 

virtual GdaFieldAttributes* Gnome::Gda::DataModel::describe_column_vfunc int  col  )  [virtual]
 

bool Gnome::Gda::DataModel::end_update  ) 
 

void Gnome::Gda::DataModel::foreach const SlotForEach slot  ) 
 

void Gnome::Gda::DataModel::freeze  ) 
 

int Gnome::Gda::DataModel::get_column_position const Glib::ustring title  )  const
 

Glib::ustring Gnome::Gda::DataModel::get_column_title int  col  )  const
 

Glib::ustring Gnome::Gda::DataModel::get_command_text  )  const
 

CommandType Gnome::Gda::DataModel::get_command_type  )  const
 

int Gnome::Gda::DataModel::get_n_columns  )  const
 

virtual int Gnome::Gda::DataModel::get_n_columns_vfunc  )  [virtual]
 

int Gnome::Gda::DataModel::get_n_rows  )  const
 

virtual int Gnome::Gda::DataModel::get_n_rows_vfunc  )  [virtual]
 

Row Gnome::Gda::DataModel::get_row int  row  )  const
 

Value Gnome::Gda::DataModel::get_value_at int  col,
int  row
const
 

virtual const GdaValue* Gnome::Gda::DataModel::get_value_at_vfunc int  col,
int  row
[virtual]
 

const GdaDataModel* Gnome::Gda::DataModel::gobj  )  const [inline]
 

Provides access to the underlying C GObject.

Reimplemented from Glib::ObjectBase.

GdaDataModel* Gnome::Gda::DataModel::gobj  )  [inline]
 

Provides access to the underlying C GObject.

Reimplemented from Glib::ObjectBase.

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.

bool Gnome::Gda::DataModel::has_changed  )  const
 

bool Gnome::Gda::DataModel::is_updatable  )  const
 

virtual void Gnome::Gda::DataModel::on_changed  )  [protected, virtual]
 

bool Gnome::Gda::DataModel::remove_column int  col  ) 
 

bool Gnome::Gda::DataModel::remove_row const Row row  ) 
 

void Gnome::Gda::DataModel::row_inserted int  row  ) 
 

void Gnome::Gda::DataModel::row_removed int  row  ) 
 

void Gnome::Gda::DataModel::row_updated int  row  ) 
 

void Gnome::Gda::DataModel::set_column_title int  col,
const Glib::ustring title
 

void Gnome::Gda::DataModel::set_command_text const Glib::ustring txt  ) 
 

void Gnome::Gda::DataModel::set_command_type CommandType  type  ) 
 

Glib::SignalProxy0< void > Gnome::Gda::DataModel::signal_changed  ) 
 

void Gnome::Gda::DataModel::thaw  ) 
 

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
 

bool Gnome::Gda::DataModel::update_column int  col,
const FieldAttributes attrs
 

bool Gnome::Gda::DataModel::update_row const Row row  ) 
 


Friends And Related Function Documentation

Glib::RefPtr< Gnome::Gda::DataModel > wrap GdaDataModel *  object,
bool  take_copy = false
[related]
 

Parameters:
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.
Returns:
A C++ instance that wraps this C instance.


The documentation for this class was generated from the following file:
Generated on Thu Dec 1 01:00:54 2005 for libgdamm by  doxygen 1.4.5