~ubuntu-branches/ubuntu/trusty/rygel/trusty

« back to all changes in this revision

Viewing changes to src/rygel/rygel-media-container.vala

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2011-12-16 15:21:25 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20111216152125-qgn31dkfmhouhrf0
Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
    public int child_count;
50
50
    public uint32 update_id;
 
51
    public int64 storage_used;
51
52
 
52
53
    internal override OCMFlags ocm_flags {
53
54
        get {
89
90
        this.title = title;
90
91
        this.child_count = child_count;
91
92
        this.update_id = 0;
 
93
        this.storage_used = -1;
92
94
        this.upnp_class = STORAGE_FOLDER;
93
95
 
94
96
        this.container_updated.connect (on_container_updated);
156
158
        didl_container.child_count = this.child_count;
157
159
        didl_container.upnp_class = this.upnp_class;
158
160
        didl_container.searchable = this is SearchableContainer;
 
161
        didl_container.storage_used = this.storage_used;
 
162
 
 
163
        if (this.parent == null && (this is SearchableContainer)) {
 
164
            (this as SearchableContainer).serialize_search_parameters
 
165
                                        (didl_container);
 
166
        }
159
167
 
160
168
        if (!this.restricted) {
161
169
            didl_container.restricted = false;