// Path: src/it/sasabz/android/sasabus/SASAbus.java
// public class SASAbus extends Application {
//     private int dbDownloadAttempts;
//     
//     private static Context context = null;
//  
//     @Override
//     public void onCreate() 
//     {
//         // Init values which could be loaded from files stored in res/raw
//         setDbDownloadAttempts(0);
//         super.onCreate();
//         context = this.getApplicationContext();
//     }
// 
//     @Override
//     public void onTerminate()
//     {
//     	//do nothing
//     	MySQLiteDBAdapter.closeAll();
//     }
//     
//     /**
//      * @return the Strings and Variables stored in the Context;
//      */
//     public static Context getContext()
//     {
//     	return context;
//     }
//     
// 	/**
// 	 * @param dbDownloadAttempts the dbDownloadAttempts to set
// 	 */
// 	public void setDbDownloadAttempts(int dbDownloadAttempts) {
// 		this.dbDownloadAttempts = dbDownloadAttempts;
// 	}
// 
// 	/**
// 	 * @return the dbDownloadAttempts
// 	 */
// 	public int getDbDownloadAttempts() {
// 		return dbDownloadAttempts;
// 	}
//  
// 
// }
// 
// Path: src/it/sasabz/android/sasabus/classes/dbobjects/DBObject.java
// public class DBObject {
// 	
// 	/*
// 	 * The id is the integer which identifies the object in the database
// 	 */
// 	private int id = 0;
// 
// 	/**
// 	 * This constructor creates an dbobject
// 	 */
// 	public DBObject()
// 	{
// 		super();
// 		//Nothing to do
// 	}
// 	
// 	/**
// 	 * this creates a dbobject with an identifier, which is the id
// 	 * provided in the database 
// 	 * @param identifier is the identifier from the database
// 	 */
// 	public DBObject(int identifier)
// 	{
// 		super();
// 		setId(identifier);
// 	}
// 	
// 	/**
// 	 * 
// 	 * @return the integer which identifies the object in the database
// 	 */
// 	public int getId() {
// 		return id;
// 	}
// 
// 	/**
// 	 * 
// 	 * @param id is the integer which identifies the object in the database
// 	 */
// 	public void setId(int id) {
// 		this.id = id;
// 	}
// 	
// 	
// 	
// }


import android.text.Html;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import it.sasabz.android.sasabus.SASAbus;
import it.sasabz.android.sasabus.classes.dbobjects.DBObject;
import java.util.Vector;
import android.R;
import android.content.Context;
/**
 *
 * MyListAdapter.java
 * 
 * 
 * Copyright (C) 2012 Markus Windegger
 *
 * This file is part of SasaBus.

 * SasaBus 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.
 *
 * SasaBus 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 SasaBus.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
package it.sasabz.android.sasabus.classes.adapter;




/**
 * @author Markus Windegger (markus@mowiso.com)
 *
 */
public class MyListAdapter extends BaseAdapter {
	private final Context context;
// Path: src/it/sasabz/android/sasabus/SASAbus.java
// public class SASAbus extends Application {
//     private int dbDownloadAttempts;
//     
//     private static Context context = null;
//  
//     @Override
//     public void onCreate() 
//     {
//         // Init values which could be loaded from files stored in res/raw
//         setDbDownloadAttempts(0);
//         super.onCreate();
//         context = this.getApplicationContext();
//     }
// 
//     @Override
//     public void onTerminate()
//     {
//     	//do nothing
//     	MySQLiteDBAdapter.closeAll();
//     }
//     
//     /**
//      * @return the Strings and Variables stored in the Context;
//      */
//     public static Context getContext()
//     {
//     	return context;
//     }
//     
// 	/**
// 	 * @param dbDownloadAttempts the dbDownloadAttempts to set
// 	 */
// 	public void setDbDownloadAttempts(int dbDownloadAttempts) {
// 		this.dbDownloadAttempts = dbDownloadAttempts;
// 	}
// 
// 	/**
// 	 * @return the dbDownloadAttempts
// 	 */
// 	public int getDbDownloadAttempts() {
// 		return dbDownloadAttempts;
// 	}
//  
// 
// }
// 
// Path: src/it/sasabz/android/sasabus/classes/dbobjects/DBObject.java
// public class DBObject {
// 	
// 	/*
// 	 * The id is the integer which identifies the object in the database
// 	 */
// 	private int id = 0;
// 
// 	/**
// 	 * This constructor creates an dbobject
// 	 */
// 	public DBObject()
// 	{
// 		super();
// 		//Nothing to do
// 	}
// 	
// 	/**
// 	 * this creates a dbobject with an identifier, which is the id
// 	 * provided in the database 
// 	 * @param identifier is the identifier from the database
// 	 */
// 	public DBObject(int identifier)
// 	{
// 		super();
// 		setId(identifier);
// 	}
// 	
// 	/**
// 	 * 
// 	 * @return the integer which identifies the object in the database
// 	 */
// 	public int getId() {
// 		return id;
// 	}
// 
// 	/**
// 	 * 
// 	 * @param id is the integer which identifies the object in the database
// 	 */
// 	public void setId(int id) {
// 		this.id = id;
// 	}
// 	
// 	
// 	
// }


// Path: src/it/sasabz/android/sasabus/classes/adapter/MyListAdapter.java
import android.text.Html;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import it.sasabz.android.sasabus.SASAbus;
import it.sasabz.android.sasabus.classes.dbobjects.DBObject;
import java.util.Vector;
import android.R;
import android.content.Context;

/**
 *
 * MyListAdapter.java
 * 
 * 
 * Copyright (C) 2012 Markus Windegger
 *
 * This file is part of SasaBus.

 * SasaBus 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.
 *
 * SasaBus 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 SasaBus.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
package it.sasabz.android.sasabus.classes.adapter;




/**
 * @author Markus Windegger (markus@mowiso.com)
 *
 */
public class MyListAdapter extends BaseAdapter {
	private final Context context;
	private final Vector<DBObject> list;