usbmgmt/usbmgr/host/functiondrivers/ms/msmm/refppnotifier/src/refppdialog.cpp
branchRCL_3
changeset 16 012cc2ee6408
parent 0 c9bc50fca66e
equal deleted inserted replaced
15:f92a4f87e424 16:012cc2ee6408
       
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #include "refppdialog.h"
       
    24 /**
       
    25   Constructor 
       
    26  */
       
    27 CRefPPDialog::CRefPPDialog(TBool* aDlgFlag):iDlgFlagInOwner(aDlgFlag)
       
    28 	{
       
    29 	}
       
    30 /**
       
    31   Destructor
       
    32  */
       
    33 CRefPPDialog::~CRefPPDialog()
       
    34 	{
       
    35 	}
       
    36 /**
       
    37   This is a static method used by refppnotifier to initialize a CRefDialog object. 
       
    38  
       
    39   @param	aDlgFlag  	 	The flag in the owner of this dialog. This flag is used
       
    40                             to indicate if the dialog has been closed by the user
       
    41                             by click the button on the dialog.
       
    42   
       
    43   @return	A pointer to the newly initialized object.
       
    44  */
       
    45 CRefPPDialog* CRefPPDialog::NewLC(TBool* aDlgFlag)
       
    46 	{
       
    47 	CRefPPDialog* self = new (ELeave)CRefPPDialog(aDlgFlag);
       
    48 	CleanupStack::PushL(self);
       
    49 	self->ConstructL();
       
    50 	return self;
       
    51 	}
       
    52 /**
       
    53   This is a static method used by refppnotifier to initialize a CRefDialog object. 
       
    54  
       
    55   @param	aDlgFlag  	 	The flag in the owner of this dialog. This flag is used
       
    56                             to indicate if the dialog has been closed by the user
       
    57                             by click the button on the dialog.
       
    58   
       
    59   @return	A pointer to the newly initialized object.
       
    60  */
       
    61 CRefPPDialog* CRefPPDialog::NewL(TBool* aDlgFlag)
       
    62 	{
       
    63 	CRefPPDialog* self=CRefPPDialog::NewLC(aDlgFlag);
       
    64 	CleanupStack::Pop(self);
       
    65 	return self;
       
    66 	}
       
    67 /**
       
    68   Method for the second phase construction. 
       
    69  */
       
    70 void CRefPPDialog::ConstructL()
       
    71 	{
       
    72 	}
       
    73 /**
       
    74   Get called when the dialog is closed by user closing the dialog. Must return ETrue to
       
    75   allow the dialog to close.
       
    76   
       
    77   @param      aButtonId        the button pressed when OkToExitL() is called.
       
    78   
       
    79   @return     TBool            ETrue  to let the dialog close.
       
    80                                EFalse to keep the dialog on screen.      
       
    81   
       
    82  */
       
    83 TBool CRefPPDialog::OkToExitL(TInt /*aButtonId*/)
       
    84 	{
       
    85 	*iDlgFlagInOwner = EFalse;
       
    86 	return ETrue;
       
    87 	}