uifw/EikStd/dlgsrc/EIKDBCOB.CPP
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 1997-1999 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 #include "EIKDBCOB.H"
       
    20 #include <eikdialg.h>
       
    21 
       
    22 CEikDialogButtonCommandObserver::CEikDialogButtonCommandObserver(CEikDialog& aDialog)
       
    23 	: iDialog(aDialog)
       
    24 	{
       
    25 	}
       
    26 
       
    27 CEikDialogButtonCommandObserver::~CEikDialogButtonCommandObserver()
       
    28 	{
       
    29 	}
       
    30 
       
    31 CEikDialogButtonCommandObserver* CEikDialogButtonCommandObserver::NewLC(CEikDialog& aDialog)
       
    32 	{
       
    33 	CEikDialogButtonCommandObserver* self=new(ELeave) CEikDialogButtonCommandObserver(aDialog);
       
    34 	CleanupStack::PushL(self);
       
    35 	return self;
       
    36 	}
       
    37 
       
    38 /**
       
    39  * Creates a new CEikDialogButtonCommandObserver with observer aObserver.
       
    40  * Returns a pointer to the object and transfers ownership.
       
    41  */
       
    42 CEikDialogButtonCommandObserver* CEikDialogButtonCommandObserver::NewL(CEikDialog& aDialog)
       
    43 	{
       
    44 	CEikDialogButtonCommandObserver* self=NewLC(aDialog);
       
    45 	CleanupStack::Pop();	// self
       
    46 	return self;
       
    47 	}
       
    48 
       
    49 /**
       
    50  * Processes the command identified by aCommandId by passing it on to its observer.
       
    51  */
       
    52 void CEikDialogButtonCommandObserver::ProcessCommandL(TInt aCommandId)
       
    53 	{
       
    54 	iDialog.TryExitL(aCommandId);
       
    55 	}
       
    56