serviceproviders/sapi_applicationmanager/inc/appserviceobserver.h
changeset 5 989d2f495d90
equal deleted inserted replaced
1:a36b1e19a461 5:989d2f495d90
       
     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 
       
    25 #include "appmanagerservice.h"
       
    26 
       
    27 
       
    28 
       
    29 class MLiwNotifyCallback;
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32 *  App Observer is for observing operation events of the appservice class.
       
    33 *  Client application gets notified when asynchronous operations
       
    34 *  are completed.
       
    35 *
       
    36 *
       
    37 *  @since  Series60 v3.2
       
    38 */
       
    39 
       
    40 
       
    41 class CAppServiceObserver : public CBase, public MAppObserver
       
    42     {
       
    43 
       
    44     public:
       
    45 
       
    46         /**
       
    47         * Abstract method to get AppServiceclass events. This method is
       
    48         * called when an event is received.
       
    49         * @since  Series60 v3.2
       
    50         * @param aReason indicates error code or sucess of asynch event
       
    51         * @return void
       
    52         */
       
    53         virtual void AppNotifyCallbackL( TInt32 aReason, TInt32 aTransactionID ,TAppOperationEvent& aOperationEvent );
       
    54 
       
    55 	     /**
       
    56         * Destructor.
       
    57         */
       
    58         virtual ~CAppServiceObserver() {}
       
    59         
       
    60         /**
       
    61         * NewL function .
       
    62         */
       
    63         
       
    64         static CAppServiceObserver* NewL( MLiwNotifyCallback* aCallBack );
       
    65         
       
    66         
       
    67          
       
    68     private:
       
    69             
       
    70             
       
    71             
       
    72             /**
       
    73             * Constructor.
       
    74             */
       
    75             
       
    76             CAppServiceObserver( MLiwNotifyCallback* aCallBack );
       
    77             
       
    78             
       
    79             /**
       
    80             * Liw Call back.
       
    81             */
       
    82             MLiwNotifyCallback* iCallBack ;
       
    83             
       
    84             
       
    85 	};
       
    86