Beispiel #1
0
 /**
  * Aborts the file transfer
  *
  * @throws RcsPermissionDeniedException
  * @throws RcsGenericException
  */
 public void abortTransfer() throws RcsPermissionDeniedException, RcsGenericException {
   try {
     mTransferInf.abortTransfer();
   } catch (Exception e) {
     RcsPermissionDeniedException.assertException(e);
     throw new RcsGenericException(e);
   }
 }
Beispiel #2
0
 /**
  * Resend a file transfer which was previously failed. This only for 1-1 file transfer, an
  * exception is thrown in case of a file transfer to group.
  *
  * @throws RcsPermissionDeniedException
  * @throws RcsGenericException
  */
 public void resendTransfer() throws RcsPermissionDeniedException, RcsGenericException {
   try {
     mTransferInf.resendTransfer();
   } catch (Exception e) {
     RcsPermissionDeniedException.assertException(e);
     RcsUnsupportedOperationException.assertException(e);
     throw new RcsGenericException(e);
   }
 }
Beispiel #3
0
 /**
  * Resumes the file transfer
  *
  * @throws RcsPermissionDeniedException
  * @throws RcsPersistentStorageException
  * @throws RcsGenericException
  */
 public void resumeTransfer()
     throws RcsPermissionDeniedException, RcsPersistentStorageException, RcsGenericException {
   try {
     mTransferInf.resumeTransfer();
   } catch (Exception e) {
     RcsPermissionDeniedException.assertException(e);
     RcsPersistentStorageException.assertException(e);
     throw new RcsGenericException(e);
   }
 }
Beispiel #4
0
 /**
  * Rejects file transfer invitation
  *
  * @throws RcsPersistentStorageException
  * @throws RcsPermissionDeniedException
  * @throws RcsGenericException
  */
 public void rejectInvitation()
     throws RcsPersistentStorageException, RcsPermissionDeniedException, RcsGenericException {
   try {
     mTransferInf.rejectInvitation();
   } catch (Exception e) {
     RcsUnsupportedOperationException.assertException(e);
     RcsPersistentStorageException.assertException(e);
     RcsPermissionDeniedException.assertException(e);
     throw new RcsGenericException(e);
   }
 }