// Path: src/main/java/com/inovex/zabbixmobile/adapters/BaseSeverityPagerAdapter.java
// public abstract class BaseSeverityPagerAdapter<T> extends
// 		BaseServicePagerAdapter<T> {
// 
// 	private static final String TAG = BaseSeverityPagerAdapter.class
// 			.getSimpleName();
// 
// 	/**
// 	 * Creates an adapter.
// 	 * 
// 	 * @param severity
// 	 *            severity of this adapter
// 	 */
// 	public BaseSeverityPagerAdapter(TriggerSeverity severity) {
// 		this(null, severity);
// 	}
// 
// 	/**
// 	 * Creates an adapter
// 	 * 
// 	 * @param fm
// 	 *            the fragment manager to be used by this view pager.
// 	 * @param severity
// 	 *            severity of this adapter
// 	 */
// 	public BaseSeverityPagerAdapter(FragmentManager fm, TriggerSeverity severity) {
// 		super();
// 		mFragmentManager = fm;
// 		Log.d(TAG, "creating SeverityPagerAdapter for severity " + severity);
// 
// 	}
// 
// 	@Override
// 	public CharSequence getPageTitle(int position) {
// 		return (position + 1) + " of " + getCount();
// 	}
// 
// 	@Override
// 	public int getItemPosition(Object object) {
// 		// This prevents caching of fragments. We need to disable caching
// 		// because we have only one adapter which is reused when another host is
// 		// selected.
// 		return POSITION_NONE;
// 	}
// 
// }
// 
// Path: src/main/java/com/inovex/zabbixmobile/model/Sharable.java
// public interface Sharable {
// 
// 	/**
// 	 * Return the string to be used for sharing an object's contents with other
// 	 * applications.
// 	 * 
// 	 * @param context
// 	 *            the app's context; used to resolve constant string resources
// 	 * @return string to be shared
// 	 */
// 	public String getSharableString(Context context);
// }


import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import android.support.v4.view.MenuItemCompat;
import android.support.v4.view.ViewPager;
import android.support.v7.widget.ShareActionProvider;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import com.inovex.zabbixmobile.R;
import com.inovex.zabbixmobile.adapters.BaseSeverityPagerAdapter;
import com.inovex.zabbixmobile.listeners.OnListItemSelectedListener;
import com.inovex.zabbixmobile.model.Sharable;
import com.inovex.zabbixmobile.model.TriggerSeverity;
/*
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 details fragment of a data type to be filtered by severity.
 * 
 * @param <T>
 *            the data type
 */
public abstract class BaseSeverityFilterDetailsFragment<T extends Sharable>
		extends BaseServiceConnectedFragment {

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

	private static final String ARG_SEVERITY = "arg_severity";
	private static final String ARG_SPINNER_VISIBLE = "arg_spinner_visible";

	protected ViewPager mDetailsPager;
	protected TriggerSeverity mSeverity = TriggerSeverity.ALL;
	private OnListItemSelectedListener mCallbackMain;
// Path: src/main/java/com/inovex/zabbixmobile/adapters/BaseSeverityPagerAdapter.java
// public abstract class BaseSeverityPagerAdapter<T> extends
// 		BaseServicePagerAdapter<T> {
// 
// 	private static final String TAG = BaseSeverityPagerAdapter.class
// 			.getSimpleName();
// 
// 	/**
// 	 * Creates an adapter.
// 	 * 
// 	 * @param severity
// 	 *            severity of this adapter
// 	 */
// 	public BaseSeverityPagerAdapter(TriggerSeverity severity) {
// 		this(null, severity);
// 	}
// 
// 	/**
// 	 * Creates an adapter
// 	 * 
// 	 * @param fm
// 	 *            the fragment manager to be used by this view pager.
// 	 * @param severity
// 	 *            severity of this adapter
// 	 */
// 	public BaseSeverityPagerAdapter(FragmentManager fm, TriggerSeverity severity) {
// 		super();
// 		mFragmentManager = fm;
// 		Log.d(TAG, "creating SeverityPagerAdapter for severity " + severity);
// 
// 	}
// 
// 	@Override
// 	public CharSequence getPageTitle(int position) {
// 		return (position + 1) + " of " + getCount();
// 	}
// 
// 	@Override
// 	public int getItemPosition(Object object) {
// 		// This prevents caching of fragments. We need to disable caching
// 		// because we have only one adapter which is reused when another host is
// 		// selected.
// 		return POSITION_NONE;
// 	}
// 
// }
// 
// Path: src/main/java/com/inovex/zabbixmobile/model/Sharable.java
// public interface Sharable {
// 
// 	/**
// 	 * Return the string to be used for sharing an object's contents with other
// 	 * applications.
// 	 * 
// 	 * @param context
// 	 *            the app's context; used to resolve constant string resources
// 	 * @return string to be shared
// 	 */
// 	public String getSharableString(Context context);
// }


// Path: src/main/java/com/inovex/zabbixmobile/activities/fragments/BaseSeverityFilterDetailsFragment.java
import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import android.support.v4.view.MenuItemCompat;
import android.support.v4.view.ViewPager;
import android.support.v7.widget.ShareActionProvider;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import com.inovex.zabbixmobile.R;
import com.inovex.zabbixmobile.adapters.BaseSeverityPagerAdapter;
import com.inovex.zabbixmobile.listeners.OnListItemSelectedListener;
import com.inovex.zabbixmobile.model.Sharable;
import com.inovex.zabbixmobile.model.TriggerSeverity;

/*
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 details fragment of a data type to be filtered by severity.
 * 
 * @param <T>
 *            the data type
 */
public abstract class BaseSeverityFilterDetailsFragment<T extends Sharable>
		extends BaseServiceConnectedFragment {

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

	private static final String ARG_SEVERITY = "arg_severity";
	private static final String ARG_SPINNER_VISIBLE = "arg_spinner_visible";

	protected ViewPager mDetailsPager;
	protected TriggerSeverity mSeverity = TriggerSeverity.ALL;
	private OnListItemSelectedListener mCallbackMain;
	protected BaseSeverityPagerAdapter<T> mDetailsPagerAdapter;