Passing Data Between Views

Login to reply to this topic.
Fri, 2003-12-12 21:13
Joined: 2003-10-16
Forum posts: 26
Hi

I am passing data with below, but I don't know if it is
good design for this. How is the right?

... first view

void CMainView::makeList( const TDesC8& aXML )
   {
   AppUi()->ActivateLocalViewL(  
                  TUid::Uid(EMultiViewsRequestFilesId),
                  TUid::Uid(EMultiViewsRequestFilesId), aXML);
   }

... second view

void CRequestFilesView ::DoActivateL(
                                   const TVwsViewId& aPrevViewId,
                                   TUid aCustomMessageId,
                                   const TDesC8& aCustomMessage)
   {
   iContainer = new (ELeave) CRequestFilesContainer;
   iContainer->SetMopParent(this);
   iContainer->ConstructL(ClientRect(), aCustomMessage);
   AppUi()->AddToStackL(*this, iContainer);
   }

Flavio Oliveira
Software Engineer
Brasilia - Brasil


Sat, 2003-12-13 01:54
Joined: 2003-07-25
Forum posts: 5
Passing Data Between Views
i also have similar question. i also need pass data between view/container~~i will create that variable at UI class and before the view destory push that data to UI class variable.

CMyCalendarAppUi* pApp=(CMyCalendarAppUi*)iEikonEnv->AppUi();
pApp->iMeetingData->SetShareTime(iContainer->GetContainerTime());
  • Login to reply to this topic.