<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - Sms inbox missing data - Comments</title>
 <link>http://www.newlc.com/en/topic-9714</link>
 <description>Comments for &quot;Sms inbox missing data&quot;</description>
 <language>en</language>
<item>
 <title>Re: Sms inbox missing data</title>
 <link>http://www.newlc.com/en/topic-9714#comment-23752</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;I am extracting the body text the following way and it works fine:&lt;br /&gt;&lt;br /&gt;CRichText* richText = CRichText::NewL(CEikonEnv::Static()-&amp;gt;SystemParaFormatLayerL(), CEikonEnv::Static()-&amp;gt;SystemCharFormatLayerL());&lt;br /&gt;CleanupStack::PushL(richText);&lt;br /&gt;&lt;br /&gt;CSmsHeader* mySmsHeader=CSmsHeader::NewL(CSmsPDU::ESmsSubmit,*richText);&lt;br /&gt;CleanupStack::PushL(mySmsHeader);&lt;br /&gt;&lt;br /&gt;CMsvEntry* tmpEntry = iSession-&amp;gt;GetEntryL(aMessageId);&lt;br /&gt;CleanupStack::PushL(tmpEntry);&lt;br /&gt;&lt;br /&gt;if(tmpEntry-&amp;gt;HasStoreL())&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CMsvStore* store = tmpEntry-&amp;gt;ReadStoreL();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CleanupStack::PushL(store);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;mySmsHeader-&amp;gt;RestoreL(*store);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;store-&amp;gt;RestoreBodyTextL(*richText);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CleanupStack::PopAndDestroy(store);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;TInt messageLength = mySmsHeader-&amp;gt;Message().Buffer().Length();&lt;br /&gt;mySmsHeader-&amp;gt;Message().Buffer().Extract(smsBody, 0, messageLength);&lt;br /&gt;&lt;br /&gt;//tale care of cleaning up the stack.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Peri&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Fri, 12 Aug 2005 05:55:53 +0200</pubDate>
 <dc:creator>periakaruppan_sg</dc:creator>
 <guid isPermaLink="false">comment 23752 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Sms inbox missing data</title>
 <link>http://www.newlc.com/en/topic-9714#comment-23751</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Tnx for your helpbut i got this pice of Code but i cant make it work ir just crash i can se why.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The function&lt;br /&gt; &lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;CBaseMtm *ptriMtmRegistry = (CBaseMtm *)(CClientMtmRegistry::NewL(*iMsvSession));&lt;br /&gt;Â  CClientMtmRegistry *iMtmRegistry = CClientMtmRegistry::NewL(*iMsvSession);&lt;br /&gt;Â  CSmsClientMtm* ptrSmsMtm = static_cast&amp;lt;CSmsClientMtm *&amp;gt; (iMtmRegistry-&amp;gt;NewMtmL(KUidMsgTypeSMS));///// it dies Here !!! any WHY&lt;br /&gt;&lt;br /&gt;Â  ptrSmsMtm -&amp;gt;SwitchCurrentEntryL(msvEntry.Id());&lt;br /&gt;Â  ptrSmsMtm -&amp;gt;LoadMessageL();Â  Â  &lt;br /&gt;Â  CRichText &amp;amp;body = ptrSmsMtm-&amp;gt;Body();&lt;/div&gt;&lt;br /&gt;.h file&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;class CTimeMContainer : public CCoeControl, public MCoeControlObserver, public MMsvSessionObserver{&lt;br /&gt;private:&lt;br /&gt;CMsvSession* iMsvSession;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;// Message session&lt;br /&gt;public:&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt; private: // from MMsvSessionObserver&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt; void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3);&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;in the .cpp&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;void CTimeMContainer::ConstructL(const TRect&amp;amp; aRect)&lt;br /&gt;{&lt;br /&gt; iMsvSession = CMsvSession::OpenAsyncL(*this);&lt;br /&gt;...&lt;br /&gt;}&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;void CTimeMContainer::HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3)&lt;br /&gt;{&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;// If various server error conditions occur, set an error flag&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if (&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;(aEvent==EMsvGeneralError)&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;// Something has happening in the server, but this client was unable to retrieve the information. aArg1 points to the error code.&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;|| (aEvent==EMsvCloseSession)&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;// The client should immediately close the session with the Message Server.&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;|| (aEvent==EMsvServerFailedToStart) // Received after a client has used CMsvSession::OpenAsyncL() to create a session. The server could not be started, and aArg1 points to the error code.&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;|| (aEvent==EMsvServerTerminated)&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;// The Message Server has been terminated. All clients must close their sessions immediately.&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;)&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iErrFlag=EFalse;&lt;br /&gt;}&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;please Help me any one&lt;/div&gt;</description>
 <pubDate>Thu, 11 Aug 2005 16:58:39 +0200</pubDate>
 <dc:creator>Legend</dc:creator>
 <guid isPermaLink="false">comment 23751 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Sms inbox missing data</title>
 <link>http://www.newlc.com/en/topic-9714#comment-23750</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;if you want the sms message, you should read it from the message body, not from the description. Check mtm classes for more information.&lt;br /&gt;&lt;br /&gt;yucca&lt;/div&gt;</description>
 <pubDate>Thu, 11 Aug 2005 05:43:19 +0200</pubDate>
 <dc:creator>yucca</dc:creator>
 <guid isPermaLink="false">comment 23750 at http://www.newlc.com</guid>
</item>
<item>
 <title>Sms inbox missing data</title>
 <link>http://www.newlc.com/en/topic-9714</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/topic-9714&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/topic-9714#comments</comments>
 <category domain="http://www.newlc.com/en/forums/messaging">Messaging</category>
 <pubDate>Wed, 10 Aug 2005 13:20:12 +0200</pubDate>
 <dc:creator>Legend</dc:creator>
 <guid isPermaLink="false">10175 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
