Exemple #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);
            }
        }
Exemple #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;
            }
        }
Exemple #3
0
 private void HandleDownloadStatusChanged(IntPtr ossifer, OssiferDownloadStatus status, IntPtr mimetype, IntPtr destinationUri)
 {
     OnDownloadStatusChanged (status,
         GLib.Marshaller.Utf8PtrToString (mimetype),
         GLib.Marshaller.Utf8PtrToString (destinationUri));
 }
Exemple #4
0
 protected virtual void OnDownloadStatusChanged(OssiferDownloadStatus status, string mimetype, string destinationUri)
 {
 }
Exemple #5
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;
            }
        }
Exemple #6
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);
            }
        }
Exemple #7
0
 protected virtual void OnDownloadStatusChanged(OssiferDownloadStatus status, string mimetype, string destinationUri)
 {
 }
Exemple #8
0
 private void HandleDownloadStatusChanged(IntPtr ossifer, OssiferDownloadStatus status, IntPtr mimetype, IntPtr destinationUri)
 {
     OnDownloadStatusChanged(status,
                             GLib.Marshaller.Utf8PtrToString(mimetype),
                             GLib.Marshaller.Utf8PtrToString(destinationUri));
 }