phonebookui/Phonebook2/remotecontactlookup/contactactionservice/inc/MFscDialogEliminator.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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:  Generic dialog eliminator interface.
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MFSCDIALOGELIMINATOR_H
       
    20 #define MFSCDIALOGELIMINATOR_H
       
    21 
       
    22 // CLASS DECLARATION
       
    23 
       
    24 /**
       
    25  * Generic dialog eliminator interface.
       
    26  */
       
    27 class MFscDialogEliminator
       
    28     {
       
    29 public:
       
    30     // Interface
       
    31 
       
    32     /**
       
    33      * Tells the dialog exit is now approved and requests it to happen.
       
    34      * The exit is done with supplied command id.
       
    35      *
       
    36      * @param aCommandId    Exit command id.
       
    37      */
       
    38     virtual void RequestExitL(TInt aCommandId) = 0;
       
    39 
       
    40     /**
       
    41      * Tries to exit dialog nicely, but if that does not succeed
       
    42      * exits the dialog brute force.
       
    43      */
       
    44     virtual void ForceExit() = 0;
       
    45 
       
    46     /**
       
    47      * Reset eliminator pointer when dialog has destroyed.
       
    48      *
       
    49      * @param aSelfPtr  Pointer to this eliminator pointer.
       
    50      */
       
    51     virtual void ResetWhenDestroyed(MFscDialogEliminator** aSelfPtr) = 0;
       
    52 
       
    53     };
       
    54 
       
    55 #endif // MFSCDIALOGELIMINATOR_H
       
    56 // End of File