// Path: BoincRpc/src/main/java/edu/berkeley/boinc/Transfer.java
// public class Transfer {
//     public String name;
//     public String project_url;
//     public boolean is_upload;
//     public long nbytes;
//     public boolean xfer_active;
//     public int status;
//     public long next_request_time;
//     public long time_so_far;
//     public long bytes_xferred;
//     public float xfer_speed;
//     public long project_backoff;
// }


import edu.berkeley.boinc.Transfer;
import sk.boinc.androboinc.R;
import sk.boinc.androboinc.clientconnection.TransferInfo;
import android.content.res.Resources;
/* 
 * AndroBOINC - BOINC Manager for Android
 * Copyright (C) 2010, Pavol Michalec
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program 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 Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */

package sk.boinc.androboinc.bridge;



public class TransferInfoCreator {
	public static final int ERR_GIVEUP_DOWNLOAD = -114;
	public static final int ERR_GIVEUP_UPLOAD = -115;

// Path: BoincRpc/src/main/java/edu/berkeley/boinc/Transfer.java
// public class Transfer {
//     public String name;
//     public String project_url;
//     public boolean is_upload;
//     public long nbytes;
//     public boolean xfer_active;
//     public int status;
//     public long next_request_time;
//     public long time_so_far;
//     public long bytes_xferred;
//     public float xfer_speed;
//     public long project_backoff;
// }


// Path: AndroBOINC/src/main/java/sk/boinc/androboinc/bridge/TransferInfoCreator.java
import edu.berkeley.boinc.Transfer;
import sk.boinc.androboinc.R;
import sk.boinc.androboinc.clientconnection.TransferInfo;
import android.content.res.Resources;

/* 
 * AndroBOINC - BOINC Manager for Android
 * Copyright (C) 2010, Pavol Michalec
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program 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 Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */

package sk.boinc.androboinc.bridge;



public class TransferInfoCreator {
	public static final int ERR_GIVEUP_DOWNLOAD = -114;
	public static final int ERR_GIVEUP_UPLOAD = -115;

	public static TransferInfo create(final Transfer transfer, final String projectName, final Formatter formatter) {