Hello,
I want to implement a login feature into my app.
I'm able to connect to a server and issue a GET request.
But my problem is that I'm not sure how to design the login code arhitecture right. the http connection callback other methods and for example I have:
CMyClass::Login()
{
iHttpClient->IssueGet(myURI);
}
this will trigger a callback function that receive a xml buffer from the server.
CMyClass::ReceiveBuffer(HBuf8* buffer)
{
}
but I need something like:
- display the login dialog box. when the user press the login button to:
- get a xml file from a server
- parse this to see if the login is ok
(I'm able to do the above but the results are in different asyncronous callback functions)
- if the login is ok distroy the login dialog box
- else display it again.
Because those actions are asyncronous the results are in multiple callback functions
I've studies the
Symbian_OS_End-To-End_HTTP_API_Example_v1_1.zip
Symbian_OS_Active_Objects_And_The_Active_Scheduler_With_Example_v1_0b_en.zip
examples.
I really need a well written login example.
thanks.

Reply With Quote

