![]() |
![]() |
![]() |
libsocialweb Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
SwItemView; SwItemViewClass; void sw_item_view_set_from_set (SwItemView *item_view
,SwSet *set
); void sw_item_view_remove_by_uid (SwItemView *item_view
,const gchar *uid
); const gchar * sw_item_view_get_object_path (SwItemView *item_view
); SwService * sw_item_view_get_service (SwItemView *item_view
);
typedef struct { GObjectClass parent_class; void (*start) (SwItemView *item_view); void (*refresh) (SwItemView *item_view); void (*stop) (SwItemView *item_view); void (*close) (SwItemView *item_view); } SwItemViewClass;
void sw_item_view_set_from_set (SwItemView *item_view
,SwSet *set
);
Updates what the view contains based on the given SwSet. Removed signals will be fired for any items that were in the view but that are not present in the supplied set. Conversely any items that are new will cause signals to be fired indicating their addition.
This implemented by maintaining a set inside the SwItemView
|
A SwItemView |
|
A SwSet |
void sw_item_view_remove_by_uid (SwItemView *item_view
,const gchar *uid
);
const gchar * sw_item_view_get_object_path (SwItemView *item_view
);
Since SwItemView is responsible for constructing the object path and registering the object on the bus. This function is necessary for SwCore to be able to return the object path as the result of a function to open a view.
|
A SwItemView |
Returns : |
A string providing the object path. |
SwService * sw_item_view_get_service (SwItemView *item_view
);
|
A SwItemView |
Returns : |
The SwService that SwItemView is for |
"object-path"
property "object-path" gchar* : Read
The object path of this view.
Default value: NULL
"service"
property"service" SwService* : Read / Write / Construct Only
The service this view is using.