// Path: src/org/openjira/jira/JiraConn.java
// public class LocalBinder extends Binder {
// 	public JiraConn getInstance() {
// 		return JiraConn.this;
// 	}
// }
// 
// Path: src/org/openjira/jira/JiraConn.java
// public interface LoginListener {
// 	public void onLoginComplete();
// 
// 	public void onLoginError(Exception e);
// 
// 	public void onSyncProgress(String message, int progress, int max);
// }
// 
// Path: src/org/openjira/jira/model/JiraFilter.java
// public class JiraFilter {
//     private String name;
//     private String id;
// 
//     public JiraFilter() {
//     }
// 
//     public JiraFilter(String id, String name) {
//         this.name = name;
//         this.id = id;
//     }
// 
//     public static JiraFilter fromMap(Map<String, Object> map) {
//         JiraFilter filter = new JiraFilter();
//         filter.setName((String) map.get("name"));
//         filter.setId((String) map.get("id"));
//         return filter;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
// }
// 
// Path: src/org/openjira/jira/model/JiraServer.java
// public class JiraServer {
// 
//     private int _id;
//     private String name;
//     private String url;
//     private String user;
//     private String password;
// 
//     public JiraServer(int _id, String name, String url, String user, String password) {
//         super();
//         this._id = _id;
//         this.name = name;
//         this.url = url;
//         this.user = user;
//         this.password = password;
//     }
// 
//     public JiraServer(String name, String url, String user, String password) {
//         super();
//         this.name = name;
//         this.url = url;
//         this.user = user;
//         this.password = password;
//     }
// 
//     public int get_id() {
//         return _id;
//     }
// 
//     public void set_id(Integer id) {
//         _id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public String getUrl() {
//         return url;
//     }
// 
//     public void setUrl(String url) {
//         this.url = url;
//     }
// 
//     public String getUser() {
//         return user;
//     }
// 
//     public void setUser(String user) {
//         this.user = user;
//     }
// 
//     public String getPassword() {
//         return password;
//     }
// 
//     public void setPassword(String password) {
//         this.password = password;
//     }
// 
// }


import java.util.ArrayList;
import org.openjira.jira.JiraConn.LocalBinder;
import org.openjira.jira.JiraConn.LoginListener;
import org.openjira.jira.model.JiraFilter;
import org.openjira.jira.model.JiraServer;
import android.app.ProgressDialog;
import android.app.Service;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.net.Uri;
import android.os.Bundle;
import android.os.IBinder;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.Toast;
/*******************************************************************************
 * Copyright 2012 Alexandre d'Alton
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package org.openjira.jira;




public class JiraFilters extends OJActivity implements OnItemClickListener, LoginListener {

	JiraConn conn;

	private final ServiceConnection connection = new ServiceConnection() {

		@Override
		public void onServiceDisconnected(final ComponentName name) {
			// TODO Auto-generated method stub

		}

		@Override
		public void onServiceConnected(final ComponentName name, final IBinder service) {
// Path: src/org/openjira/jira/JiraConn.java
// public class LocalBinder extends Binder {
// 	public JiraConn getInstance() {
// 		return JiraConn.this;
// 	}
// }
// 
// Path: src/org/openjira/jira/JiraConn.java
// public interface LoginListener {
// 	public void onLoginComplete();
// 
// 	public void onLoginError(Exception e);
// 
// 	public void onSyncProgress(String message, int progress, int max);
// }
// 
// Path: src/org/openjira/jira/model/JiraFilter.java
// public class JiraFilter {
//     private String name;
//     private String id;
// 
//     public JiraFilter() {
//     }
// 
//     public JiraFilter(String id, String name) {
//         this.name = name;
//         this.id = id;
//     }
// 
//     public static JiraFilter fromMap(Map<String, Object> map) {
//         JiraFilter filter = new JiraFilter();
//         filter.setName((String) map.get("name"));
//         filter.setId((String) map.get("id"));
//         return filter;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
// }
// 
// Path: src/org/openjira/jira/model/JiraServer.java
// public class JiraServer {
// 
//     private int _id;
//     private String name;
//     private String url;
//     private String user;
//     private String password;
// 
//     public JiraServer(int _id, String name, String url, String user, String password) {
//         super();
//         this._id = _id;
//         this.name = name;
//         this.url = url;
//         this.user = user;
//         this.password = password;
//     }
// 
//     public JiraServer(String name, String url, String user, String password) {
//         super();
//         this.name = name;
//         this.url = url;
//         this.user = user;
//         this.password = password;
//     }
// 
//     public int get_id() {
//         return _id;
//     }
// 
//     public void set_id(Integer id) {
//         _id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public String getUrl() {
//         return url;
//     }
// 
//     public void setUrl(String url) {
//         this.url = url;
//     }
// 
//     public String getUser() {
//         return user;
//     }
// 
//     public void setUser(String user) {
//         this.user = user;
//     }
// 
//     public String getPassword() {
//         return password;
//     }
// 
//     public void setPassword(String password) {
//         this.password = password;
//     }
// 
// }


// Path: src/org/openjira/jira/JiraFilters.java
import java.util.ArrayList;
import org.openjira.jira.JiraConn.LocalBinder;
import org.openjira.jira.JiraConn.LoginListener;
import org.openjira.jira.model.JiraFilter;
import org.openjira.jira.model.JiraServer;
import android.app.ProgressDialog;
import android.app.Service;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.net.Uri;
import android.os.Bundle;
import android.os.IBinder;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.Toast;

/*******************************************************************************
 * Copyright 2012 Alexandre d'Alton
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package org.openjira.jira;




public class JiraFilters extends OJActivity implements OnItemClickListener, LoginListener {

	JiraConn conn;

	private final ServiceConnection connection = new ServiceConnection() {

		@Override
		public void onServiceDisconnected(final ComponentName name) {
			// TODO Auto-generated method stub

		}

		@Override
		public void onServiceConnected(final ComponentName name, final IBinder service) {
			final JiraConn jiraConn = ((LocalBinder) service).getInstance();