sapi_applicationmanager/tsrc/dev/testappmngui/src/testappobserver.cpp
changeset 0 14df0fbfcc4e
equal deleted inserted replaced
-1:000000000000 0:14df0fbfcc4e
       
     1 /*
       
     2 * Copyright (c) 2007-2007 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 the License "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:  This Class is observer for the Launching Application
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <e32const.h>
       
    20 #include "testappobserver.h"
       
    21 
       
    22 
       
    23 // -----------------------------------------------------------------------------
       
    24 // CAppObserver::NewL
       
    25 // Returns the instance of CLauncherObserver.
       
    26 // -----------------------------------------------------------------------------
       
    27 CAppObserver* CAppObserver::NewL()
       
    28 	{
       
    29 	CAppObserver* self = new( ELeave ) CAppObserver();
       
    30 	return self;
       
    31 	}
       
    32 
       
    33 // ---------------------------------------------------------------------------
       
    34 // call back
       
    35 // ---------------------------------------------------------------------------
       
    36 //
       
    37 void CAppObserver::AppNotifyCallbackL( TInt32 aReason, TInt32 aTransactionID ,TAppOperationEvent& aOperationEvent )
       
    38 
       
    39 	{
       
    40 		TInt32 Reason = aReason;
       
    41 		wait->AsyncStop();
       
    42 	}
       
    43 
       
    44 
       
    45 
       
    46 
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 // CAppObserver::CAppObserver
       
    50 // Returns the instance of CLauncherObserver.
       
    51 // -----------------------------------------------------------------------------
       
    52  CAppObserver:: CAppObserver()
       
    53 	{
       
    54     wait = new CActiveSchedulerWait();
       
    55 	}
       
    56 	
       
    57 	
       
    58 	// -----------------------------------------------------------------------------
       
    59 // CAppObserver::~CAppObserver
       
    60 // Destructor
       
    61 // -----------------------------------------------------------------------------
       
    62  CAppObserver:: ~CAppObserver()
       
    63 	{
       
    64     delete wait;
       
    65 	}
       
    66