<?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 - getting a panic Agenda Model 0 in Calendar APIs - Comments</title>
 <link>http://www.newlc.com/forum/getting-panic-agenda-model-0-calendar-apis</link>
 <description>Comments for &quot;getting a panic Agenda Model 0 in Calendar APIs&quot;</description>
 <language>en</language>
<item>
 <title>Re: getting a panic Agenda Model 0 in Calendar APIs</title>
 <link>http://www.newlc.com/forum/getting-panic-agenda-model-0-calendar-apis#comment-45241</link>
 <description>&lt;p&gt;hi,&lt;/p&gt;

&lt;p&gt;i could resolve the prevoius problem now.. and the control is passing through all the statements of the AddEntryL().. I added an activescheduler.&lt;br /&gt;
but still the entries are not getting reflected in the calendar. I also tried by closing the emulator and starting it again..&lt;/p&gt;

&lt;p&gt;Can you please check the following code? &lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;void CCalExample::AddEntryL()&lt;br /&gt;{ &lt;br /&gt;&lt;br /&gt;if(!iReady)&lt;br /&gt;return;&lt;br /&gt;&lt;br /&gt;const TDesC8&amp;amp; guidDes = KGuid;&lt;br /&gt;HBufC8* guid = guidDes.AllocL();&lt;br /&gt;&lt;br /&gt;CCalEntry* todo = CCalEntry::NewL(CCalEntry::ETodo, guid, CCalEntry::EMethodNone, 0);&lt;br /&gt;CleanupStack::PushL(todo);&lt;br /&gt;&lt;br /&gt;todo-&amp;gt;SetSummaryL( _L(&amp;quot;Summary&amp;quot;) ); &lt;br /&gt;//Priority&lt;br /&gt;TInt priority = 1;&lt;br /&gt;todo-&amp;gt;SetPriorityL(priority);&lt;br /&gt;&lt;br /&gt;//Completed&lt;br /&gt;/*&lt;br /&gt;TCalTime calTime;&lt;br /&gt;TTime time; time.UniversalTime();&lt;br /&gt;calTime.SetTimeUtcL(time);&lt;br /&gt;todo-&amp;gt;SetCompletedL(ETrue, calTime); */&lt;br /&gt;&lt;br /&gt;//End date&lt;br /&gt;TCalTime calStartDate;&lt;br /&gt;calStartDate.SetTimeLocalL(TDateTime(2008, EMarch, 28, 11, 0, 0, 0));&lt;br /&gt;TCalTime calEndDate;&lt;br /&gt;calEndDate.SetTimeLocalL(TDateTime(2008, EMarch, 28, 12, 0, 0, 0));&lt;br /&gt;&lt;br /&gt;todo-&amp;gt;SetStartAndEndTimeL(calStartDate, calEndDate);&lt;br /&gt;&lt;br /&gt;//Store New Entry&lt;br /&gt;RPointerArray&amp;lt;CCalEntry&amp;gt; entryArray;&lt;br /&gt;&lt;br /&gt;CleanupClosePushL(entryArray);&lt;br /&gt;entryArray.AppendL(todo);&lt;br /&gt;&lt;br /&gt;TInt success(0);&lt;br /&gt;iCalEntryView-&amp;gt;StoreL(entryArray, success);&lt;br /&gt;entryArray.Reset();&lt;br /&gt;CleanupStack::PopAndDestroy(&amp;amp;entryArray);&lt;br /&gt;CleanupStack::PopAndDestroy(todo);&lt;br /&gt;}&amp;nbsp; &lt;/code&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;thanx..&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Fri, 21 Mar 2008 20:19:48 +0100</pubDate>
 <dc:creator>swetha_s</dc:creator>
 <guid isPermaLink="false">comment 45241 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: getting a panic Agenda Model 0 in Calendar APIs</title>
 <link>http://www.newlc.com/forum/getting-panic-agenda-model-0-calendar-apis#comment-45237</link>
 <description>&lt;p&gt;hi,&lt;/p&gt;

&lt;p&gt;i initialised iReady as EFalse and did the following:&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;void CCalExample::Completed(TInt aError)&lt;br /&gt;{&lt;br /&gt;if(aError==KErrNone)&lt;br /&gt;iReady=ETrue;&lt;br /&gt;&lt;br /&gt;// CActiveScheduler::Stop();&lt;br /&gt;}&amp;nbsp; &lt;/code&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;and the code for adding the to-do entry is as following:&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;void CCalExample::AddEntryL()&lt;br /&gt;{ &lt;br /&gt;&lt;br /&gt;if(!iReady)&lt;br /&gt;return;&lt;br /&gt;&lt;br /&gt;const TDesC8&amp;amp; guidDes = KGuid;&lt;br /&gt;HBufC8* guid = guidDes.AllocL();&lt;br /&gt;&lt;br /&gt;CCalEntry* todo = CCalEntry::NewL(CCalEntry::ETodo, guid, CCalEntry::EMethodNone, 0);&lt;br /&gt;CleanupStack::PushL(todo);&lt;br /&gt;&lt;br /&gt;todo-&amp;gt;SetSummaryL( _L(&amp;quot;Summary&amp;quot;) ); &lt;br /&gt;//Priority&lt;br /&gt;TInt priority = 1;&lt;br /&gt;todo-&amp;gt;SetPriorityL(priority);&lt;br /&gt;&lt;br /&gt;//End date&lt;br /&gt;TCalTime calStartDate;&lt;br /&gt;calStartDate.SetTimeLocalL(TDateTime(2008, EMarch, 19, 11, 0, 0, 0));&lt;br /&gt;TCalTime calEndDate;&lt;br /&gt;calEndDate.SetTimeLocalL(TDateTime(2008, EMarch, 19, 12, 0, 0, 0));&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;todo-&amp;gt;SetStartAndEndTimeL(calStartDate, calEndDate);&lt;br /&gt;&lt;br /&gt;//Store New Entry&lt;br /&gt;RPointerArray&amp;lt;CCalEntry&amp;gt; entryArray;&lt;br /&gt;&lt;br /&gt;CleanupClosePushL(entryArray);&lt;br /&gt;entryArray.AppendL(todo);&lt;br /&gt;&lt;br /&gt;TInt success(0);&lt;br /&gt;iCalEntryView-&amp;gt;StoreL(entryArray, success);&lt;br /&gt;entryArray.Reset();&lt;br /&gt;CleanupStack::PopAndDestroy(&amp;amp;entryArray);&lt;br /&gt;CleanupStack::PopAndDestroy(todo);&lt;br /&gt;}&amp;nbsp; &lt;/code&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;Now the problem is the function is always getting returned coz of the if(!iReady) return; statement. and if i dont use this statement, its giving me Agenda Model 0 panic.&lt;/p&gt;

&lt;p&gt;What should i do now?&lt;/p&gt;

&lt;p&gt;Plz help..&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Fri, 21 Mar 2008 10:50:08 +0100</pubDate>
 <dc:creator>swetha_s</dc:creator>
 <guid isPermaLink="false">comment 45237 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: getting a panic Agenda Model 0 in Calendar APIs</title>
 <link>http://www.newlc.com/forum/getting-panic-agenda-model-0-calendar-apis#comment-45234</link>
 <description>&lt;p&gt;Error codes, or in this case a success code, are there for a reason - to tell you if something went wrong, and if so give some inidcation as to what the problem is.&lt;/p&gt;</description>
 <pubDate>Thu, 20 Mar 2008 19:49:00 +0100</pubDate>
 <dc:creator>Numpty Alert</dc:creator>
 <guid isPermaLink="false">comment 45234 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: getting a panic Agenda Model 0 in Calendar APIs</title>
 <link>http://www.newlc.com/forum/getting-panic-agenda-model-0-calendar-apis#comment-45213</link>
 <description>&lt;p&gt;hi,&lt;/p&gt;

&lt;p&gt;i could solve the problem. The panic is not coming now.&lt;/p&gt;

&lt;p&gt;I decalred a iReady as TBoolean and checked its value before making an entry.&lt;/p&gt;

&lt;p&gt;But the To-Do entry is not getting reflected in the calendar even after refreshing it. The code is:&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;void CCalExample::AddEntryL()&lt;br /&gt;{ &lt;br /&gt;&lt;br /&gt;if(!iReady)&lt;br /&gt;return;&lt;br /&gt;&lt;br /&gt;const TDesC8&amp;amp; guidDes = KGuid;&lt;br /&gt;HBufC8* guid = guidDes.AllocL();&lt;br /&gt;&lt;br /&gt;CCalEntry* todo = CCalEntry::NewL(CCalEntry::ETodo, guid, CCalEntry::EMethodNone, 0);&lt;br /&gt;CleanupStack::PushL(todo);&lt;br /&gt;&lt;br /&gt;todo-&amp;gt;SetSummaryL( _L(&amp;quot;Summary&amp;quot;) ); &lt;br /&gt;//Priority&lt;br /&gt;TInt priority = 1;&lt;br /&gt;todo-&amp;gt;SetPriorityL(priority);&lt;br /&gt;&lt;br /&gt;//End date&lt;br /&gt;TCalTime calStartDate;&lt;br /&gt;calStartDate.SetTimeLocalL(TDateTime(2008, EMarch, 19, 11, 0, 0, 0));&lt;br /&gt;TCalTime calEndDate;&lt;br /&gt;calEndDate.SetTimeLocalL(TDateTime(2008, EMarch, 19, 12, 0, 0, 0));&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;todo-&amp;gt;SetStartAndEndTimeL(calStartDate, calEndDate);&lt;br /&gt;&lt;br /&gt;//Store New Entry&lt;br /&gt;RPointerArray&amp;lt;CCalEntry&amp;gt; entryArray;&lt;br /&gt;&lt;br /&gt;CleanupClosePushL(entryArray);&lt;br /&gt;entryArray.AppendL(todo);&lt;br /&gt;&lt;br /&gt;TInt success(0);&lt;br /&gt;iCalEntryView-&amp;gt;StoreL(entryArray, success);&lt;br /&gt;entryArray.Reset();&lt;br /&gt;CleanupStack::PopAndDestroy(&amp;amp;entryArray);&lt;br /&gt;CleanupStack::PopAndDestroy(todo);&lt;br /&gt;&lt;br /&gt;}&amp;nbsp; &lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
And it gives a msg:&lt;br /&gt;
Application Closed: Calendar apis ALLOC:&lt;span style=&quot;font-weight:bold&quot;&gt;30b521c40&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;And the number in bold changes every time i open the emulator. Does it have any relation with the entries not getting reflected in the calendar?&lt;/p&gt;

&lt;p&gt;Please help..&lt;br /&gt;
Thanx in advance. &lt;img src=&quot;/sites/all/modules/smileys/packs/example/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt;&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Wed, 19 Mar 2008 20:47:11 +0100</pubDate>
 <dc:creator>swetha_s</dc:creator>
 <guid isPermaLink="false">comment 45213 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: getting a panic Agenda Model 0 in Calendar APIs</title>
 <link>http://www.newlc.com/forum/getting-panic-agenda-model-0-calendar-apis#comment-45211</link>
 <description>&lt;p&gt;Nothing to do with StoreL or NULL or garbage, see the answer on the posting in forum nokia as that is correct.&lt;/p&gt;</description>
 <pubDate>Wed, 19 Mar 2008 17:33:32 +0100</pubDate>
 <dc:creator>Numpty Alert</dc:creator>
 <guid isPermaLink="false">comment 45211 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: getting a panic Agenda Model 0 in Calendar APIs</title>
 <link>http://www.newlc.com/forum/getting-panic-agenda-model-0-calendar-apis#comment-45194</link>
 <description>&lt;p&gt;i thik StoreL function dont panic... at least from the documents....&lt;/p&gt;

&lt;p&gt;can you just see iCalEntryView is intialized properly....&lt;/p&gt;

&lt;p&gt;i mean is it allocated or it has a garbage value or a NULL value in it...&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Wed, 19 Mar 2008 07:23:43 +0100</pubDate>
 <dc:creator>83.manish</dc:creator>
 <guid isPermaLink="false">comment 45194 at http://www.newlc.com</guid>
</item>
<item>
 <title>getting a panic Agenda Model 0 in Calendar APIs</title>
 <link>http://www.newlc.com/forum/getting-panic-agenda-model-0-calendar-apis</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I know that this query has been posted before..but i couldnt get the answer from that. so, m posting it again.&lt;br /&gt;
I am getting a panic in the storeL().&lt;/p&gt;

&lt;p&gt;My code is:&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;font-weight:bold&quot;&gt;The code in CalEx.h is:&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;// Sets some entry details - start and end date/time, description, categories and attendees&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/forum/getting-panic-agenda-model-0-calendar-apis&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/forum/getting-panic-agenda-model-0-calendar-apis#comments</comments>
 <category domain="http://www.newlc.com/forums/symbian-c">Symbian C++</category>
 <pubDate>Tue, 18 Mar 2008 19:57:30 +0100</pubDate>
 <dc:creator>swetha_s</dc:creator>
 <guid isPermaLink="false">20527 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
