phonebookui/Phonebook2/Commands/inc/cpbk2activatecntinfoviewcmd.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2005-2007 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:  Phonebook 2 change to contact info view command.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPBK2ACTIVATECNTINFOVIEWCMD_H
       
    20 #define CPBK2ACTIVATECNTINFOVIEWCMD_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <MPbk2Command.h>
       
    25 
       
    26 // FORWARD DECLARATION
       
    27 class MPbk2ViewExplorer;
       
    28 class MPbk2ContactUiControl;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  * Phonebook 2 change to contact info view command.
       
    34  */
       
    35 NONSHARABLE_CLASS(CPbk2ActivateCntInfoViewCmd) :
       
    36         public CBase,
       
    37         public MPbk2Command
       
    38     {
       
    39     public: // Construction and destruction
       
    40         /**
       
    41          * Creates a new instance of this class.
       
    42          *
       
    43          * @param aViewExplorer Pbk2 View explorer
       
    44          * @param aUiControl    UI control.
       
    45          * @param aAppView      Pbk2 application view
       
    46          * @param aViewId       Pbk2 view id
       
    47          * @return  A new instance of this class.
       
    48          */
       
    49         static CPbk2ActivateCntInfoViewCmd* NewL(
       
    50                             MPbk2ContactUiControl& aUiControl );
       
    51 
       
    52         /**
       
    53          * Destructor.
       
    54          */
       
    55         ~CPbk2ActivateCntInfoViewCmd();
       
    56 
       
    57     public: // From MPbk2Command
       
    58         void ExecuteLD();
       
    59         void AddObserver( MPbk2CommandObserver& aObserver );
       
    60         void ResetUiControl(MPbk2ContactUiControl& aUiControl);
       
    61 
       
    62     private: // Implementation
       
    63         CPbk2ActivateCntInfoViewCmd(
       
    64                 MPbk2ContactUiControl& aUiControl );
       
    65         void ConstructL();
       
    66                 
       
    67     private: // Data
       
    68         /// Ref: Phonebook 2 view explorer for view switching
       
    69         MPbk2ViewExplorer* iViewExplorer;        
       
    70         /// Ref: UI control
       
    71         MPbk2ContactUiControl* iControl;
       
    72         /// Ref: Command observer
       
    73         MPbk2CommandObserver* iCommandObserver;
       
    74     };
       
    75 
       
    76 #endif // CPBK2ACTIVATECNTINFOVIEWCMD_H
       
    77 
       
    78 // End of File