Пример #1
0
        public static FileListProgress GetInstance()
        {
            IntPtr           cPtr = SLikeNetPINVOKE.FileListProgress_GetInstance();
            FileListProgress ret  = (cPtr == IntPtr.Zero) ? null : new FileListProgress(cPtr, false);

            return(ret);
        }
Пример #2
0
 public static void DestroyInstance(FileListProgress i)
 {
     SLikeNetPINVOKE.FileListProgress_DestroyInstance(FileListProgress.getCPtr(i));
 }
Пример #3
0
 internal static HandleRef getCPtr(FileListProgress obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Пример #4
0
 public void RemoveCallback(FileListProgress cb)
 {
     SLikeNetPINVOKE.FileList_RemoveCallback(swigCPtr, FileListProgress.getCPtr(cb));
 }
Пример #5
0
 public void AddCallback(FileListProgress cb)
 {
     SLikeNetPINVOKE.FileListTransfer_AddCallback(swigCPtr, FileListProgress.getCPtr(cb));
 }
Пример #6
0
        public ushort DownloadFromSubdirectory(FileList localFiles, string subdir, string outputSubdir, bool prependAppDirToOutputSubdir, SystemAddress host, FileListTransferCBInterface onFileCallback, PacketPriority _priority, char _orderingChannel, FileListProgress cb)
        {
            ushort ret = SLikeNetPINVOKE.DirectoryDeltaTransfer_DownloadFromSubdirectory__SWIG_1(swigCPtr, FileList.getCPtr(localFiles), subdir, outputSubdir, prependAppDirToOutputSubdir, SystemAddress.getCPtr(host), FileListTransferCBInterface.getCPtr(onFileCallback), (int)_priority, _orderingChannel, FileListProgress.getCPtr(cb));

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }