adding external classes to application | developer.brewmp.com adding external classes to application | developer.brewmp.com

Developer

adding external classes to application

Forums:

hi all

i have sevral question about external class.
what is external classes? What is structure of these classes?
How i can add these classes to main applicaton?
whether i have to write some extra line of code to main application to keep track of these classes.
ie suppose there are two external classes; class A is for handling incoming call; and class B is for handling incoming messages how can i add these classes to main app

shall i use dependencies tab in mif editor? what is the procdure?

thanks
ketan

Hope I am not understanding uor question wrong.
But if it simply means having more then one class in uor program say a and b then u dont need to do many things just use #include .h files to the .h file of class which inherits or simply required forward declaration of that class .
regards.

Hope I am not understanding uor question wrong.
But if it simply means having more then one class in uor program say a and b then u dont need to do many things just use #include .h files to the .h file of class which inherits or simply required forward declaration of that class .
regards.

Ashutosh_Sharma wrote:Hope I am not understanding uor question wrong.
But if it simply means having more then one class in uor program say a and b then u dont need to do many things just use #include .h files to the .h file of class which inherits or simply required forward declaration of that class .
regards.
thakns Ashutosh
see that two classes which i have mentioned above are two different applet can i add these applet(A & B) with main applet?
hope u understanding problem.....
ketan

Ashutosh_Sharma wrote:Hope I am not understanding uor question wrong.
But if it simply means having more then one class in uor program say a and b then u dont need to do many things just use #include .h files to the .h file of class which inherits or simply required forward declaration of that class .
regards.
thakns Ashutosh
see that two classes which i have mentioned above are two different applet can i add these applet(A & B) with main applet?
hope u understanding problem.....
ketan

I feel u need to put one applet to background and one in frontground at one particular time
In BREW 3.x you have ISHELL_StartBackground applet, alternativley you can use dwParam toggling in EVT_STOP to go to background.
regards

I feel u need to put one applet to background and one in frontground at one particular time
In BREW 3.x you have ISHELL_StartBackground applet, alternativley you can use dwParam toggling in EVT_STOP to go to background.
regards

Ashutosh_Sharma wrote:I feel u need to put one applet to background and one in frontground at one particular time
In BREW 3.x you have ISHELL_StartBackground applet, alternativley you can use dwParam toggling in EVT_STOP to go to background.
regards
thanks a lot Ashutosh
Actually all these applet (A,B & main applet are in background) i want to invoke these applet when incoming call ir message arrives; from main applet.
if i m wrong then correct...
ketan

Ashutosh_Sharma wrote:I feel u need to put one applet to background and one in frontground at one particular time
In BREW 3.x you have ISHELL_StartBackground applet, alternativley you can use dwParam toggling in EVT_STOP to go to background.
regards
thanks a lot Ashutosh
Actually all these applet (A,B & main applet are in background) i want to invoke these applet when incoming call ir message arrives; from main applet.
if i m wrong then correct...
ketan

if uor question is how to know tht u r reciving call then register uor application for reciving alert .something like this
ISHELL_RegisterNotify(pMe->a.m_pIShell, AEECLSID_MYCLASS, AEECLSID_PHONENOTIFIER , AEET_NMASK_NEW_CALLDESC);
and when ever u will recieve call in EVT_NOTIFY u will recieve alert
put this if condition to check whether notification is for call
if (pNotify->dwMask & AEET_NMASK_NEW_CALLDESC){}
now once inside this if condition do wtever u want to do ..if u want to initiate new
applet u can do tht.
hope this help
regards,

if uor question is how to know tht u r reciving call then register uor application for reciving alert .something like this
ISHELL_RegisterNotify(pMe->a.m_pIShell, AEECLSID_MYCLASS, AEECLSID_PHONENOTIFIER , AEET_NMASK_NEW_CALLDESC);
and when ever u will recieve call in EVT_NOTIFY u will recieve alert
put this if condition to check whether notification is for call
if (pNotify->dwMask & AEET_NMASK_NEW_CALLDESC){}
now once inside this if condition do wtever u want to do ..if u want to initiate new
applet u can do tht.
hope this help
regards,

Ashutosh_Sharma wrote:if uor question is how to know tht u r reciving call then register uor application for reciving alert .something like this
ISHELL_RegisterNotify(pMe->a.m_pIShell, AEECLSID_MYCLASS, AEECLSID_PHONENOTIFIER , AEET_NMASK_NEW_CALLDESC);
and when ever u will recieve call in EVT_NOTIFY u will recieve alert
put this if condition to check whether notification is for call
if (pNotify->dwMask & AEET_NMASK_NEW_CALLDESC){}
now once inside this if condition do wtever u want to do ..if u want to initiate new
applet u can do tht.
hope this help
regards,
no Ashutosh
my question is the main applet contains UI. when i receive notification for incoming call or sms i have to start the applet that means main applet become top visible.
i does not want main applet to be visible. what all i want is to handle notification
while keeping main applet background.
so i have designed two applets one for incoming call other for incoming sms.
these applet should invoke after receiving notification.
how i can accomplish this task if u have any idea pls help me........
waiting for reply .......
ketan

Ashutosh_Sharma wrote:if uor question is how to know tht u r reciving call then register uor application for reciving alert .something like this
ISHELL_RegisterNotify(pMe->a.m_pIShell, AEECLSID_MYCLASS, AEECLSID_PHONENOTIFIER , AEET_NMASK_NEW_CALLDESC);
and when ever u will recieve call in EVT_NOTIFY u will recieve alert
put this if condition to check whether notification is for call
if (pNotify->dwMask & AEET_NMASK_NEW_CALLDESC){}
now once inside this if condition do wtever u want to do ..if u want to initiate new
applet u can do tht.
hope this help
regards,
no Ashutosh
my question is the main applet contains UI. when i receive notification for incoming call or sms i have to start the applet that means main applet become top visible.
i does not want main applet to be visible. what all i want is to handle notification
while keeping main applet background.
so i have designed two applets one for incoming call other for incoming sms.
these applet should invoke after receiving notification.
how i can accomplish this task if u have any idea pls help me........
waiting for reply .......
ketan

i feel uor solution lies in
ISHELL_SendEvent
function sends the event directly to the destination applet. Events can be sent to a specific applet by specifying the destination applet. If the applet is not currently running, it is loaded and the event is sent directly to it. Under these conditions, the applet is started in the background (EVT_APP_START and EVT_APP_STOP events are not sent to the applet). Private events can be sent to an applet by defining the event at or above EVT_USER, and specifying the applet ClassID.
clarify more from api description.
regards

i feel uor solution lies in
ISHELL_SendEvent
function sends the event directly to the destination applet. Events can be sent to a specific applet by specifying the destination applet. If the applet is not currently running, it is loaded and the event is sent directly to it. Under these conditions, the applet is started in the background (EVT_APP_START and EVT_APP_STOP events are not sent to the applet). Private events can be sent to an applet by defining the event at or above EVT_USER, and specifying the applet ClassID.
clarify more from api description.
regards

Thanks ashutosh

Thanks ashutosh