??Help Urgent....Showing a message on receiving an sms
| Fri, 2007-11-02 05:24 | |
|
Hi, Purpose:-- Status:- Can some One help?????? Explanation:- 7.There are no operations in case EmsvServerReady, 8.In EMsvEntriesCreated------ Here is the related code: void xxxSmsHandler::ConstructL(xxxAppView* aAppView, void xxxSmsHandler::HandleSessionEventL(TMsvSessionEvent aEvent,TAny* aArg1,TAny* aArg2,TAny* aArg3) entry.SetNew( ETrue ); serverEntry->ChangeL( entry ); informationNote = new ( ELeave ) CAknInformationNote; // Show the information Note with // Pop HBuf from CleanUpStack and Destroy it. |
|






Forum posts: 37
Hi,
I added the following lines of code (under EMsvServerReady)and get 3 errors which are also described below.
void CCamControlSmsHandler::HandleSessionEventL(TMsvSessionEvent aEvent,TAny* aArg1,TAny* aArg2,TAny* aArg3)
progress;
{
switch(aEvent)
{
case EMsvServerReady:
TMsvId ServiceId(KUidMsgTypeSMS.iUid);
TBuf8
iSession->ServiceProgress(ServiceId,progress);
_LIT8(KCompare,"KErrNone");
if(progress.Compare(KCompare))
{
iReg=CClientMtmRegistry::NewL(*iSession);
iMtm=STATIC_CAST(CSmsClientMtm*,iReg->NewMtmL(KUidMsgTypeSMS));
}
break;
case EMsvEntriesCreated:
------------
-----------
break;
}
Const TInt KBfrLength=20;
Errors:-------------
Severity and Description Path Resource Location Creation Time Id
1.error: crosses initialization of `TBuf8<20> progress' xxx/src xxxSmsHandler.cpp line 114 1193991696484 128
2.error: jump to case label xxx/src xxxSmsHandler.cpp line 123 1193991696484 127
even if I change the value of KbfrLength=400, the error does not go.
Forum posts: 37
Wrapping curly braces solves the error
switch(aEvent)
{
case EMsvServerReady:
{
TMsvId ServiceId(KUidMsgTypeSMS.iUid);
TBuf8< KBfrLength> progress;
iSession->ServiceProgress(ServiceId,progress);
_LIT8(KCompare,"KErrNone");
if(progress.Compare(KCompare))
{
iReg=CClientMtmRegistry::NewL(*iSession);
iMtm=STATIC_CAST(CSmsClientMtm*,iReg->NewMtmL(KUidMsgTypeSMS));
}
break;
}
case EMsvEntriesCreated:
------------
-----------
break;
}
but still ,
the message of .rss file is not shown on receiving the sms.
After I install the application into mobile, I run the application.
Send an sms from another cell into my cell.
At this point I need the string declared in .rss file should be displayed.
But this does not happen..
Now I am trying to handle the EMsvEntriesChanged and EMsvEntriesMoved Events.
But I dont know much about thesse 2 event......
Is there any link..........