// Path: WhatAndroid/src/main/java/what/whatandroid/callbacks/OnLoggedInCallback.java
// public interface OnLoggedInCallback {
// 	/**
// 	 * Function called when the user has logged in or has been confirmed to be logged in
// 	 */
// 	public void onLoggedIn();
// }
// 
// Path: WhatAndroid/src/main/java/what/whatandroid/callbacks/ViewUserCallbacks.java
// public interface ViewUserCallbacks {
// 	/**
// 	 * Request the activity to launch a profile activity viewing the user with some id
// 	 *
// 	 * @param id user id to view
// 	 */
// 	public void viewUser(int id);
// }


import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.Loader;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.*;
import api.search.user.UserSearch;
import what.whatandroid.R;
import what.whatandroid.callbacks.OnLoggedInCallback;
import what.whatandroid.callbacks.SetTitleCallback;
import what.whatandroid.callbacks.ViewUserCallbacks;
package what.whatandroid.search;


/**
 * Fragment for searching for users. If only one user is returned as a result we go to their profile,
 * otherwise a list of found users is displayed
 */
public class UserSearchFragment extends Fragment implements View.OnClickListener, TextView.OnEditorActionListener,
	OnLoggedInCallback, LoaderManager.LoaderCallbacks<UserSearch>, AbsListView.OnScrollListener {
	/**
	 * So we can set the action bar title and viewing a user
	 */
	private SetTitleCallback setTitle;
// Path: WhatAndroid/src/main/java/what/whatandroid/callbacks/OnLoggedInCallback.java
// public interface OnLoggedInCallback {
// 	/**
// 	 * Function called when the user has logged in or has been confirmed to be logged in
// 	 */
// 	public void onLoggedIn();
// }
// 
// Path: WhatAndroid/src/main/java/what/whatandroid/callbacks/ViewUserCallbacks.java
// public interface ViewUserCallbacks {
// 	/**
// 	 * Request the activity to launch a profile activity viewing the user with some id
// 	 *
// 	 * @param id user id to view
// 	 */
// 	public void viewUser(int id);
// }


// Path: WhatAndroid/src/main/java/what/whatandroid/search/UserSearchFragment.java
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.Loader;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.*;
import api.search.user.UserSearch;
import what.whatandroid.R;
import what.whatandroid.callbacks.OnLoggedInCallback;
import what.whatandroid.callbacks.SetTitleCallback;
import what.whatandroid.callbacks.ViewUserCallbacks;

package what.whatandroid.search;


/**
 * Fragment for searching for users. If only one user is returned as a result we go to their profile,
 * otherwise a list of found users is displayed
 */
public class UserSearchFragment extends Fragment implements View.OnClickListener, TextView.OnEditorActionListener,
	OnLoggedInCallback, LoaderManager.LoaderCallbacks<UserSearch>, AbsListView.OnScrollListener {
	/**
	 * So we can set the action bar title and viewing a user
	 */
	private SetTitleCallback setTitle;
	private ViewUserCallbacks viewUser;