I am stucked on a point...... My application Description
I am working on a messaging application. Application consists of two parts:
1. Background Running Executable: This application listens to the httpServer and pull the messages from the server time to time.
2. Application Front Part: This application will take the messages from the background running executable and displays it on the front end of the application.
Now My requirement is to display some information in the form when the user opens the inbox.
As I have to listen to the events in the executable continuously forever so that whenever the sms inbox is opened in the mobile appropriate form will be opened.
I can do this in two ways:
1. I will get the tasklist int he executable and I will get the id of the sms window from the tasklist time to time but that will not solve my problem as in between that interval if the SMS Window is opened in closed than I would not be able to capture the event.
2. I will create a class of AppUI from my console based Executable and from that I will get the necessary data, but the problem is that this will break my application architecture and also the symbian programming code conventions.....
Now what I am trying to implement is creating a new class from my executable and in that class I will observe the sms window opening notification that will run for the infinite time.
I want to know which of the approach is more correct and will not break the application code.
Your advice is appreciated........ any kind of suggestions are welcome.
Jason Smith Miller