MClass

Login to reply to this topic.
Wed, 2008-04-02 11:48
Joined: 2008-03-11
Forum posts: 12

Hi all,
I am beginner in symbian and have a confussion that If we are deriving over class from some observer that means we are using some virtual function of that abstract class . If I am not derive the class form observer and define Abstract class just above my class then need to be pass observer like (

(1) class MCoeControlObserver:CBase
public:
{

virtual void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType)=0;
};
//
insted
(2)class CViewAppContainer : public CCoeControl, MCoeControlObserver

Problem is here //
how can i use (1) insted of (2)


Wed, 2008-04-02 12:14
Joined: 2005-11-20
Forum posts: 1093
Re: MClass

I tried to understand your question, but I was not successful.

But anyway, what are you trying to do, but can't? Why don't you just implement HandleControlEventL in your CViewAppContainer class, like everyone does?

MCoeControlObserver is not derived from CBase, and you can't change that, because that's defined by Symbian.


René Brunner

Thu, 2008-04-03 09:00
Joined: 2008-03-11
Forum posts: 12
Re: MClass

Hi
Thanks for solving my problem.

Satish Khatri

  • Login to reply to this topic.