emailservices/emailserver/inc/emailservershutdownobserver.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     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 : Header definition for EmailServer shutdown observer
       
    15 * 
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef EMAILSERVERSHUTDOWNOBSERVER_H_
       
    20 #define EMAILSERVERSHUTDOWNOBSERVER_H_
       
    21 
       
    22 #include <e32base.h>        // CActive
       
    23 #include <e32property.h>    // RProperty
       
    24 
       
    25 // Forward declarations
       
    26 class CFsEmailGlobalDialogsAppUi;
       
    27 
       
    28 class CEmailServerShutdownObserver : public CActive
       
    29     {
       
    30 public:
       
    31     // Two phase constructor and destructor
       
    32     static CEmailServerShutdownObserver* NewL( CFsEmailGlobalDialogsAppUi& aAppUi );
       
    33     ~CEmailServerShutdownObserver();
       
    34 
       
    35 private:
       
    36     // Construction
       
    37     CEmailServerShutdownObserver( CFsEmailGlobalDialogsAppUi& aAppUi );
       
    38     void ConstructL();
       
    39 
       
    40     // From base class CActive
       
    41     void RunL();
       
    42     void DoCancel();
       
    43 
       
    44 private:
       
    45     /**
       
    46      * AppUi class.
       
    47      * Not Owned.
       
    48      */
       
    49     CFsEmailGlobalDialogsAppUi& iAppUi;
       
    50 
       
    51     /**
       
    52      * Publish & Subscribe property to be observed.
       
    53      */
       
    54     RProperty iProperty;
       
    55     };
       
    56 
       
    57 
       
    58 #endif /*EMAILSERVERSHUTDOWNOBSERVER_H_*/