コード例 #1
0
 public static iPhoneFile OpenRead(iOSDeviceMK phone, string path)
 {
 	throw new NotImplementedException();
 	/*
     return Open(phone, path, FileAccess.Read);
     */
 }
コード例 #2
0
        public static unsafe iPhoneFile Open(iOSDeviceMK phone, string path, FileAccess openmode)
        {
            throw new NotImplementedException();

            /*
             * long num;
             * OpenMode none = OpenMode.None;
             * switch (openmode)
             * {
             * case FileAccess.Read:
             *  none = OpenMode.Read;
             *  break;
             *
             * case FileAccess.Write:
             *  none = OpenMode.Write;
             *  break;
             *
             * case FileAccess.ReadWrite:
             *  throw new NotImplementedException("Read+Write not (yet) implemented");
             * }
             * string str = phone.FullPath(phone.GetCurrentDirectory(), path);
             * int num2 = MobileDevice.AFCFileRefOpen(phone.AFCHandle, str, (int) none, 0, out num);
             * if (num2 != 0)
             * {
             * throw new IOException("AFCFileRefOpen failed with error " + num2.ToString());
             * }
             * return new iPhoneFile(phone, num, none);
             */
        }
コード例 #3
0
        public static unsafe iPhoneFile Open(iOSDeviceMK phone, string path, FileAccess openmode)
        {
        	throw new NotImplementedException();
        	/*
            long num;
            OpenMode none = OpenMode.None;
            switch (openmode)
            {
                case FileAccess.Read:
                    none = OpenMode.Read;
                    break;

                case FileAccess.Write:
                    none = OpenMode.Write;
                    break;

                case FileAccess.ReadWrite:
                    throw new NotImplementedException("Read+Write not (yet) implemented");
            }
            string str = phone.FullPath(phone.GetCurrentDirectory(), path);
            int num2 = MobileDevice.AFCFileRefOpen(phone.AFCHandle, str, (int) none, 0, out num);
            if (num2 != 0)
            {
                throw new IOException("AFCFileRefOpen failed with error " + num2.ToString());
            }
            return new iPhoneFile(phone, num, none);
            */
        }
コード例 #4
0
        public static iPhoneFile OpenRead(iOSDeviceMK phone, string path)
        {
            throw new NotImplementedException();

            /*
             * return Open(phone, path, FileAccess.Read);
             */
        }
コード例 #5
0
        static void Main(string[] args)
        {            
            iph = new iOSDeviceMK();
            Console.Clear();
            Console.WriteLine(@"MK.MobileDevice.Lite
(c) 2015 MK Industries and ExaPhaser Industries
Created and Developed by MK and ExaPhaser in collaboration.
Source code is available on GitHub at http://github.com/mkindustries.

");
            iph.Connect += Iph_Connect;
            iph.Disconnect += Iph_Disconnect;
            while (true)
            { }
        }
コード例 #6
0
 public static iPhoneFile OpenWrite(iOSDeviceMK phone, string path)
 {
     return(Open(phone, path, FileAccess.Write));
 }
コード例 #7
0
 private iPhoneFile(iOSDeviceMK phone, long handle, OpenMode mode)
 {
     this.phone  = phone;
     this.mode   = mode;
     this.handle = handle;
 }
コード例 #8
0
 public static iPhoneFile OpenWrite(iOSDeviceMK phone, string path)
 {
     return Open(phone, path, FileAccess.Write);
 }
コード例 #9
0
 private iPhoneFile(iOSDeviceMK phone, long handle, OpenMode mode)
 {
     this.phone = phone;
     this.mode = mode;
     this.handle = handle;
 }