C# Class MK.MobileDevice.iTMDiPhone

Exibir arquivo Open project: exaphaser/MK.MobileDevice Class Usage Examples

Public Methods

Method Description
ConnectViaHouseArrest ( ) : void
Copy ( string sourceName, string destName ) : void
CreateDirectory ( string path ) : bool
DeleteDirectory ( string path ) : void
DeleteDirectory ( string path, bool recursive ) : void
DeleteFile ( string path ) : void
DeleteFromDevice ( String fullName ) : void

Deletes the device item specified in parameter "fullname".

DisableWiFiConnection ( ) : bool
EnableWiFiConnection ( ) : bool
EnterDFU ( ) : void
EnterRecovery ( ) : void
Exists ( string path ) : bool
ExitRecovery ( ) : void
FileSize ( string path ) : ulong
FileType ( string path ) : FileTypes

Returns the file type (enum FileType) of the specified file or directory.

GetCurrentDirectory ( ) : string
GetDirectories ( string path ) : string[]
GetDirectoryRoot ( string path ) : string
GetFileInfo ( string path ) : string>.Dictionary
GetFileInfo ( string path, ulong &size, bool &directory ) : void
GetFileInfoDetails ( string path, int &size, FileTypes &fileType ) : void

Returns the size and type of the specified file or directory.

GetFiles ( string path ) : string[]
InitLibiMobileDevice ( ) : void
IsDirectory ( string path ) : bool
IsFile ( string path ) : bool
IsLink ( string path ) : bool
ReConnect ( ) : void
Rename ( string sourceName, string destName ) : bool
RequestProperty ( string key ) : string
RequestProperty ( string domain, string key ) : string
SetCurrentDirectory ( string path ) : void
iTMDiPhone ( ) : System
sendCommandToDevice ( string Command ) : void
sendFileToDevice ( string Filename ) : void

Protected Methods

Method Description
OnConnect ( MK.MobileDevice.ITMDConnectEventArgs args ) : void
OnDfuConnect ( MK.MobileDevice.DeviceNotificationEventArgs args ) : void
OnDfuDisconnect ( MK.MobileDevice.DeviceNotificationEventArgs args ) : void
OnDisconnect ( MK.MobileDevice.ITMDConnectEventArgs args ) : void
OnRecoveryModeEnter ( MK.MobileDevice.DeviceNotificationEventArgs args ) : void
OnRecoveryModeLeave ( MK.MobileDevice.DeviceNotificationEventArgs args ) : void

Private Methods

Method Description
ConnectToPhone ( ) : bool
DfuConnectCallback ( MK.MobileDevice.AMRecoveryDevice &callback ) : void
DfuDisconnectCallback ( MK.MobileDevice.AMRecoveryDevice &callback ) : void
FullPath ( string path1, string path2 ) : string
Get_st_ifmt ( string path ) : string
InternalDeleteDirectory ( string path ) : void
NotifyCallback ( MK.MobileDevice.ITMDAMDeviceNotificationCallbackInfo &callback ) : void
RecoveryConnectCallback ( AMRecoveryDevice &callback ) : void
RecoveryDisconnectCallback ( AMRecoveryDevice &callback ) : void
doConstruction ( ) : void
getDeviceHandle ( ) : void
updateDeviceList ( ) : void

Method Details

ConnectViaHouseArrest() public method

public ConnectViaHouseArrest ( ) : void
return void

Copy() public method

public Copy ( string sourceName, string destName ) : void
sourceName string
destName string
return void

CreateDirectory() public method

public CreateDirectory ( string path ) : bool
path string
return bool

DeleteDirectory() public method

public DeleteDirectory ( string path ) : void
path string
return void

DeleteDirectory() public method

public DeleteDirectory ( string path, bool recursive ) : void
path string
recursive bool
return void

DeleteFile() public method

public DeleteFile ( string path ) : void
path string
return void

DeleteFromDevice() public method

Deletes the device item specified in parameter "fullname".
public DeleteFromDevice ( String fullName ) : void
fullName String The full directory path and name of the item to remove.
return void

DisableWiFiConnection() public method

public DisableWiFiConnection ( ) : bool
return bool

EnableWiFiConnection() public method

public EnableWiFiConnection ( ) : bool
return bool

EnterDFU() public method

public EnterDFU ( ) : void
return void

EnterRecovery() public method

public EnterRecovery ( ) : void
return void

Exists() public method

public Exists ( string path ) : bool
path string
return bool

ExitRecovery() public method

public ExitRecovery ( ) : void
return void

FileSize() public method

public FileSize ( string path ) : ulong
path string
return ulong

FileType() public method

Returns the file type (enum FileType) of the specified file or directory.
public FileType ( string path ) : FileTypes
path string The file or directory for which to obtain the file type.
return FileTypes

GetCurrentDirectory() public method

public GetCurrentDirectory ( ) : string
return string

GetDirectories() public method

public GetDirectories ( string path ) : string[]
path string
return string[]

GetDirectoryRoot() public method

public GetDirectoryRoot ( string path ) : string
path string
return string

GetFileInfo() public method

public GetFileInfo ( string path ) : string>.Dictionary
path string
return string>.Dictionary

GetFileInfo() public method

public GetFileInfo ( string path, ulong &size, bool &directory ) : void
path string
size ulong
directory bool
return void

GetFileInfoDetails() public method

Returns the size and type of the specified file or directory.
public GetFileInfoDetails ( string path, int &size, FileTypes &fileType ) : void
path string The file or directory for which to retrieve information.
size int Returns the size of the specified file or directory
fileType FileTypes Returns the size of the specified file or directory
return void

GetFiles() public method

public GetFiles ( string path ) : string[]
path string
return string[]

InitLibiMobileDevice() public method

public InitLibiMobileDevice ( ) : void
return void

IsDirectory() public method

public IsDirectory ( string path ) : bool
path string
return bool

IsFile() public method

public IsFile ( string path ) : bool
path string
return bool

IsLink() public method

public IsLink ( string path ) : bool
path string
return bool

OnConnect() protected method

protected OnConnect ( MK.MobileDevice.ITMDConnectEventArgs args ) : void
args MK.MobileDevice.ITMDConnectEventArgs
return void

OnDfuConnect() protected method

protected OnDfuConnect ( MK.MobileDevice.DeviceNotificationEventArgs args ) : void
args MK.MobileDevice.DeviceNotificationEventArgs
return void

OnDfuDisconnect() protected method

protected OnDfuDisconnect ( MK.MobileDevice.DeviceNotificationEventArgs args ) : void
args MK.MobileDevice.DeviceNotificationEventArgs
return void

OnDisconnect() protected method

protected OnDisconnect ( MK.MobileDevice.ITMDConnectEventArgs args ) : void
args MK.MobileDevice.ITMDConnectEventArgs
return void

OnRecoveryModeEnter() protected method

protected OnRecoveryModeEnter ( MK.MobileDevice.DeviceNotificationEventArgs args ) : void
args MK.MobileDevice.DeviceNotificationEventArgs
return void

OnRecoveryModeLeave() protected method

protected OnRecoveryModeLeave ( MK.MobileDevice.DeviceNotificationEventArgs args ) : void
args MK.MobileDevice.DeviceNotificationEventArgs
return void

ReConnect() public method

public ReConnect ( ) : void
return void

Rename() public method

public Rename ( string sourceName, string destName ) : bool
sourceName string
destName string
return bool

RequestProperty() public method

public RequestProperty ( string key ) : string
key string
return string

RequestProperty() public method

public RequestProperty ( string domain, string key ) : string
domain string
key string
return string

SetCurrentDirectory() public method

public SetCurrentDirectory ( string path ) : void
path string
return void

iTMDiPhone() public method

public iTMDiPhone ( ) : System
return System

sendCommandToDevice() public method

public sendCommandToDevice ( string Command ) : void
Command string
return void

sendFileToDevice() public method

public sendFileToDevice ( string Filename ) : void
Filename string
return void