Banshee.Emusic.Store.StoreView.OnDownloadStatusChanged C# (CSharp) Method

OnDownloadStatusChanged() protected method

protected OnDownloadStatusChanged ( OssiferDownloadStatus status, string mimetype, string destinationUri ) : void
status OssiferDownloadStatus
mimetype string
destinationUri string
return void
        protected override void OnDownloadStatusChanged (OssiferDownloadStatus status, string mimetype, string destinationUri)
        {
            // FIXME: handle the error case
            if (status != OssiferDownloadStatus.Finished) {
                return;
            }

            if (IsEmusicContentType (mimetype)) {
                Log.Debug ("OssiferWebView: downloaded purchase list", destinationUri);
                Banshee.ServiceStack.ServiceManager.Get<EmusicService> ()
                    .ImportEmx (new SafeUri (destinationUri).LocalPath);
                Reload ();
            }
        }