Create an instance of CCoeAppUi

Context

Create a CCoeAppUi object using the ConstructL(CCoeAppUi *). This creates the CCoeAppUi object and the application's control stack, and starts a session with the View Server.
/** 
Construct a control 
*/
class CAppUiNewControl : public CCoeControl
    {
    public:    
        CAppUiNewControl();
        void ConstructL();
        ~CAppUiNewControl();
    private:    
        CAppUiNewControl* iControl;
    };
class CMCoeViewActivationObserver : public MCoeViewActivationObserver               {
    public:
        void ConstructL();
        // from MCoeViewActivationObserver
        void NotifyNextActivation( TVwsViewId& aViewId,
                                   MCoeViewActivationObserver& aViewActivationObserver );
        CMCoeViewActivationObserver* NewL();
    private:
        CCoeAppUi* iCCoeAppUi;
    }
/**
Create a session
*/
CNewAppUi::ConstructL()
    {
    CCoeAppUi::ConstructL( iCCoeAppUi );
    iControl=new( ELeave ) CAppUiNewControl();
    iControl->ConstructL();
    }