es.ugr.swad.swadroid.modules.downloads
Class NotifyDownload
java.lang.Object
Activity
es.ugr.swad.swadroid.gui.MenuActivity
es.ugr.swad.swadroid.modules.Module
es.ugr.swad.swadroid.modules.downloads.NotifyDownload
-
public class NotifyDownload
- extends Module
NotifyDownload notifies to SWAD when a download of a file takes place
Params:
- wskey: code to identify the current session
- fileCode: code to identify the downloaded file
Returns: Nothing
- Author:
- Helena Rodriguez Gijon
Method Summary |
protected void |
connect()
Launches action in a separate thread while shows
a progress dialog
in UI thread.
|
protected void |
onCreate(Bundle savedInstanceState)
|
protected void |
onError()
Error handler
|
protected void |
onStart()
|
protected void |
postConnect()
Launches action after executing connect() method
|
protected void |
requestService()
Connects to SWAD and gets user data.
|
Methods inherited from class es.ugr.swad.swadroid.modules.Module |
addParam,
createRequest, error,
getMETHOD_NAME, getNAMESPACE,
getPrefs, getRequest, getResult, getSOAP_ACTION,
getURL, onActivityResult,
onDestroy, onPause, onRestart, onResume, onStop, runConnection,
sendRequest,
setMETHOD_NAME,
setNAMESPACE,
setPrefs,
setRequest,
setResult,
setSOAP_ACTION,
setURL
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fileCode
private int fileCode
NotifyDownload
public NotifyDownload()
requestService
protected void requestService()
throws java.security.NoSuchAlgorithmException,
java.io.IOException,
org.xmlpull.v1.XmlPullParserException,
org.ksoap2.SoapFault,
java.lang.IllegalAccessException,
java.lang.InstantiationException
- Description copied from class:
Module
- Connects to SWAD and gets user data.
-
- Specified by:
requestService
in class Module
-
- Throws:
java.security.NoSuchAlgorithmException
java.io.IOException
org.ksoap2.SoapFault
org.xmlpull.v1.XmlPullParserException
java.lang.IllegalAccessException
java.lang.InstantiationException
connect
protected void connect()
- Description copied from class:
Module
- Launches action in a separate thread while shows a progress dialog
in UI thread.
-
- Specified by:
connect
in class Module
-
postConnect
protected void postConnect()
- Description copied from class:
Module
- Launches action after executing connect() method
-
- Specified by:
postConnect
in class Module
-
onError
protected void onError()
- Description copied from class:
Module
- Error handler
-
- Specified by:
onError
in class Module
-
onCreate
protected void onCreate(Bundle savedInstanceState)
-
- Overrides:
onCreate
in class Module
-
onStart
protected void onStart()
-
- Overrides:
onStart
in class Module
-