// Path: src/com/akjava/gwt/html5/client/file/callback/FileEntryCallback.java
// public interface FileEntryCallback {
// public void fileEntryCallback(FileEntry file);
// }
// 
// Path: src/com/akjava/gwt/html5/client/file/callback/FileErrorCallback.java
// public interface FileErrorCallback{
// 	public void fileErrorCallback(FileError fileError);
// }
// 
// Path: src/com/akjava/gwt/html5/client/file/callback/VoidCallback.java
// public interface VoidCallback {
// public void callback();
// }


import com.akjava.gwt.html5.client.file.DirectoryReader;
import com.akjava.gwt.html5.client.file.callback.FileEntryCallback;
import com.akjava.gwt.html5.client.file.callback.FileErrorCallback;
import com.akjava.gwt.html5.client.file.callback.FileWriterCallback;
import com.akjava.gwt.html5.client.file.callback.VoidCallback;
import com.google.gwt.core.client.JavaScriptObject;

    });
    
  	}-*/;
	
	//TODO support error
	public  final native void file(FilePathCallback callback,String parent)/*-{
   
    this.file( function(file){
    	callback.@com.akjava.gwt.html5.client.file.webkit.FilePathCallback::callback(Lcom/akjava/gwt/html5/client/file/File;Ljava/lang/String;)(file,parent)
    });
    
  	}-*/;
	

	//for directory only
	public  final native DirectoryReader getReader()/*-{
    return this.createReader();
  	}-*/;
	
	//TODO implement copyTo,moveTo

	//TODO implement resolveLocalFileSystemURL 
	
	public  final native String toURL()/*-{
    return this.toURL();
  	}-*/;
	
	
	
	

// Path: src/com/akjava/gwt/html5/client/file/callback/FileEntryCallback.java
// public interface FileEntryCallback {
// public void fileEntryCallback(FileEntry file);
// }
// 
// Path: src/com/akjava/gwt/html5/client/file/callback/FileErrorCallback.java
// public interface FileErrorCallback{
// 	public void fileErrorCallback(FileError fileError);
// }
// 
// Path: src/com/akjava/gwt/html5/client/file/callback/VoidCallback.java
// public interface VoidCallback {
// public void callback();
// }


// Path: src/com/akjava/gwt/html5/client/file/webkit/FileEntry.java
import com.akjava.gwt.html5.client.file.DirectoryReader;
import com.akjava.gwt.html5.client.file.callback.FileEntryCallback;
import com.akjava.gwt.html5.client.file.callback.FileErrorCallback;
import com.akjava.gwt.html5.client.file.callback.FileWriterCallback;
import com.akjava.gwt.html5.client.file.callback.VoidCallback;
import com.google.gwt.core.client.JavaScriptObject;

    });
    
  	}-*/;
	
	//TODO support error
	public  final native void file(FilePathCallback callback,String parent)/*-{
   
    this.file( function(file){
    	callback.@com.akjava.gwt.html5.client.file.webkit.FilePathCallback::callback(Lcom/akjava/gwt/html5/client/file/File;Ljava/lang/String;)(file,parent)
    });
    
  	}-*/;
	

	//for directory only
	public  final native DirectoryReader getReader()/*-{
    return this.createReader();
  	}-*/;
	
	//TODO implement copyTo,moveTo

	//TODO implement resolveLocalFileSystemURL 
	
	public  final native String toURL()/*-{
    return this.toURL();
  	}-*/;
	
	
	
	

public final native void remove(VoidCallback simpleCallback,FileErrorCallback errorCallback)/*-{
