Sub JobDone(Job As HttpJob)
Dim x As Int
If Job.Success = False Then
'log("Error downloading main page.")
Return
End If
Select Job.JobName
Case "Main page"
ParseWxXML(Job)
ParseWxData
Case "ImageJob"
File.Copy2(Job.GetInputStream,File.OpenOutput(File.DirRootExternal, "CC.png",False))
rv.SetImage("CurrentWxView", Job.GetBitmap)
rv.UpdateWidget
Case Else
x = Job.JobName
File.Copy2(Job.GetInputStream,File.OpenOutput (File.DirRootExternal, x & ".png",False))
End Select
Job.Release
End Sub