// Path: app/src/main/java/com/music/ting/model/FileInfo.java
// public class FileInfo implements Serializable {
//     
//     private int id;
//     private String url;
//     private String fileName;
//     private int length;
//     private int finished;
// 
//     public FileInfo() {
//     }
// 
//     public FileInfo(int id, String url, String fileName, int length, int finished) {
//         this.id = id;
//         this.url = url;
//         this.fileName = fileName;
//         this.length = length;
//         this.finished = finished;
//     }
// 
//     @Override
//     public String toString() {
//         return "FileInfo{" +
//                 "id=" + id +
//                 ", url='" + url + '\'' +
//                 ", fileName='" + fileName + '\'' +
//                 ", length=" + length +
//                 ", finished=" + finished +
//                 '}';
//     }
// 
//     public int getId() {
//         return id;
//     }
// 
//     public void setId(int id) {
//         this.id = id;
//     }
// 
//     public String getUrl() {
//         return url;
//     }
// 
//     public void setUrl(String url) {
//         this.url = url;
//     }
// 
//     public String getfileName() {
//         return fileName;
//     }
// 
//     public void setfileName(String fileName) {
//         this.fileName = fileName;
//     }
// 
//     public int getLength() {
//         return length;
//     }
// 
//     public void setLength(int length) {
//         this.length = length;
//     }
// 
//     public int getFinished() {
//         return finished;
//     }
// 
//     public void setFinished(int finished) {
//         this.finished = finished;
//     }
// }


import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.daimajia.numberprogressbar.NumberProgressBar;
import com.music.ting.R;
import com.music.ting.model.FileInfo;
import com.music.ting.service.DownloadService;

package com.music.ting.ui.fragment;



/**
 * Created by Jun on 2015/6/6.
 */
public class DownLoadFragment extends Fragment {

    private View view;

    private ImageView downLoadControl, cancelDownLoad;
    private NumberProgressBar progressBar;
    private TextView songTitle;
    public static boolean isDownLoad = false;
    private boolean isPause = true;

// Path: app/src/main/java/com/music/ting/model/FileInfo.java
// public class FileInfo implements Serializable {
//     
//     private int id;
//     private String url;
//     private String fileName;
//     private int length;
//     private int finished;
// 
//     public FileInfo() {
//     }
// 
//     public FileInfo(int id, String url, String fileName, int length, int finished) {
//         this.id = id;
//         this.url = url;
//         this.fileName = fileName;
//         this.length = length;
//         this.finished = finished;
//     }
// 
//     @Override
//     public String toString() {
//         return "FileInfo{" +
//                 "id=" + id +
//                 ", url='" + url + '\'' +
//                 ", fileName='" + fileName + '\'' +
//                 ", length=" + length +
//                 ", finished=" + finished +
//                 '}';
//     }
// 
//     public int getId() {
//         return id;
//     }
// 
//     public void setId(int id) {
//         this.id = id;
//     }
// 
//     public String getUrl() {
//         return url;
//     }
// 
//     public void setUrl(String url) {
//         this.url = url;
//     }
// 
//     public String getfileName() {
//         return fileName;
//     }
// 
//     public void setfileName(String fileName) {
//         this.fileName = fileName;
//     }
// 
//     public int getLength() {
//         return length;
//     }
// 
//     public void setLength(int length) {
//         this.length = length;
//     }
// 
//     public int getFinished() {
//         return finished;
//     }
// 
//     public void setFinished(int finished) {
//         this.finished = finished;
//     }
// }


// Path: app/src/main/java/com/music/ting/ui/fragment/DownLoadFragment.java
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.daimajia.numberprogressbar.NumberProgressBar;
import com.music.ting.R;
import com.music.ting.model.FileInfo;
import com.music.ting.service.DownloadService;

package com.music.ting.ui.fragment;



/**
 * Created by Jun on 2015/6/6.
 */
public class DownLoadFragment extends Fragment {

    private View view;

    private ImageView downLoadControl, cancelDownLoad;
    private NumberProgressBar progressBar;
    private TextView songTitle;
    public static boolean isDownLoad = false;
    private boolean isPause = true;

    private FileInfo mFileInfo;
