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

            if (IsAmzContentType(mimetype))
            {
                Log.Debug("OssiferWebView: downloaded purchase list", destinationUri);
                Banshee.ServiceStack.ServiceManager.Get <AmazonMp3DownloaderService> ()
                .DownloadAmz(new SafeUri(destinationUri).LocalPath);
            }
        }
예제 #2
0
        protected override void OnDownloadStatusChanged(OssiferDownloadStatus status, string mimetype, string destinationUri)
        {
            // FIXME: handle the error case
            if (status != OssiferDownloadStatus.Finished)
            {
                return;
            }

            switch (mimetype)
            {
            case "application/x-miro":
                Log.Debug("MiroGuide: downloaded Miro subscription file", destinationUri);
                ServiceManager.Get <DBusCommandService> ().PushFile(destinationUri);
                break;
            }
        }
예제 #3
0
 private void HandleDownloadStatusChanged(IntPtr ossifer, OssiferDownloadStatus status, IntPtr mimetype, IntPtr destinationUri)
 {
     OnDownloadStatusChanged (status,
         GLib.Marshaller.Utf8PtrToString (mimetype),
         GLib.Marshaller.Utf8PtrToString (destinationUri));
 }
예제 #4
0
 protected virtual void OnDownloadStatusChanged(OssiferDownloadStatus status, string mimetype, string destinationUri)
 {
 }
예제 #5
0
파일: View.cs 프로젝트: knocte/banshee
        protected override void OnDownloadStatusChanged(OssiferDownloadStatus status, string mimetype, string destinationUri)
        {
            // FIXME: handle the error case
            if (status != OssiferDownloadStatus.Finished) {
                return;
            }

            switch (mimetype) {
                case "application/x-miro":
                    Log.Debug ("MiroGuide: downloaded Miro subscription file", destinationUri);
                    ServiceManager.Get<DBusCommandService> ().PushFile (destinationUri);
                    break;
            }
        }
예제 #6
0
파일: StoreView.cs 프로젝트: knocte/banshee
        protected override void OnDownloadStatusChanged(OssiferDownloadStatus status, string mimetype, string destinationUri)
        {
            // FIXME: handle the error case
            if (status != OssiferDownloadStatus.Finished) {
                return;
            }

            if (IsAmzContentType (mimetype)) {
                Log.Debug ("OssiferWebView: downloaded purchase list", destinationUri);
                Banshee.ServiceStack.ServiceManager.Get<AmazonMp3DownloaderService> ()
                    .DownloadAmz (new SafeUri (destinationUri).LocalPath);
            }
        }
예제 #7
0
 protected virtual void OnDownloadStatusChanged(OssiferDownloadStatus status, string mimetype, string destinationUri)
 {
 }
예제 #8
0
 private void HandleDownloadStatusChanged(IntPtr ossifer, OssiferDownloadStatus status, IntPtr mimetype, IntPtr destinationUri)
 {
     OnDownloadStatusChanged(status,
                             GLib.Marshaller.Utf8PtrToString(mimetype),
                             GLib.Marshaller.Utf8PtrToString(destinationUri));
 }