phonebookui/Phonebook2/Commands/inc/CPbk2SindInfoViewCmd.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 SIND InfoView AIW interest item.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPBK2SINDINFOVIEWCMD_H
       
    20 #define CPBK2SINDINFOVIEWCMD_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <MPbk2Command.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CAiwServiceHandler;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32  * Phonebook 2 SIND InfoView command object.
       
    33  */
       
    34 NONSHARABLE_CLASS(CPbk2SindInfoViewCmd) :
       
    35         public CBase,
       
    36         public MPbk2Command
       
    37     {
       
    38     public: // Constructor and destructor
       
    39 
       
    40 		/**
       
    41          * Creates a new instance of this class.
       
    42          *      
       
    43          * @param aCommandId command id
       
    44          * @param aServiceHandler service handler
       
    45          * @return a new instance of this class.
       
    46          */
       
    47 		static CPbk2SindInfoViewCmd* NewL(
       
    48             TInt aCommandId,
       
    49             CAiwServiceHandler& aServiceHandler );
       
    50 
       
    51         /**
       
    52          * Destructor.
       
    53          */
       
    54         ~CPbk2SindInfoViewCmd();
       
    55 
       
    56     public:  // From MPbk2Command
       
    57         void ExecuteLD();
       
    58         void ResetUiControl(
       
    59                 MPbk2ContactUiControl& aUiControl );
       
    60         void AddObserver(
       
    61                 MPbk2CommandObserver& aObserver );
       
    62    
       
    63     public:
       
    64 	    /**
       
    65 	    * Sets packed contact link array
       
    66 	    *
       
    67 	    * @param aPackedLinkArray Packed contact link array for AIW transfer.
       
    68 	    *        Array consists of the link for the contact whose SIND info
       
    69 	    *        view is to be shown. Takes ownership of aPackedLinkArray.
       
    70 	    */    
       
    71         void SetPackedLinkArray( TDesC8* aPackedLinkArray );
       
    72 
       
    73     private:  // Implementation
       
    74         CPbk2SindInfoViewCmd(            
       
    75             TInt aCommandId,
       
    76             CAiwServiceHandler& aServiceHandler );
       
    77 
       
    78     private:  // Data       
       
    79         /// Own: command id
       
    80         TInt iCommandId;
       
    81         /// Ref: AIW service handler
       
    82         CAiwServiceHandler& iServiceHandler;
       
    83         /// Own: Packed link
       
    84         TDesC8* iPackedLinkArray;
       
    85     };
       
    86 
       
    87 #endif // CPBK2SINDINFOVIEWCMD_H
       
    88 
       
    89 // End of File