messagingappbase/msgeditor/appuiinc/MsgEditorShutter.h
branchRCL_3
changeset 60 7fdbb852d323
parent 0 72b543305e3a
equal deleted inserted replaced
57:ebe688cedc25 60:7fdbb852d323
       
     1 /*
       
     2 * Copyright (c) 2005 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 *     CMsgEditorShutter declaration file
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __MSGEDITORSHUTTER_H
       
    22 #define __MSGEDITORSHUTTER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <e32property.h>
       
    27 #include <MsgEditorDocument.h>  
       
    28 // FORWARD DECLARATIONS
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 * CMsgEditorShutter
       
    34 *
       
    35 * Utility to listen Messaging editor PubSub property.
       
    36 * Initialises application shutdown if somebody forces 
       
    37 * open editor count to 0
       
    38 *
       
    39 * @lib MsgEditorAppUi.dll
       
    40 * @since 3.0
       
    41 */
       
    42 NONSHARABLE_CLASS( CMsgEditorShutter ) : public CActive
       
    43     {
       
    44     public:  // Constructors and destructor
       
    45         
       
    46         /**
       
    47         * Two-phased constructor.
       
    48         *
       
    49         */
       
    50         static CMsgEditorShutter* NewL(CMsgEditorDocument& aDoc);
       
    51         
       
    52         /**
       
    53         * Destructor.
       
    54         */
       
    55         virtual ~CMsgEditorShutter();
       
    56 
       
    57     private:
       
    58 
       
    59         /**
       
    60         * By default Symbian OS constructor is private.
       
    61         */
       
    62         void ConstructL();
       
    63 
       
    64         /**
       
    65         * Private C++ constructor.
       
    66         */
       
    67         CMsgEditorShutter(CMsgEditorDocument& aDoc);
       
    68 
       
    69     private:
       
    70 
       
    71         /**
       
    72         * From CActive
       
    73         */
       
    74         void DoCancel();
       
    75 
       
    76         /**
       
    77         * From CActive
       
    78         */
       
    79         void RunL();
       
    80 
       
    81     private:    // Data
       
    82 
       
    83         RProperty iOpenAppProperty;
       
    84         RProperty iOpenAppStandAloneProperty;
       
    85         CMsgEditorDocument& iDoc; 
       
    86     };
       
    87 
       
    88 #endif      // __MSGEDITORSHUTTER_H
       
    89             
       
    90 // End of File