public ulong MgrGetMemorySize()
 {
     if (this.mDataManager == IntPtr.Zero)
     {
         return(0uL);
     }
     return(IIPSMobileDataManager.GetDataMgrMemorySize(this.mDataManager));
 }
 public IIPSMobileDataReaderInterface GetDataReader()
 {
     if (this.mDataManager == IntPtr.Zero)
     {
         return(null);
     }
     return(new DataReader(IIPSMobileDataManager.GetDataReader(this.mDataManager)));
 }
 public uint MgrGetDataMgrLastError()
 {
     if (this.mDataManager == IntPtr.Zero)
     {
         return(0u);
     }
     return(IIPSMobileDataManager.GetLastDataMgrError(this.mDataManager));
 }
 public IIPSMobileDataQueryInterface GetDataQuery()
 {
     if (this.mDataManager == IntPtr.Zero)
     {
         return(null);
     }
     return(new DataQuery(IIPSMobileDataManager.GetDataQuery(this.mDataManager)));
 }
Exemplo n.º 5
0
        public IIPSMobileDataMgrInterface CreateDataMgr(string config)
        {
            IIPSMobileDataManager iIPSMobileDataManager = new IIPSMobileDataManager();

            if (!iIPSMobileDataManager.Init((uint)config.get_Length(), Encoding.get_ASCII().GetBytes(config)))
            {
                return(null);
            }
            return(iIPSMobileDataManager);
        }
Exemplo n.º 6
0
        public IIPSMobileDataMgrInterface CreateDataMgr(string config)
        {
            IIPSMobileDataManager manager = new IIPSMobileDataManager();

            if (!manager.Init((uint)config.Length, Encoding.ASCII.GetBytes(config)))
            {
                return(null);
            }
            return(manager);
        }
        public bool Init(uint bufferSize, byte[] configBuffer)
        {
            if (this.mDataManager == IntPtr.Zero)
            {
                return(false);
            }
            GCHandle gCHandle      = GCHandle.Alloc(configBuffer, 3);
            IntPtr   configBuffer2 = gCHandle.AddrOfPinnedObject();

            gCHandle.Free();
            return(IIPSMobileDataManager.InitDataManager(this.mDataManager, bufferSize, configBuffer2) > 0);
        }
        public IIPSMobileDataMgrInterface CreateDataMgr(string config)
        {
            IIPSMobileDataManager dMgr = new IIPSMobileDataManager();
            bool ret = dMgr.Init((uint)config.Length, System.Text.Encoding.ASCII.GetBytes(config));

            if (!ret)
            {
                return(null);
            }
            else
            {
                return(dMgr);
            }
        }
        public IIPSMobileDownloaderInterface GetDataDownloader(bool openProgressCallBack = false)
        {
            if (this.mDataManager == IntPtr.Zero)
            {
                return(null);
            }
            byte openProgressCallBack2 = 0;

            if (openProgressCallBack)
            {
                openProgressCallBack2 = 1;
            }
            return(new DataDownloader(IIPSMobileDataManager.GetDataDownloader(this.mDataManager, openProgressCallBack2)));
        }
Exemplo n.º 10
0
 public IIPSMobileDataManager()
 {
     this.mDataManager = IIPSMobileDataManager.CreateDataManager();
 }
Exemplo n.º 11
0
 public bool Uninit()
 {
     return(!(this.mDataManager == IntPtr.Zero) && IIPSMobileDataManager.UnitDataManager(this.mDataManager) > 0);
 }
Exemplo n.º 12
0
 public bool PollCallBack()
 {
     return(!(this.mDataManager == IntPtr.Zero) && IIPSMobileDataManager.DataMgrPollCallback(this.mDataManager) > 0);
 }