return media_object;
}
- public override ArrayList<MediaObject> get_children (
+ public override Gee.List<MediaObject> get_children (
string container_id,
uint offset,
uint max_count,
throw new ContentDirectoryError.NO_SUCH_OBJECT ("No such object");
}
- return (ArrayList<MediaObject>) children;
+ return children;
}
- public override ArrayList<MediaObject> get_root_children (
+ public override Gee.List<MediaObject> get_root_children (
uint offset,
uint max_count,
out uint child_count)
throw new ContentDirectoryError.NO_SUCH_OBJECT ("No such object");
}
- return (ArrayList<MediaObject>) children;
+ return children;
}
// Private methods
this.root_container.child_count = this.items.size;
}
- public override ArrayList<MediaObject> get_root_children (
+ public override Gee.List<MediaObject> get_root_children (
uint offset,
uint max_count,
out uint child_count)
throw new ContentDirectoryError.NO_SUCH_OBJECT ("No such object");
}
- return (ArrayList<MediaObject>) children;
+ return children;
}
public override MediaObject find_object_by_id (string object_id)
this.search_parser = new SearchCriteriaParser ();
}
- public override ArrayList<MediaObject> get_children (
+ public override Gee.List<MediaObject> get_children (
string container_id,
uint offset,
uint max_count,
return media_object;
}
- public override ArrayList<MediaObject> get_root_children (
+ public override Gee.List<MediaObject> get_root_children (
uint offset,
uint max_count,
out uint child_count)
throw new ContentDirectoryError.NO_SUCH_OBJECT ("No such object");
}
- return (ArrayList<MediaObject>) children;
+ return children;
}
/* Private methods */
DIDLLiteWriter didl_writer;
// Public abstract methods derived classes need to implement
- public virtual ArrayList<MediaObject> get_children (string container_id,
- uint offset,
- uint max_count,
- out uint child_count)
- throws GLib.Error {
+ public virtual Gee.List<MediaObject> get_children (string container_id,
+ uint offset,
+ uint max_count,
+ out uint child_count)
+ throws GLib.Error {
throw new ServerError.NOT_IMPLEMENTED ("Not Implemented\n");
}
throw new ServerError.NOT_IMPLEMENTED ("Not Implemented\n");
}
- public virtual ArrayList<MediaObject> get_root_children (
+ public virtual Gee.List<MediaObject> get_root_children (
uint offset,
uint max_count,
out uint child_count)
if (args.requested_count == 0)
args.requested_count = MAX_REQUESTED_COUNT;
- ArrayList<MediaItem> children;
+ Gee.List<MediaItem> children;
children = this.get_children (args.object_id,
args.index,