sapi_applicationmanager/tsrc/testing/tappmgrprovider/inc/testappobserver.h
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:  Operation Observer is for observing operation events of the appservice class.
       
    15 *  							 Client application gets notified when asynchronous operations
       
    16 *                are completed.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 #include <Liwcommon.h>
       
    25 #include  "e32base.h" 
       
    26 
       
    27 
       
    28 
       
    29 // CLASS DECLARATION
       
    30 /**
       
    31 *  App Observer is for observing operation events of the appservice class.
       
    32 *  Client application gets notified when asynchronous operations
       
    33 *  are completed.
       
    34 *
       
    35 *
       
    36 *  @since  Series60 v3.2
       
    37 */
       
    38 
       
    39 class CAppObserver : public CBase, public MLiwNotifyCallback
       
    40     {
       
    41 
       
    42     public:
       
    43 
       
    44         /**
       
    45         * Abstract method to get AppServiceclass events. This method is
       
    46         * called when an event is received.
       
    47         * @since  Series60 v3.2
       
    48         * @param aReason indicates error code or sucess of asynch event
       
    49         * @return void
       
    50         */
       
    51         
       
    52         
       
    53         virtual TInt HandleNotifyL(
       
    54             TInt aCmdId,
       
    55             TInt aEventId,
       
    56             CLiwGenericParamList& aEventParamList,
       
    57             const CLiwGenericParamList& aInParamList);
       
    58              
       
    59         
       
    60 	     /**
       
    61         * Destructor.
       
    62         */
       
    63         virtual ~CAppObserver() {}
       
    64         
       
    65         /**
       
    66         * NewL function .
       
    67         */
       
    68         
       
    69         static CAppObserver* NewL(CActiveSchedulerWait * aWait);
       
    70         
       
    71         
       
    72         TInt32 iReason;
       
    73         
       
    74         TInt32 iErrorReturn;
       
    75         
       
    76         
       
    77         TBool  iCancel;
       
    78         
       
    79         private:
       
    80             
       
    81             CAppObserver(CActiveSchedulerWait*);
       
    82             
       
    83             CActiveSchedulerWait* iWait;
       
    84             
       
    85       
       
    86 
       
    87 	};
       
    88