emailservices/emailserver/inc/FsEmailGlobalDialogsAppUi.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 12 Mar 2010 15:41:14 +0200
branchRCL_3
changeset 12 f5907b1a1053
parent 0 8466d47a6819
permissions -rw-r--r--
Revision: 201007 Kit: 201008

/*
* 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