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

« back to all changes in this revision

Viewing changes to src/plugins/media-export/rygel-media-export-root-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:
282
282
        RelationalExpression virtual_expression = null;
283
283
        QueryContainer query_container;
284
284
 
 
285
        container = null;
 
286
 
285
287
        if (!(expression is LogicalExpression)) {
286
288
            return false;
287
289
        }
393
395
 
394
396
    private void on_initial_harvesting_done () {
395
397
        this.harvester.disconnect (this.harvester_signal_id);
 
398
        this.media_db.debug_statistics ();
396
399
 
397
400
        this.filesystem_container.container_updated.connect( () => {
398
401
            this.add_default_virtual_folders ();
405
408
    private void add_default_virtual_folders () {
406
409
        try {
407
410
            this.add_virtual_containers_for_class (_("Music"),
408
 
                                                   "object.item.audioItem.musicTrack",
409
 
                                                    virtual_folders_music);
 
411
                                                   MusicItem.UPNP_CLASS,
 
412
                                                   virtual_folders_music);
410
413
            this.add_virtual_containers_for_class (_("Pictures"),
411
 
                                                   "object.item.imageItem.photo");
 
414
                                                   PhotoItem.UPNP_CLASS);
412
415
            this.add_virtual_containers_for_class (_("Videos"),
413
 
                                                   "object.item.videoItem");
 
416
                                                   VideoItem.UPNP_CLASS);
414
417
        } catch (Error error) {};
415
418
    }
416
419