emailservices/emailserver/inc/FsEmailGlobalDialogsAppUi.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:28:57 +0100
branchRCL_3
changeset 64 3533d4323edc
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2008 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:  Declaration of FSMailServer global dialogs app ui
*
*/


#ifndef C_FSEMAILGLOBALDIALOGSAPPUI_H
#define C_FSEMAILGLOBALDIALOGSAPPUI_H

#include <aknappui.h>

class CFSNotificationHandlerMgr;
class CEmailServerShutdownObserver;

/**
 *  Application UI class for FSMailServer.
 *  Needed to be able to show Avkon dialogs from FSMailServer.
 */
class CFsEmailGlobalDialogsAppUi : public CAknAppUi
    {
public:
    CFsEmailGlobalDialogsAppUi();
    ~CFsEmailGlobalDialogsAppUi();
    void ConstructL();
    
    void SendToBackground();
    void BringToForeground();

public:    // From base class CAknAppUi
    void HandleWsEventL( const TWsEvent& aEvent, CCoeControl* aDestination );
    void HandleForegroundEventL(TBool aForeground);
    void Exit();

private:

#ifdef _DEBUG
    void EnsureDebugDirExists();
#endif
    
private:

    /**
     * Notification handler manager.
     * Own.
     */
    CFSNotificationHandlerMgr* iNotificationHandlerMgr;

    /**
     * Shutdown watcher.
     * Own.
     */
    CEmailServerShutdownObserver* iShutdownObserver;
    
    TBool iForeground;
    
    TBool iForegroundNotTopmost;
    };


#endif // C_FSEMAILGLOBALDIALOGSAPPUI_H

// End of File