package org.topq.mobile.common_mobile.client.interfaces;

import org.topq.mobile.common_mobile.client.enums.HardwareButtons;

/**
 * 
 * @author Bortman Limor
 *
 */
public interface MobileClintInterface {
	public static final CharSequence ERROR_STRING = "ERROR";
	public static final CharSequence SUCCESS_STRING = "SUCCESS";
	public static final String NO_DATA_STRING = "NO_DATA_FROM_SERVER";
	

	public String launch() throws Exception;
	
	public String getTextView(int index) throws Exception ;
	
	public String getTextViewIndex(String text) throws Exception;
	
	public String getCurrentTextViews() throws Exception;
	
	public String getText(int index) throws Exception;
	
	public String clickOnMenuItem(String item) throws Exception;
	
	public String clickOnView(int index) throws Exception;
	
	public String enterText(int index, String text) throws Exception;
	
	public String clickOnButton(int index) throws Exception;
	
	public String clickInList(int index) throws Exception;
	
	public String clearEditText(int index) throws Exception;
	
	public String clickOnButtonWithText(String text) throws Exception;
	
	public String clickOnText(String text) throws Exception;

//	public String goBack() throws Exception;
	
	public String clickOnHardwereButton(HardwareButtons button) throws Exception;
	
	public String sendKey(int key) throws Exception;
	
	public void closeConnection() throws Exception;
}

@@ -51,16 +51,38 @@
 faces;%0A%0A
+import java.io.File;%0A%0A
 import o
@@ -1417,10 +1417,225 @@
 eption;%0A
+%09%0A%09public String createFileInServer(String path,byte%5B%5D  data) throws Exception;%0A%09%0A%09public String createFileInServer(String path, String data) throws Exception;%0A%09%0A%09public File pull(String fileName) throws Exception;%0A
 %7D%0A

add createFileInServer