menucontentsrv/srvinc/mcssatmonitor.h
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2008 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:  The API supports attributes not present in MCS from SAT Api
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MCSSATMONITOR_H__
       
    20 #define __MCSSATMONITOR_H__
       
    21 
       
    22 #include "mcssatnotifier.h"
       
    23 #include "menuengoperation.h"
       
    24 
       
    25 //Forward declatations
       
    26 class MMenuEngObserver;
       
    27 class CMenuEng;
       
    28 class CMcsSatNotifier;
       
    29 
       
    30 /**
       
    31  *  SAT Handler.
       
    32  *  @lib mcssathandler.lib
       
    33  *  @since S60 v5.0
       
    34  */
       
    35 NONSHARABLE_CLASS( CMcsSatMonitor ): public CBase, 
       
    36     public MMcsSATNotifierCallback, MMenuEngOperation
       
    37     {
       
    38 public:
       
    39     
       
    40     /**
       
    41     * Two-phased constructor. Leaves on failure.
       
    42     * @return The constructed object.
       
    43     */
       
    44     IMPORT_C static CMcsSatMonitor* NewL( CMenuEng& aEng );    
       
    45     
       
    46     /**
       
    47     * Destructor.
       
    48     * @since S60 v5.0
       
    49     * @capability None.
       
    50     * @throws None.
       
    51     * @panic None.
       
    52     */
       
    53     virtual ~CMcsSatMonitor();
       
    54     
       
    55 private:
       
    56 
       
    57     /**
       
    58     * Constructor.
       
    59     */
       
    60     CMcsSatMonitor( CMenuEng& aEng );    
       
    61 
       
    62     /**
       
    63     * 2nd phase constructor.
       
    64     */
       
    65     void ConstructL();
       
    66 
       
    67 private:    // from MMenuEngOperation
       
    68 
       
    69     /**
       
    70     * Execute engine operation:
       
    71     * Do the application scan and update menu accordingly.
       
    72     */
       
    73     void RunMenuEngOperationL();
       
    74 
       
    75     /**
       
    76     * Error handling: ignore error.
       
    77     * @param aErr Error code.
       
    78     */
       
    79     void CompletedMenuEngOperation( TInt aErr );
       
    80     
       
    81     
       
    82     /**
       
    83     * Inherited from MNotifierMMcsSATNotifierCallbackCallback
       
    84     * 
       
    85     * @since Series 60 3.1
       
    86     * @return void
       
    87     */    
       
    88     void SATChangeL();   
       
    89     
       
    90     TInt GetIdL( TUid aAppUid );
       
    91     
       
    92 private:    // data
       
    93     
       
    94     CMenuEng& iEng; ///< Engine.
       
    95 
       
    96     CMcsSatNotifier* iMcsSatNotifier1;
       
    97     
       
    98     CMcsSatNotifier* iMcsSatNotifier2;
       
    99     TBool iOpStatus;
       
   100     };
       
   101 
       
   102 #endif // __MCSSATHANDLER_H__