phonebookui/Phonebook/App/inc/CPbkPocCmd.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *      Poc command object.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __CPbkPocCmd_H__
       
    21 #define __CPbkPocCmd_H__
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <cntdef.h>
       
    26 #include <MPbkCommand.h>
       
    27 #include <MPbkBackgroundProcess.h>
       
    28 #include <AiwDialDataTypes.h>
       
    29 #include <AiwPoCParameters.h>
       
    30 
       
    31 
       
    32 // FORWARD DECLARATIONS
       
    33 class CAiwServiceHandler;
       
    34 class CAiwGenericParamList;
       
    35 class CPbkCallTypeSelector;
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40  * Poc command object.
       
    41  */
       
    42 class CPbkPocCmd :
       
    43         public CBase,
       
    44         public MPbkCommand,
       
    45         private MPbkProcessObserver
       
    46     {
       
    47     public: // Interface
       
    48 		/**
       
    49          * Static constructor.
       
    50          * @param aCommandId command id
       
    51          * @param aContacts the contacts to operate with
       
    52          * @param aControlFlags control's menu filtering flags
       
    53          * @param aServiceHandler service handler
       
    54          * @param aEngine reference to Phonebook engine
       
    55          * @param aSelector reference to call type selector
       
    56          * @return a new call command object.
       
    57          */
       
    58 		static CPbkPocCmd* NewL (
       
    59             TInt aCommandId,
       
    60             const CContactIdArray& aContacts,
       
    61             TUint aControlFlags,          
       
    62             CAiwServiceHandler& aServiceHandler,
       
    63             const CPbkCallTypeSelector& aSelector);
       
    64 
       
    65         /**
       
    66          * Destructor.
       
    67          */
       
    68         ~CPbkPocCmd();
       
    69 
       
    70     public:  // from MPbkCommand
       
    71         void ExecuteLD();
       
    72         
       
    73     public:  // from MPbkProcessObserver
       
    74         void ProcessFinished(MPbkBackgroundProcess& aProcess);
       
    75 
       
    76     private:  // Implementation
       
    77         CPbkPocCmd (
       
    78             TInt aCommandId,
       
    79             const CContactIdArray& aContacts,
       
    80             TUint aControlFlags,
       
    81             CAiwServiceHandler& aServiceHandler,
       
    82             const CPbkCallTypeSelector& aSelector);
       
    83 
       
    84     private:  // Data
       
    85         /// Own: command id
       
    86         TInt iCommandId;
       
    87         /// Ref: AIW service handler
       
    88         CAiwServiceHandler& iServiceHandler;
       
    89         /// Ref: the contacts to operate with
       
    90         const CContactIdArray& iContacts;
       
    91         /// Ref: reference to call type selector
       
    92         const CPbkCallTypeSelector& iSelector;
       
    93         /// Own: menu filtering flags
       
    94         TUint iFlags;
       
    95     };
       
    96 
       
    97 #endif // __CPbkPocCmd_H__
       
    98 
       
    99 // End of File