phoneengine/phonemodel/inc/cpeidlestatusmonitor.h
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 40 bab96b7ed1a4
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
     1 /*
       
     2 * Copyright (c) 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 "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 file contains the header file for CPEIdleStatusMonitor class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPEIdleStatusMonitor_H
       
    20 #define CPEIdleStatusMonitor_H
       
    21 
       
    22 //INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <e32property.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CPEPhoneModel;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  CPEIdleStatusMonitor
       
    33 *  Monitors the idle status P&S key for changes
       
    34 *
       
    35 *  @since S60_5.0
       
    36 */
       
    37 NONSHARABLE_CLASS( CPEIdleStatusMonitor ) : public CActive
       
    38     {
       
    39     public:
       
    40         /**
       
    41         * Two-phased constructor.
       
    42         */
       
    43         static CPEIdleStatusMonitor* NewL( 
       
    44             CPEPhoneModel& aOwner );
       
    45             
       
    46         /**
       
    47         * Destructor.
       
    48         */
       
    49         virtual ~CPEIdleStatusMonitor();     
       
    50                
       
    51     protected:
       
    52         /**
       
    53         * C++ default constructor.
       
    54         */    
       
    55         CPEIdleStatusMonitor( CPEPhoneModel& aOwner );
       
    56 
       
    57         /**
       
    58         * Second-phase constructor.
       
    59         */
       
    60         void ConstructL();    
       
    61         
       
    62     private: // From CActive
       
    63 
       
    64         /**
       
    65         * Implements cancellation of an outstanding request.
       
    66         */
       
    67         void DoCancel();
       
    68 
       
    69         /**
       
    70         * Handles request completion event.
       
    71         */
       
    72         void RunL();
       
    73         
       
    74     private:
       
    75 
       
    76         // MPEPhoneModelInternal owns this object.
       
    77         CPEPhoneModel& iOwner;
       
    78         // The interface to Publish And Subscribe.
       
    79         RProperty iProperty;
       
    80     };
       
    81 
       
    82 #endif  //  CPEIdleStatusMonitor_H