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

import java.io.File;

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;
	
	public String createFileInServer(String path,byte[]  data) throws Exception;
	
	public String createFileInServer(String path, String data) throws Exception;
	
	public File pull(String fileName,String newlocalFileName) throws Exception;
}

@@ -1409,33 +1409,32 @@
 rows Exception;%0A
-%09
 %0A%09public String 
@@ -1430,138 +1430,35 @@
 lic 
-String createFileInServer(String path,byte%5B%5D  data) throws Exception;%0A%09%0A%09public String createFileInServer(String path, String data
+byte%5B%5D pull(String fileName
 ) th
@@ -1487,17 +1487,19 @@
 lic 
-File pull
+String push
 (Str

remove create file in server