Often it will take a lot of time to do a http Get or other network related operation.You have to display message to indicate what is going on.Here is a simpler way instead of progress bar(CEikProgressInfo).
.Use iEikonEnv->BusyMsgL(aMsgResourceId) to display message while an operation starts;
.Use iEikonEnv-> BusyMsgCancel() to cancel the message while the operation ends.
.Use iEikonEnv->BusyMsgL(aMsgResourceId) to display message while an operation starts;
.Use iEikonEnv-> BusyMsgCancel() to cancel the message while the operation ends.