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.init; 019 020import java.io.File; 021 022import org.syncany.config.to.ConfigTO; 023import org.syncany.operations.OperationOptions; 024 025public class ConnectOperationOptions implements OperationOptions { 026 public enum ConnectOptionsStrategy { 027 CONNECTION_LINK, CONNECTION_TO 028 } 029 030 private ConnectOptionsStrategy strategy = ConnectOptionsStrategy.CONNECTION_TO; 031 private ConfigTO configTO; 032 private String connectLink; 033 private File localDir; 034 private String password; 035 private boolean daemon; 036 037 public ConnectOptionsStrategy getStrategy() { 038 return strategy; 039 } 040 041 public void setStrategy(ConnectOptionsStrategy strategy) { 042 this.strategy = strategy; 043 } 044 045 public String getConnectLink() { 046 return connectLink; 047 } 048 049 public void setConnectLink(String connectionLink) { 050 this.connectLink = connectionLink; 051 } 052 053 public File getLocalDir() { 054 return localDir; 055 } 056 057 public void setLocalDir(File localDir) { 058 this.localDir = localDir; 059 } 060 061 public ConfigTO getConfigTO() { 062 return configTO; 063 } 064 065 public void setConfigTO(ConfigTO configTO) { 066 this.configTO = configTO; 067 } 068 069 public String getPassword() { 070 return password; 071 } 072 073 public void setPassword(String password) { 074 this.password = password; 075 } 076 077 public boolean isDaemon() { 078 return daemon; 079 } 080 081 public void setDaemon(boolean daemon) { 082 this.daemon = daemon; 083 } 084}