Back to index

unity  6.0.0
Public Types | Public Member Functions | Public Attributes | Private Member Functions
unity::dash::Categories Class Reference

#include <Categories.h>

Inheritance diagram for unity::dash::Categories:
Inheritance graph
[legend]
Collaboration diagram for unity::dash::Categories:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::shared_ptr
< Categories
Ptr

Public Member Functions

 Categories ()
 Categories (ModelType model_type)
const Category RowAtIndex (std::size_t index)

Public Attributes

sigc::signal< void, Category
const & > 
category_added
sigc::signal< void, Category
const & > 
category_changed
sigc::signal< void, Category
const & > 
category_removed
nux::Property< std::string > swarm_name
nux::ROProperty< std::size_t > count
nux::ROProperty< unsigned long
long > 
seqnum
nux::ROProperty< glib::Object
< DeeModel > > 
model
sigc::signal< void, Category & > row_added
sigc::signal< void, Category & > row_changed
sigc::signal< void, Category & > row_removed
sigc::signal< void, unsigned
long long, unsigned long long > 
begin_transaction
sigc::signal< void, unsigned
long long, unsigned long long > 
end_transaction

Private Member Functions

void OnRowAdded (Category &category)
void OnRowChanged (Category &category)
void OnRowRemoved (Category &category)

Detailed Description

Definition at line 33 of file Categories.h.


Member Typedef Documentation

typedef std::shared_ptr<Categories> unity::dash::Categories::Ptr

Reimplemented from unity::dash::Model< Category >.

Definition at line 36 of file Categories.h.


Constructor & Destructor Documentation

Definition at line 27 of file Categories.cpp.

{
  row_added.connect(sigc::mem_fun(this, &Categories::OnRowAdded));
  row_changed.connect(sigc::mem_fun(this, &Categories::OnRowChanged));
  row_removed.connect(sigc::mem_fun(this, &Categories::OnRowRemoved));
}

Here is the call graph for this function:

Definition at line 34 of file Categories.cpp.

 : Model<Category>::Model(model_type)
{
  row_added.connect(sigc::mem_fun(this, &Categories::OnRowAdded));
  row_changed.connect(sigc::mem_fun(this, &Categories::OnRowChanged));
  row_removed.connect(sigc::mem_fun(this, &Categories::OnRowRemoved));
}

Here is the call graph for this function:


Member Function Documentation

void unity::dash::Categories::OnRowAdded ( Category category) [private]

Definition at line 42 of file Categories.cpp.

{
  category_added.emit(category);
}

Here is the caller graph for this function:

void unity::dash::Categories::OnRowChanged ( Category category) [private]

Definition at line 47 of file Categories.cpp.

{
  category_changed.emit(category);
}

Here is the caller graph for this function:

void unity::dash::Categories::OnRowRemoved ( Category category) [private]

Definition at line 52 of file Categories.cpp.

{
  category_removed.emit(category);
}

Here is the caller graph for this function:

const Category unity::dash::Model< Category >::RowAtIndex ( std::size_t  index) [inherited]

Member Data Documentation

sigc::signal<void, unsigned long long, unsigned long long> unity::dash::Model< Category >::begin_transaction [inherited]

Definition at line 70 of file Model.h.

Definition at line 41 of file Categories.h.

Definition at line 42 of file Categories.h.

Definition at line 43 of file Categories.h.

nux::ROProperty<std::size_t> unity::dash::Model< Category >::count [inherited]

Definition at line 62 of file Model.h.

sigc::signal<void, unsigned long long, unsigned long long> unity::dash::Model< Category >::end_transaction [inherited]

Definition at line 71 of file Model.h.

nux::ROProperty<glib::Object<DeeModel> > unity::dash::Model< Category >::model [inherited]

Definition at line 64 of file Model.h.

sigc::signal<void, Category &> unity::dash::Model< Category >::row_added [inherited]

Definition at line 66 of file Model.h.

sigc::signal<void, Category &> unity::dash::Model< Category >::row_changed [inherited]

Definition at line 67 of file Model.h.

sigc::signal<void, Category &> unity::dash::Model< Category >::row_removed [inherited]

Definition at line 68 of file Model.h.

nux::ROProperty<unsigned long long> unity::dash::Model< Category >::seqnum [inherited]

Definition at line 63 of file Model.h.

nux::Property<std::string> unity::dash::Model< Category >::swarm_name [inherited]

Definition at line 61 of file Model.h.


The documentation for this class was generated from the following files: