Search in sources :

Example 6 with SyncOperation

use of com.owncloud.android.operations.common.SyncOperation in project android by owncloud.

the class ReceiveExternalFilesActivity method startSyncFolderOperation.

private void startSyncFolderOperation(OCFile folder) {
    mSyncInProgress = true;
    // perform folder synchronization
    SyncOperation synchFolderOp = new RefreshFolderOperation(folder, false, getAccount(), getApplicationContext());
    synchFolderOp.execute(getStorageManager(), this, null, null);
}
Also used : SyncOperation(com.owncloud.android.operations.common.SyncOperation) RefreshFolderOperation(com.owncloud.android.operations.RefreshFolderOperation)

Aggregations

SyncOperation (com.owncloud.android.operations.common.SyncOperation)6 RemoteOperationResult (com.owncloud.android.lib.common.operations.RemoteOperationResult)4 OCFile (com.owncloud.android.datamodel.OCFile)2 OperationCancelledException (com.owncloud.android.lib.common.operations.OperationCancelledException)2 RemoteOperation (com.owncloud.android.lib.common.operations.RemoteOperation)2 RefreshFolderOperation (com.owncloud.android.operations.RefreshFolderOperation)2 Intent (android.content.Intent)1 CheckPathExistenceRemoteOperation (com.owncloud.android.lib.resources.files.CheckPathExistenceRemoteOperation)1 ExistenceCheckRemoteOperation (com.owncloud.android.lib.resources.files.ExistenceCheckRemoteOperation)1 OCFileListFragment (com.owncloud.android.ui.fragment.OCFileListFragment)1