public static void itmdTest() { Console.WriteLine("Starting ITMD Test..."); //Console.ReadKey(); iph = new iTMDiPhone(); lliph = new iTMDiPhoneLL(); try { mdv = new iPhone(); } catch (Exception e) { Console.WriteLine(e.Message); } tai = new TAIiPhone(); mdv.Connect += Mdv_Connect; mdv.HostAttached += Mdv_HostAttached; iph.Connect += Iph_Connect; tai.Connect += Tai_Connect; lliph.HostAttached += Lliph_HostAttached; iph.DfuConnect += Iph_DfuConnect; while (true) { if (mdv.attachedToHost ^ mdv.IsConnected) { //Console.Clear(); //Console.WriteLine("Device attached but not paired. Enter passcode on device to pair."); } } }
public static unsafe iPhoneFile Open(iTMDiPhone 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); */ }
public static iPhoneFile OpenRead(iTMDiPhone phone, string path) { throw new NotImplementedException(); /* return Open(phone, path, FileAccess.Read); */ }
public static unsafe iPhoneFile Open(iTMDiPhone 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); */ }
public static iPhoneFile OpenRead(iTMDiPhone phone, string path) { throw new NotImplementedException(); /* * return Open(phone, path, FileAccess.Read); */ }
public static iPhoneFile OpenWrite(iTMDiPhone phone, string path) { return(Open(phone, path, FileAccess.Write)); }
private iPhoneFile(iTMDiPhone phone, long handle, OpenMode mode) { this.phone = phone; this.mode = mode; this.handle = handle; }
public static iPhoneFile OpenWrite(iTMDiPhone phone, string path) { return Open(phone, path, FileAccess.Write); }