diff -r ebe688cedc25 -r 7fdbb852d323 messagingappbase/msgeditor/appuiinc/MsgEditorShutter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingappbase/msgeditor/appuiinc/MsgEditorShutter.h Wed Sep 01 12:31:54 2010 +0100 @@ -0,0 +1,90 @@ +/* +* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* CMsgEditorShutter declaration file +* +*/ + + + +#ifndef __MSGEDITORSHUTTER_H +#define __MSGEDITORSHUTTER_H + +// INCLUDES +#include +#include +#include +// FORWARD DECLARATIONS + +// CLASS DECLARATION + +/** +* CMsgEditorShutter +* +* Utility to listen Messaging editor PubSub property. +* Initialises application shutdown if somebody forces +* open editor count to 0 +* +* @lib MsgEditorAppUi.dll +* @since 3.0 +*/ +NONSHARABLE_CLASS( CMsgEditorShutter ) : public CActive + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + * + */ + static CMsgEditorShutter* NewL(CMsgEditorDocument& aDoc); + + /** + * Destructor. + */ + virtual ~CMsgEditorShutter(); + + private: + + /** + * By default Symbian OS constructor is private. + */ + void ConstructL(); + + /** + * Private C++ constructor. + */ + CMsgEditorShutter(CMsgEditorDocument& aDoc); + + private: + + /** + * From CActive + */ + void DoCancel(); + + /** + * From CActive + */ + void RunL(); + + private: // Data + + RProperty iOpenAppProperty; + RProperty iOpenAppStandAloneProperty; + CMsgEditorDocument& iDoc; + }; + +#endif // __MSGEDITORSHUTTER_H + +// End of File