messagingapp/msgsettings/msginit/inc/startupmonitor.h
changeset 31 ebfee66fde93
parent 23 238255e8b033
equal deleted inserted replaced
30:6a20128ce557 31:ebfee66fde93
       
     1 /*
       
     2  * Copyright (c) 2010 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:  
       
    15  *     CStartUpMonitor declaration file
       
    16  *
       
    17  */
       
    18 
       
    19 
       
    20 #ifndef __STARTUPMONITOR_H__
       
    21 #define __STARTUPMONITOR_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <e32property.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CMsgSimOperation;
       
    29 
       
    30 /**
       
    31  * CStartUpMonitor
       
    32  */
       
    33 NONSHARABLE_CLASS( CStartUpMonitor ) : public CActive
       
    34 {
       
    35 public:  // Constructors and destructor
       
    36 
       
    37     /**
       
    38      * Two-phased constructor.
       
    39      *
       
    40      * @param aWatcher a pointer to CMsgSimOperation
       
    41      */
       
    42     static CStartUpMonitor* NewL( CMsgSimOperation* aWatcher );
       
    43     
       
    44     /**
       
    45      * Destructor.
       
    46      */
       
    47     virtual ~CStartUpMonitor();
       
    48     
       
    49 private:
       
    50     
       
    51     /**
       
    52      * By default Symbian OS constructor is private.
       
    53      */
       
    54     void ConstructL();
       
    55     
       
    56     /**
       
    57      * Private C++ constructor.
       
    58      *
       
    59      * @param aWatcher a pointer to CMsgSimOperation
       
    60      */
       
    61     CStartUpMonitor( CMsgSimOperation* aWatcher );
       
    62 
       
    63 private:
       
    64 
       
    65     /**
       
    66      * From CActive
       
    67      */
       
    68     void DoCancel();
       
    69     
       
    70     /**
       
    71      * From CActive
       
    72      */
       
    73     void RunL();
       
    74 
       
    75 private:    // Data
       
    76     CMsgSimOperation*   iWatcher;
       
    77     RProperty 		    iStartupProperty;
       
    78 };
       
    79 
       
    80 #endif  // __STARTUPMONITOR_H__
       
    81 // End of File