001/* 002 * Syncany, www.syncany.org 003 * Copyright (C) 2011-2016 Philipp C. Heckel <philipp.heckel@gmail.com> 004 * 005 * This program is free software: you can redistribute it and/or modify 006 * it under the terms of the GNU General Public License as published by 007 * the Free Software Foundation, either version 3 of the License, or 008 * (at your option) any later version. 009 * 010 * This program is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 013 * GNU General Public License for more details. 014 * 015 * You should have received a copy of the GNU General Public License 016 * along with this program. If not, see <http://www.gnu.org/licenses/>. 017 */ 018package org.syncany.operations.daemon; 019 020import java.util.ArrayList; 021 022import org.syncany.config.to.FolderTO; 023import org.syncany.operations.OperationResult; 024 025public class DaemonOperationResult implements OperationResult { 026 public enum DaemonResultCode { 027 OK, OK_PARTIAL, NOK, NOK_PARTIAL 028 } 029 030 private DaemonResultCode resultCode; 031 private ArrayList<FolderTO> watchList; 032 033 public DaemonOperationResult() { 034 // Nothing 035 } 036 037 public DaemonOperationResult(DaemonResultCode resultCode) { 038 this.resultCode = resultCode; 039 } 040 041 public DaemonOperationResult(DaemonResultCode resultCode, ArrayList<FolderTO> watchList) { 042 this.resultCode = resultCode; 043 this.watchList = watchList; 044 } 045 046 public DaemonResultCode getResultCode() { 047 return resultCode; 048 } 049 050 public void setResultCode(DaemonResultCode resultCode) { 051 this.resultCode = resultCode; 052 } 053 054 public ArrayList<FolderTO> getWatchList() { 055 return watchList; 056 } 057 058 public void setWatchList(ArrayList<FolderTO> watchList) { 059 this.watchList = watchList; 060 } 061}