// Path: app/src/main/java/com/dalthed/tucan/Connection/AnswerObject.java
// public class AnswerObject {
// 	private String HTML_text;
// 	private String redirectURL;
// 	private String lastcalledURL;
// 	private CookieManager Cookies;
// 	/**
// 	 * RückgabeObjekt der BrowseMethods
// 	 * @param HTML HTML-Code
// 	 * @param redirect Redirect-URL aus dem HTTP-Header
// 	 * @param myCookies CookieManager mit relevanten Cookies
// 	 * @param lastcalledURL Zuletzt aufgerufene URL
// 	 */
// 	public AnswerObject(String HTML,String redirect,CookieManager myCookies,String lastcalledURL){
// 		this.HTML_text=HTML;
// 		this.redirectURL=redirect;
// 		this.Cookies=myCookies;
// 		this.lastcalledURL=lastcalledURL;
// 	}
// 	public String getHTML(){
// 		return this.HTML_text;
// 	}
// 	public String getRedirectURLString() {
// 		return this.redirectURL;
// 	}
// 	public String getLastCalledURL() {
// 		return this.lastcalledURL;
// 	}
// 	public CookieManager getCookieManager() {
// 		return this.Cookies;
// 	}
// 	
// }
// 
// Path: app/src/main/java/com/dalthed/tucan/util/ConfigurationChangeStorage.java
// public class ConfigurationChangeStorage {
// 
// 	private ArrayList<BasicScraper> scrapers;
// 	private ArrayList<SimpleSecureBrowser> browser;
// 	public ArrayList<ListAdapter> adapters;
// 
// 	public int mode;
// 
// 	public ConfigurationChangeStorage() {
// 		scrapers = new ArrayList<BasicScraper>();
// 		adapters = new ArrayList<ListAdapter>();
// 		browser = new ArrayList<SimpleSecureBrowser>();
// 	}
// 
// 	/**
// 	 * Gibt den Scraper mit angepassten Context zurück
// 	 * 
// 	 * @param index
// 	 * @param context
// 	 * @return
// 	 */
// 	public BasicScraper getScraper(int index, Context context) {
// 		if (scrapers.size() > index) {
// 			BasicScraper returnScraper = scrapers.get(index);
// 			if (returnScraper != null) {
// 
// 				returnScraper.renewContext(context);
// 				return returnScraper;
// 			}
// 		}
// 		return null;
// 
// 	}
// 
// 	public void addScraper(BasicScraper scrape) {
// 		scrapers.add(scrape);
// 	}
// 
// 	public void addBrowser(List<SimpleSecureBrowser> browser) {
// 		if (browser != null) {
// 			this.browser.addAll(browser);
// 		}
// 	}
// 
// 	public void addBrowser(SimpleSecureBrowser browser) {
// 		if (browser != null) {
// 			this.browser.add(browser);
// 		}
// 	}
// 
// 	public void dismissDialogs() {
// 		if(browser!=null){
// 			for(SimpleSecureBrowser singleBrowser: browser) {
// 				if(singleBrowser.dialog!=null) {
// 					singleBrowser.dialog.dismiss();
// 					singleBrowser.dialog = null;
// 				}
// 			}
// 		}
// 	}
// 
// 	public void updateBrowser(BrowserAnswerReciever context) {
// 		for (SimpleSecureBrowser singleBrowser : browser) {
// 			singleBrowser.renewContext(context);
// 			singleBrowser.dialog = null;
// 			if (!(singleBrowser.getStatus().equals(AsyncTask.Status.FINISHED))) {
// 				Log.i(TucanMobile.LOG_TAG,
// 						"Configuration Change at unfinished Browser, show Dialog");
// 
// 				singleBrowser.showDialog();
// 
// 			}
// 		}
// 	}
// 
// }


import android.os.Bundle;
import com.dalthed.tucan.Connection.AnswerObject;
import com.dalthed.tucan.util.ConfigurationChangeStorage;
/**
 *	This file is part of TuCan Mobile.
 *
 *	TuCan Mobile is free software: you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation, either version 3 of the License, or
 *	(at your option) any later version.
 *
 *	TuCan Mobile is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *
 *	You should have received a copy of the GNU General Public License
 *	along with TuCan Mobile.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.dalthed.tucan.ui;



public class ApplyEvent extends SimpleWebListActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		/*
		BugSenseHandler.setup(this, "ed5c1682");
		String CookieHTTPString = getIntent().getExtras().getString("Cookie");
		URLStringtoCall = getIntent().getExtras().getString("URL");
		URL URLtoCall;

		try {
			URLtoCall = new URL(URLStringtoCall);
			localCookieManager = new CookieManager();
			localCookieManager.generateManagerfromHTTPString(
					URLtoCall.getHost(), CookieHTTPString);
			callResultBrowser = new SimpleSecureBrowser(this);
			RequestObject thisRequest = new RequestObject(URLStringtoCall,
					localCookieManager, RequestObject.METHOD_GET, "");

			callResultBrowser.execute(thisRequest);
		} catch (MalformedURLException e) {
			Log.e(LOG_TAG, e.getMessage());
		}*/
	}

// Path: app/src/main/java/com/dalthed/tucan/Connection/AnswerObject.java
// public class AnswerObject {
// 	private String HTML_text;
// 	private String redirectURL;
// 	private String lastcalledURL;
// 	private CookieManager Cookies;
// 	/**
// 	 * RückgabeObjekt der BrowseMethods
// 	 * @param HTML HTML-Code
// 	 * @param redirect Redirect-URL aus dem HTTP-Header
// 	 * @param myCookies CookieManager mit relevanten Cookies
// 	 * @param lastcalledURL Zuletzt aufgerufene URL
// 	 */
// 	public AnswerObject(String HTML,String redirect,CookieManager myCookies,String lastcalledURL){
// 		this.HTML_text=HTML;
// 		this.redirectURL=redirect;
// 		this.Cookies=myCookies;
// 		this.lastcalledURL=lastcalledURL;
// 	}
// 	public String getHTML(){
// 		return this.HTML_text;
// 	}
// 	public String getRedirectURLString() {
// 		return this.redirectURL;
// 	}
// 	public String getLastCalledURL() {
// 		return this.lastcalledURL;
// 	}
// 	public CookieManager getCookieManager() {
// 		return this.Cookies;
// 	}
// 	
// }
// 
// Path: app/src/main/java/com/dalthed/tucan/util/ConfigurationChangeStorage.java
// public class ConfigurationChangeStorage {
// 
// 	private ArrayList<BasicScraper> scrapers;
// 	private ArrayList<SimpleSecureBrowser> browser;
// 	public ArrayList<ListAdapter> adapters;
// 
// 	public int mode;
// 
// 	public ConfigurationChangeStorage() {
// 		scrapers = new ArrayList<BasicScraper>();
// 		adapters = new ArrayList<ListAdapter>();
// 		browser = new ArrayList<SimpleSecureBrowser>();
// 	}
// 
// 	/**
// 	 * Gibt den Scraper mit angepassten Context zurück
// 	 * 
// 	 * @param index
// 	 * @param context
// 	 * @return
// 	 */
// 	public BasicScraper getScraper(int index, Context context) {
// 		if (scrapers.size() > index) {
// 			BasicScraper returnScraper = scrapers.get(index);
// 			if (returnScraper != null) {
// 
// 				returnScraper.renewContext(context);
// 				return returnScraper;
// 			}
// 		}
// 		return null;
// 
// 	}
// 
// 	public void addScraper(BasicScraper scrape) {
// 		scrapers.add(scrape);
// 	}
// 
// 	public void addBrowser(List<SimpleSecureBrowser> browser) {
// 		if (browser != null) {
// 			this.browser.addAll(browser);
// 		}
// 	}
// 
// 	public void addBrowser(SimpleSecureBrowser browser) {
// 		if (browser != null) {
// 			this.browser.add(browser);
// 		}
// 	}
// 
// 	public void dismissDialogs() {
// 		if(browser!=null){
// 			for(SimpleSecureBrowser singleBrowser: browser) {
// 				if(singleBrowser.dialog!=null) {
// 					singleBrowser.dialog.dismiss();
// 					singleBrowser.dialog = null;
// 				}
// 			}
// 		}
// 	}
// 
// 	public void updateBrowser(BrowserAnswerReciever context) {
// 		for (SimpleSecureBrowser singleBrowser : browser) {
// 			singleBrowser.renewContext(context);
// 			singleBrowser.dialog = null;
// 			if (!(singleBrowser.getStatus().equals(AsyncTask.Status.FINISHED))) {
// 				Log.i(TucanMobile.LOG_TAG,
// 						"Configuration Change at unfinished Browser, show Dialog");
// 
// 				singleBrowser.showDialog();
// 
// 			}
// 		}
// 	}
// 
// }


// Path: app/src/main/java/com/dalthed/tucan/ui/ApplyEvent.java
import android.os.Bundle;
import com.dalthed.tucan.Connection.AnswerObject;
import com.dalthed.tucan.util.ConfigurationChangeStorage;

/**
 *	This file is part of TuCan Mobile.
 *
 *	TuCan Mobile is free software: you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation, either version 3 of the License, or
 *	(at your option) any later version.
 *
 *	TuCan Mobile is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *
 *	You should have received a copy of the GNU General Public License
 *	along with TuCan Mobile.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.dalthed.tucan.ui;



public class ApplyEvent extends SimpleWebListActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		/*
		BugSenseHandler.setup(this, "ed5c1682");
		String CookieHTTPString = getIntent().getExtras().getString("Cookie");
		URLStringtoCall = getIntent().getExtras().getString("URL");
		URL URLtoCall;

		try {
			URLtoCall = new URL(URLStringtoCall);
			localCookieManager = new CookieManager();
			localCookieManager.generateManagerfromHTTPString(
					URLtoCall.getHost(), CookieHTTPString);
			callResultBrowser = new SimpleSecureBrowser(this);
			RequestObject thisRequest = new RequestObject(URLStringtoCall,
					localCookieManager, RequestObject.METHOD_GET, "");

			callResultBrowser.execute(thisRequest);
		} catch (MalformedURLException e) {
			Log.e(LOG_TAG, e.getMessage());
		}*/
	}

	public void onPostExecute(AnswerObject result) {