Пример #1
0
 public uint GetDownloadSpeed()
 {
     if (this.mDownloader == IntPtr.Zero)
     {
         return(0u);
     }
     return(DataDownloader.GetDownloadSpeed(this.mDownloader));
 }
Пример #2
0
 public uint GetLastError()
 {
     if (this.mDownloader == IntPtr.Zero)
     {
         return(0u);
     }
     return(DataDownloader.GetLastDownloaderError(this.mDownloader));
 }
Пример #3
0
 public bool Init(IIPSMobileDownloadCallbackInterface callback)
 {
     if (this.mDownloader == IntPtr.Zero)
     {
         return(false);
     }
     this.mCallback = new DownloadCallBack(callback);
     return(DataDownloader.InitDataDownloader(this.mDownloader, this.mCallback.mCallBack) > 0);
 }
Пример #4
0
        public bool DownloadLocalData(string downloadUrl, string savePath, byte priority, ref uint taskID, bool bDoBrokenResume)
        {
            if (this.mDownloader == IntPtr.Zero)
            {
                return(false);
            }
            byte bDoBrokenResume2 = 0;

            if (bDoBrokenResume)
            {
                bDoBrokenResume2 = 1;
            }
            return(DataDownloader.DownloadLocalData(this.mDownloader, downloadUrl, savePath, priority, ref taskID, bDoBrokenResume2) > 0);
        }
        public IIPSMobileDownloaderInterface GetDataDownloader(bool openProgressCallBack = false)
        {
            if (mDataManager == System.IntPtr.Zero)
            {
                return(null);
            }
            byte progressOpen = 0;

            if (openProgressCallBack)
            {
                progressOpen = 1;
            }
            DataDownloader dataDownloader = new DataDownloader(GetDataDownloader(mDataManager, progressOpen));

            return(dataDownloader);
        }
Пример #6
0
 public bool SetDownloadSpeed(uint downloadSpeed)
 {
     return(!(this.mDownloader == IntPtr.Zero) && DataDownloader.SetDownloadSpeed(this.mDownloader, downloadSpeed) > 0);
 }
Пример #7
0
 public bool CancelDownload(uint taskId)
 {
     return(!(this.mDownloader == IntPtr.Zero) && DataDownloader.CancelDownload(this.mDownloader, taskId) > 0);
 }
Пример #8
0
 public bool ResumeDownload()
 {
     return(!(this.mDownloader == IntPtr.Zero) && DataDownloader.ResumeDonload(this.mDownloader) > 0);
 }
Пример #9
0
 public bool PauseDownload()
 {
     return(!(this.mDownloader == IntPtr.Zero) && DataDownloader.PauseDownload(this.mDownloader) > 0);
 }
Пример #10
0
 public bool StartDownload()
 {
     return(!(this.mDownloader == IntPtr.Zero) && DataDownloader.StartDownload(this.mDownloader) > 0);
 }
Пример #11
0
 public bool GetDownloadTaskInfo(uint taskId, ref DataDownloader.DownloadInfo downloadInfo)
 {
     return(!(this.mDownloader == IntPtr.Zero) && DataDownloader.GetDownloadTaskInfo(this.mDownloader, taskId, ref downloadInfo) > 0);
 }
Пример #12
0
 public bool DownloadIfsData(uint fileId, byte priority, ref uint taskId)
 {
     return(!(this.mDownloader == IntPtr.Zero) && DataDownloader.DownloadIfsData(this.mDownloader, fileId, priority, ref taskId) > 0);
 }