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


import it.sasabz.android.sasabus.SASAbus;
import java.util.Vector;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;

/**
 *
 * FavoritenList.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;




public class FavoritenList {
	
	/**                                                                                                                                                                                                          
	 * This function returns a vector of all the objects momentanly avaiable in the database                                                                                                                     
	 * @return a vector of objects if all goes right, alternativ it returns a MyError                                                                                                                              
	 */
	public static  Vector <Favorit>getList()
	{

// 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/FavoritenList.java
import it.sasabz.android.sasabus.SASAbus;
import java.util.Vector;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;

/**
 *
 * FavoritenList.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;




public class FavoritenList {
	
	/**                                                                                                                                                                                                          
	 * This function returns a vector of all the objects momentanly avaiable in the database                                                                                                                     
	 * @return a vector of objects if all goes right, alternativ it returns a MyError                                                                                                                              
	 */
	public static  Vector <Favorit>getList()
	{

		SQLiteDatabase sqlite = new FavoritenDB(SASAbus.getContext()).getReadableDatabase();
