+ /**
+ * Constructor.
+ *
+ * Uses remotePath to retrieve all the data in local cache and remote server when the operation
+ * is executed, instead of reusing {@link OCFile} instances.
+ *
+ * @param
+ * @param account ownCloud account holding the file.
+ * @param syncFileContents When 'true', transference of data will be started by the
+ * operation if needed and no conflict is detected.
+ * @param context Android context; needed to start transfers.
+ */
+ public SynchronizeFileOperation(
+ String remotePath,
+ Account account,
+ boolean syncFileContents,
+ Context context) {
+
+ mRemotePath = remotePath;
+ mLocalFile = null;
+ mServerFile = null;
+ mAccount = account;
+ mSyncFileContents = syncFileContents;
+ mContext = context;
+ }
+
+
+ /**
+ * Constructor allowing to reuse {@link OCFile} instances just queried from cache or network.
+ *
+ * Useful for folder / account synchronizations.
+ *
+ * @param localFile Data of file currently hold in device cache. MUSTN't be null.
+ * @param serverFile Data of file just retrieved from network. If null, will be
+ * retrieved from network by the operation when executed.
+ * @param account ownCloud account holding the file.
+ * @param syncFileContents When 'true', transference of data will be started by the
+ * operation if needed and no conflict is detected.
+ * @param context Android context; needed to start transfers.
+ */