emailservices/emailserver/inc/FsEmailGlobalDialogsAppUi.h
branchRCL_3
changeset 64 3533d4323edc
equal deleted inserted replaced
63:d189ee25cf9d 64:3533d4323edc
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Declaration of FSMailServer global dialogs app ui
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_FSEMAILGLOBALDIALOGSAPPUI_H
       
    20 #define C_FSEMAILGLOBALDIALOGSAPPUI_H
       
    21 
       
    22 #include <aknappui.h>
       
    23 
       
    24 class CFSNotificationHandlerMgr;
       
    25 class CEmailServerShutdownObserver;
       
    26 
       
    27 /**
       
    28  *  Application UI class for FSMailServer.
       
    29  *  Needed to be able to show Avkon dialogs from FSMailServer.
       
    30  */
       
    31 class CFsEmailGlobalDialogsAppUi : public CAknAppUi
       
    32     {
       
    33 public:
       
    34     CFsEmailGlobalDialogsAppUi();
       
    35     ~CFsEmailGlobalDialogsAppUi();
       
    36     void ConstructL();
       
    37     
       
    38     void SendToBackground();
       
    39     void BringToForeground();
       
    40 
       
    41 public:    // From base class CAknAppUi
       
    42     void HandleWsEventL( const TWsEvent& aEvent, CCoeControl* aDestination );
       
    43     void HandleForegroundEventL(TBool aForeground);
       
    44     void Exit();
       
    45 
       
    46 private:
       
    47 
       
    48 #ifdef _DEBUG
       
    49     void EnsureDebugDirExists();
       
    50 #endif
       
    51     
       
    52 private:
       
    53 
       
    54     /**
       
    55      * Notification handler manager.
       
    56      * Own.
       
    57      */
       
    58     CFSNotificationHandlerMgr* iNotificationHandlerMgr;
       
    59 
       
    60     /**
       
    61      * Shutdown watcher.
       
    62      * Own.
       
    63      */
       
    64     CEmailServerShutdownObserver* iShutdownObserver;
       
    65     
       
    66     TBool iForeground;
       
    67     
       
    68     TBool iForegroundNotTopmost;
       
    69     };
       
    70 
       
    71 
       
    72 #endif // C_FSEMAILGLOBALDIALOGSAPPUI_H
       
    73 
       
    74 // End of File