messagingapp/msgnotifications/msgerrorwatcher/inc/msgerrorstartupobserver.h
changeset 56 f42d9a78f435
equal deleted inserted replaced
55:5b3b2fa8c3ec 56:f42d9a78f435
       
     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 *     CMsgErrorStartupObserver declaration file
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __MSGERRORSTARTUPOBSERVER_H
       
    22 #define __MSGERRORSTARTUPOBSERVER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <e32property.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CMsgErrorWatcherPrivate;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 * CMsgErrorStartupObserver
       
    35 */
       
    36 class CMsgErrorStartupObserver : public CActive
       
    37     {
       
    38     public:  // Constructors and destructor
       
    39         
       
    40         /**
       
    41         * Two-phased constructor.
       
    42         *
       
    43         * @param aWatcher A pointer to CMsgErrorWatcherPrivate
       
    44         */
       
    45         static CMsgErrorStartupObserver* NewL( CMsgErrorWatcherPrivate& aWatcher );
       
    46         
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         virtual ~CMsgErrorStartupObserver();
       
    51 
       
    52     private:
       
    53 
       
    54         /**
       
    55         * By default Symbian OS constructor is private.
       
    56         */
       
    57         void ConstructL();
       
    58 
       
    59         /**
       
    60         * Private C++ constructor.
       
    61         *
       
    62         * @param aWatcher A pointer to CMsgErrorWatcherPrivate
       
    63         */
       
    64         CMsgErrorStartupObserver( CMsgErrorWatcherPrivate& aWatcher );
       
    65 
       
    66     private:
       
    67 
       
    68         /**
       
    69         * From CActive
       
    70         */
       
    71         void DoCancel();
       
    72 
       
    73         /**
       
    74         * From CActive
       
    75         */
       
    76         void RunL();
       
    77 
       
    78     private:    // Data
       
    79 
       
    80         CMsgErrorWatcherPrivate&   iWatcher;
       
    81         RProperty iStartupProperty;
       
    82 
       
    83     };
       
    84 
       
    85 #endif      // __MSGERRORSTARTUPOBSERVER_H
       
    86             
       
    87 // End of File