// Path: src/main/java/com/inovex/zabbixmobile/listeners/OnSeveritySelectedListener.java
// public interface OnSeveritySelectedListener {
// 
// 	/**
// 	 * Called when a particular severity has been selected.
// 	 * 
// 	 * @param severity
// 	 *            the selected severity
// 	 */
// 	public void onSeveritySelected(TriggerSeverity severity);
// }


import com.inovex.zabbixmobile.adapters.BaseSeverityListPagerAdapter;
import com.inovex.zabbixmobile.listeners.OnSeveritySelectedListener;
import com.inovex.zabbixmobile.model.TriggerSeverity;
import android.app.Activity;
import android.content.ComponentName;
import android.os.Bundle;
import android.os.IBinder;
import android.support.v4.view.ViewPager;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import com.inovex.zabbixmobile.R;
/*
This file is part of ZAX.

	ZAX 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.

	ZAX 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 ZAX.  If not, see <http://www.gnu.org/licenses/>.
*/

package com.inovex.zabbixmobile.activities.fragments;



/**
 * Base class for a list fragment of a data type to be filtered by severity.
 * 
 * @param <T>
 *            the data type
 */
public abstract class BaseSeverityFilterListFragment<T> extends
		BaseServiceConnectedFragment {

	public static final String TAG = BaseSeverityFilterListFragment.class
			.getSimpleName();

	private static final String ARG_SPINNER_VISIBLE = "arg_spinner_visible";

	ViewPager mSeverityListPager;
	BaseSeverityListPagerAdapter<T> mSeverityListPagerAdapter;

// Path: src/main/java/com/inovex/zabbixmobile/listeners/OnSeveritySelectedListener.java
// public interface OnSeveritySelectedListener {
// 
// 	/**
// 	 * Called when a particular severity has been selected.
// 	 * 
// 	 * @param severity
// 	 *            the selected severity
// 	 */
// 	public void onSeveritySelected(TriggerSeverity severity);
// }


// Path: src/main/java/com/inovex/zabbixmobile/activities/fragments/BaseSeverityFilterListFragment.java
import com.inovex.zabbixmobile.adapters.BaseSeverityListPagerAdapter;
import com.inovex.zabbixmobile.listeners.OnSeveritySelectedListener;
import com.inovex.zabbixmobile.model.TriggerSeverity;
import android.app.Activity;
import android.content.ComponentName;
import android.os.Bundle;
import android.os.IBinder;
import android.support.v4.view.ViewPager;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import com.inovex.zabbixmobile.R;

/*
This file is part of ZAX.

	ZAX 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.

	ZAX 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 ZAX.  If not, see <http://www.gnu.org/licenses/>.
*/

package com.inovex.zabbixmobile.activities.fragments;



/**
 * Base class for a list fragment of a data type to be filtered by severity.
 * 
 * @param <T>
 *            the data type
 */
public abstract class BaseSeverityFilterListFragment<T> extends
		BaseServiceConnectedFragment {

	public static final String TAG = BaseSeverityFilterListFragment.class
			.getSimpleName();

	private static final String ARG_SPINNER_VISIBLE = "arg_spinner_visible";

	ViewPager mSeverityListPager;
	BaseSeverityListPagerAdapter<T> mSeverityListPagerAdapter;

	private OnSeveritySelectedListener mCallbackMain;