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;
}

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

remove create file in server