phonebookui/Phonebook2/Commands/inc/CPbk2CommandFactory.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:  Creates Phonebook 2 command objects.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPBK2COMMANDFACTORY_H
       
    20 #define CPBK2COMMANDFACTORY_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "MPbk2CommandFactory.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class MPbk2ContactUiControl;
       
    28 class CPbk2UIExtensionManager;
       
    29 
       
    30 //  CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  * Factory to create Phonebook 2 command objects.
       
    34  */
       
    35 NONSHARABLE_CLASS(CPbk2CommandFactory) :
       
    36         public CBase,
       
    37         public MPbk2CommandFactory
       
    38     {
       
    39     public: // Constructor and destructor
       
    40         /**
       
    41          * Static constructor.
       
    42          *
       
    43          * @return A new instance of this class.
       
    44          */
       
    45         static CPbk2CommandFactory* NewL();
       
    46 
       
    47         /**
       
    48          * Destructor.
       
    49          */
       
    50         ~CPbk2CommandFactory();
       
    51 
       
    52     public: // From MPbk2CommandFactory
       
    53         MPbk2Command* CreateCommandForIdL(
       
    54                 TPbk2CommandId aCommandId,
       
    55                 MPbk2ContactUiControl& aUiControl) const;
       
    56 
       
    57     public: // Command creation functions
       
    58         MPbk2Command* CreateSetToneCommandL(
       
    59             MPbk2ContactUiControl& aUiControl) const;
       
    60         MPbk2Command* CreateActivateCntInfoViewCommandL(
       
    61             MPbk2ContactUiControl& aUiControl) const;
       
    62             
       
    63     private: // Implementation
       
    64         CPbk2CommandFactory();
       
    65         void ConstructL();
       
    66 
       
    67     private: // Data
       
    68         /// Own: Extension manager
       
    69         CPbk2UIExtensionManager* iExtensionManager;
       
    70     };
       
    71 
       
    72 #endif // CPBK2COMMANDFACTORY_H
       
    73 
       
    74 // End of File