convergedconnectionhandler/cchserver/inc/cchphonestartupmonitor.h
branchRCL_3
changeset 15 ed1e38b404e5
parent 11 bddb6d4447db
child 16 6134b5029079
equal deleted inserted replaced
11:bddb6d4447db 15:ed1e38b404e5
     1 /*
       
     2 * Copyright (c) 2009 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:  CCchPhoneStartupMonitor.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_CCHPHONESTARTUPMONITOR_H
       
    19 #define C_CCHPHONESTARTUPMONITOR_H
       
    20 
       
    21 #include <e32std.h>
       
    22 #include <e32base.h>
       
    23 #include <e32property.h>
       
    24 
       
    25 class CCchUIHandler;
       
    26 
       
    27 /**
       
    28  *  CCchPhoneStartupMonitor declaration
       
    29  *  Monitors phone startup.
       
    30  *  @lib cchserver.exe
       
    31  *  @since S60 5.0
       
    32  */
       
    33 class CCchPhoneStartupMonitor : public CActive
       
    34     {
       
    35 
       
    36 public: // Constructors and destructor
       
    37 
       
    38     /**
       
    39     * Two-phased constructor.
       
    40     */
       
    41     static CCchPhoneStartupMonitor* NewL( CCchUIHandler& aCchUIHandler );
       
    42 
       
    43     /**
       
    44      * Two-phased constructor.
       
    45      */
       
    46     static CCchPhoneStartupMonitor* NewLC( CCchUIHandler& aCchUIHandler );
       
    47 
       
    48     /**
       
    49      * Destructor.
       
    50      */
       
    51     virtual ~CCchPhoneStartupMonitor();
       
    52 
       
    53     /**
       
    54     Implements cancellation of an outstanding request.
       
    55     @see CActive::Cancel
       
    56     */
       
    57     virtual void DoCancel();
       
    58 
       
    59     /**
       
    60     Handles an active object's request completion event.
       
    61     */
       
    62     virtual void RunL();
       
    63     
       
    64     /**
       
    65     Handles leaving of RunL.
       
    66     */
       
    67     virtual TInt RunError(TInt aError);
       
    68     
       
    69 private:
       
    70 
       
    71     /**
       
    72      * By default Symbian 2nd phase constructor is private.
       
    73      */
       
    74     void ConstructL();
       
    75 
       
    76     /**
       
    77      * C++ default constructor.
       
    78      */
       
    79     CCchPhoneStartupMonitor( CCchUIHandler& aCchUIHandler );
       
    80     
       
    81     /**
       
    82     Monitor phone startup phases.
       
    83     */
       
    84     void MonitorPhoneStartupPhaseL();
       
    85     
       
    86 private: // data
       
    87 
       
    88     /**
       
    89      * Handle to cch ui handler.
       
    90      */
       
    91     CCchUIHandler& iCchUIHandler;
       
    92     
       
    93     /**
       
    94      * Handle to RProperty.
       
    95      */
       
    96     RProperty iStartupUiPhaseProperty;
       
    97     
       
    98     /**
       
    99      * Should I commit suicide
       
   100      */
       
   101     TBool iDie;
       
   102     };
       
   103 
       
   104 #endif // C_CCHPHONESTARTUPMONITOR_H
       
   105 
       
   106 // End of file