<?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 - calling procedure from GUI using TIMER - Comments</title>
 <link>http://www.newlc.com/en/forum/calling-procedure-gui-using-timer</link>
 <description>Comments for &quot;calling procedure from GUI using TIMER&quot;</description>
 <language>en</language>
<item>
 <title>Re: calling procedure from GUI using TIMER</title>
 <link>http://www.newlc.com/en/forum/calling-procedure-gui-using-timer#comment-41258</link>
 <description>&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;LOCAL_C TInt Callback(TAny* aArg)&lt;/code&gt;&lt;/div&gt; - this is wrong&lt;/p&gt;

&lt;p&gt;it must be &lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;TInt NAME_CLASS::Callback(TAny* aArg)&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;And everything will be all right:)&lt;/p&gt;</description>
 <pubDate>Wed, 05 Sep 2007 01:14:23 +0200</pubDate>
 <dc:creator>slavo3</dc:creator>
 <guid isPermaLink="false">comment 41258 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: calling procedure from GUI using TIMER</title>
 <link>http://www.newlc.com/en/forum/calling-procedure-gui-using-timer#comment-41255</link>
 <description>&lt;p&gt;&lt;br /&gt;
Thanks for this code, but maybe do you know why I receive errors associate with function TCallBack(..):&lt;br /&gt;
     &lt;br /&gt;
 ERROR: no matching function for call to &#039;TCallBack::TCallBack (TInt (CClientBTAppUi:&lt;img src=&quot;/sites/all/modules/smileys/packs/example/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt;(TAny *), CCLientBTAppUi *)&#039; &lt;br /&gt;
 ERROR: candidates are: TCallBack::TCallBack(const TCallBack &amp;) e32std.h&lt;/p&gt;</description>
 <pubDate>Tue, 04 Sep 2007 22:16:35 +0200</pubDate>
 <dc:creator>slavo3</dc:creator>
 <guid isPermaLink="false">comment 41255 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: calling procedure from GUI using TIMER</title>
 <link>http://www.newlc.com/en/forum/calling-procedure-gui-using-timer#comment-41237</link>
 <description>&lt;p&gt;And for timer, the quickest is probably to use CPeriodic, along these lines;&lt;/p&gt;

&lt;p&gt;&lt;pre class=&quot;bb-code-block&quot;&gt;
//construct
iTimer = CPeriodic::NewL(CActive::EPriorityStandard);

[...]
//a callback for timer event
LOCAL_C TInt Callback(TAny* aArg)
{
   CMyView* view = (CMyView*)aArg;
   view-&amp;gt;HandleCommandL(...);
   return 0;
}
[...]
//to start it from a function within the view:
  iTimer-&amp;gt;Start(KDelayToStart, KInterval, TCallBack(Callback,this));

//to stop:
 iTimer-&amp;gt;Cancel();

&lt;/pre&gt;&lt;/p&gt;</description>
 <pubDate>Tue, 04 Sep 2007 11:12:45 +0200</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 41237 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: calling procedure from GUI using TIMER</title>
 <link>http://www.newlc.com/en/forum/calling-procedure-gui-using-timer#comment-41227</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I can catch your mind.&lt;/p&gt;

&lt;p&gt;if you want to call a view::HandleCommandL, you can pass a pointor to this view into time object, then call the procedure via the pointor&lt;/p&gt;

&lt;p&gt;Hope this answer is for your satisfaction. &lt;/p&gt;</description>
 <pubDate>Tue, 04 Sep 2007 03:22:33 +0200</pubDate>
 <dc:creator>mickeyfirst</dc:creator>
 <guid isPermaLink="false">comment 41227 at http://www.newlc.com</guid>
</item>
<item>
 <title>calling procedure from GUI using TIMER</title>
 <link>http://www.newlc.com/en/forum/calling-procedure-gui-using-timer</link>
 <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;How can I call procedure HandleCommandL(TInt param) from GUI usingã€€ TIMER? I must call this procedure every specific period of time.&lt;/p&gt;

&lt;p&gt;Slawek&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/forum/calling-procedure-gui-using-timer&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/forum/calling-procedure-gui-using-timer#comments</comments>
 <category domain="http://www.newlc.com/en/forums/symbian-c">Symbian C++</category>
 <pubDate>Mon, 03 Sep 2007 23:02:42 +0200</pubDate>
 <dc:creator>slavo3</dc:creator>
 <guid isPermaLink="false">18850 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
