// ---------------------------------------------------------
// CSecModUIViewBase::DoActivateL(...)
// 
// ---------------------------------------------------------
//
void CSecModUIViewBase::DoActivateL(
   const TVwsViewId& aPrevViewId,TUid /*aCustomMessageId*/,
   const TDesC8& /*aCustomMessage*/)
    {
    LOG_ENTERFN("CSecModUIViewBase::DoActivateL()");   
    if (KNullUid == iPrevViewId.iViewUid)
        {
        iPrevViewId = aPrevViewId;
        }
    SetTitlePaneL();
    AddNaviPaneLabelL();
                    
    if (!iContainer)
        {
        CreateContainerL();
        iContainer->SetMopParent(this);
        iContainer->ConstructL(ClientRect());
        iContainer->ListBox().SetListBoxObserver(this);
        AppUi()->AddToStackL(*this, iContainer);
        }         
   iContainer->ListBox().SetTopItemIndex( iTopItem );
   //the iCurrentPostion can be -1, if no keystore presents.
   if ( iCurrentPosition >= 0 )
       {
       iContainer->ListBox().SetCurrentItemIndex( iCurrentPosition ); 	
       } 
   iContainer->MakeVisible(ETrue);
   iContainer->SetRect(ClientRect());
   iContainer->ActivateL();
   
   
   LOG_LEAVEFN("CSecModUIViewBase::DoActivateL()");    
   }
void CMmPacketContextList::ConstructL()
    {

    //Create container
    CreateContainerL();

    InitAttributesAndListsL();

    }
/**
 *	Handles user actions during activation of the view, 
 *	such as initializing the content.
 */
void CNPRStoryListBoxView::DoActivateL( 
		const TVwsViewId& /*aPrevViewId*/,
		TUid /*aCustomMessageId*/,
		const TDesC8& /*aCustomMessage*/ )
	{
	SetupStatusPaneL();
	if ( iNPRStoryListBox == NULL )
		{
		iNPRStoryListBox = CreateContainerL();
		iNPRStoryListBox->SetMopParent( this );
		AppUi()->AddToStackL( *this, iNPRStoryListBox );
		} 
	}
Exemple #4
0
CFsObjectCon* CFsObjectConIx::CreateL()
//
// Create a new container.
//
	{

	CFsObjectCon* pC=NULL;
	TRAPD(r,CreateContainerL(pC))
	if (r!=KErrNone)
		{
		delete pC;
		User::Leave(r);
		}
	iNextUniqueID++;
	return pC;
	}
Exemple #5
0
/**
 *	Handles user actions during activation of the view, 
 *	such as initializing the content.
 */
void CMainView::DoActivateL( 
		const TVwsViewId& /*aPrevViewId*/,
		TUid /*aCustomMessageId*/,
		const TDesC8& /*aCustomMessage*/ )
	{
	// [[[ begin generated region: do not modify [Generated Contents]
	SetupStatusPaneL();
	
				
	if ( iMain == NULL )
		{
		iMain = CreateContainerL();
		iMain->SetMopParent( this );
		AppUi()->AddToStackL( *this, iMain );
		} 
	// ]]] end generated region [Generated Contents]
	InitValues();
	}
void CMmLineList::ConstructL()
    {    
    //Create line container
    CreateContainerL();
    
    //Max of 4 lines
    iObjectContainer->ResizeL( KMmTsyNumOfSupportedLines );
    
    iInitialised = EFalse;
    
    CTelObject* tempObject = 
                    reinterpret_cast< CTelObject* >( this );
    
    //Insert know objects to array                
    for ( TInt i = 0; i < KMmTsyNumOfSupportedLines; i++ )
        {
        iObjectContainer->Delete(i);
        iObjectContainer->Compress();
        iObjectContainer->InsertL( i, tempObject );                 
        } 
    
   	if( KMmTsyNumOfSupportedLines < iObjectContainer->Count() )   		
   		{
   		//Delete array objects that are greater three
   		//There should only be four elements in array at this point
        //iObjectContainer->Delete( KMmTsyNumOfSupportedLines, 
        //							iObjectContainer->Count() );
        //Compress Array
        iObjectContainer->Compress();                
   		}

    //no line is used
    for ( TInt i = 0; i < KMmTsyNumOfSupportedLines; i++)
        {
        iIsLineInUse[ i ] = EFalse;                
        }    
       
OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMLINELIST_CONSTRUCTL_1, "TSY: CMmLineList::ConstructL:iObjectContainer->Count()=%d", iObjectContainer->Count());
       
    }
Exemple #7
0
void CAddingPluginView::DoActivateL( 
		const TVwsViewId& /*aPrevViewId*/,
		TUid /*aCustomMessageId*/,
		const TDesC8& /*aCustomMessage*/ )
	{
	// [[[ begin generated region: do not modify [Generated Contents]
	SetupStatusPaneL();
	
				
	if ( iAddingPlugin == NULL )
		{
		iAddingPlugin = CreateContainerL();
		iAddingPlugin->SetMopParent( this );
		AppUi()->AddToStackL( *this, iAddingPlugin );
		} 
	// ]]] end generated region [Generated Contents]
	TBuf<255> text;
	TInt res=R_ADDPLUGIN_EMPTY;
	TRAPD(err,
			{
			CRepository* CR=CRepository::NewL(TUid::Uid(iData.iUid));
			};);
void CMmCallList::ConstructL()
    {
    //Create call container
    CreateContainerL();
    }
void CMmPBList::ConstructL()
    {
    //Create phonebook container
    CreateContainerL();
    }