phonebookui/Phonebook2/Commands/src/CPbk2OviSyncCmd.cpp
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 OviSync command object.
       
    15 *
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include "CPbk2OviSyncCmd.h"
       
    20 
       
    21 // System includes
       
    22 #include <AiwServiceHandler.h>
       
    23 #include <AiwGenericParam.hrh>
       
    24 
       
    25 // Debugging headers
       
    26 #include <Pbk2Debug.h>
       
    27 
       
    28 // --------------------------------------------------------------------------
       
    29 // CPbk2OviSyncCmd::CPbk2OviSyncCmd
       
    30 // --------------------------------------------------------------------------
       
    31 //
       
    32 CPbk2OviSyncCmd::CPbk2OviSyncCmd( 
       
    33         TInt aCommandId, 
       
    34         CAiwServiceHandler& aServiceHandler ) :
       
    35     iCommandId( aCommandId ),
       
    36     iServiceHandler( aServiceHandler )
       
    37     {
       
    38     PBK2_DEBUG_PRINT
       
    39         (PBK2_DEBUG_STRING("CPbk2OviSyncCmd::CPbk2OviSyncCmd(0x%x)"), this);
       
    40     }
       
    41 
       
    42 // --------------------------------------------------------------------------
       
    43 // CPbk2OviSyncCmd::~CPbk2OviSyncCmd
       
    44 // --------------------------------------------------------------------------
       
    45 //
       
    46 CPbk2OviSyncCmd::~CPbk2OviSyncCmd()
       
    47     {
       
    48     PBK2_DEBUG_PRINT
       
    49         (PBK2_DEBUG_STRING("CPbk2OviSyncCmd::~CPbk2OviSyncCmd(0x%x)"), this);
       
    50     }
       
    51 
       
    52 // --------------------------------------------------------------------------
       
    53 // CPbk2OviSyncCmd::NewL
       
    54 // --------------------------------------------------------------------------
       
    55 //
       
    56 CPbk2OviSyncCmd* CPbk2OviSyncCmd::NewL
       
    57         ( TInt aCommandId, CAiwServiceHandler& aServiceHandler )
       
    58     {
       
    59     CPbk2OviSyncCmd* self = new( ELeave ) CPbk2OviSyncCmd( 
       
    60             aCommandId, aServiceHandler );
       
    61     return self;
       
    62     }
       
    63 
       
    64 // --------------------------------------------------------------------------
       
    65 // CPbk2OviSyncCmd::ExecuteLD
       
    66 // --------------------------------------------------------------------------
       
    67 //
       
    68 void CPbk2OviSyncCmd::ExecuteLD()
       
    69     {
       
    70     PBK2_DEBUG_PRINT
       
    71         (PBK2_DEBUG_STRING("CPbk2OviSyncCmd::ExecuteLD(0x%x)"), this);
       
    72 
       
    73     CleanupStack::PushL( this );
       
    74     
       
    75     // Relay the command to AIW for handling
       
    76     iServiceHandler.ExecuteServiceCmdL(
       
    77         iCommandId,
       
    78         iServiceHandler.InParamListL(),
       
    79         iServiceHandler.OutParamListL(),
       
    80         0,      // No options used.
       
    81         NULL);  // No need for callback
       
    82     
       
    83     // Destroy itself as promised
       
    84     CleanupStack::PopAndDestroy(); // this
       
    85     }
       
    86 
       
    87 // --------------------------------------------------------------------------
       
    88 // CPbk2OviSyncCmd::ResetUiControl
       
    89 // --------------------------------------------------------------------------
       
    90 //
       
    91 void CPbk2OviSyncCmd::ResetUiControl(
       
    92         MPbk2ContactUiControl& /*aUiControl*/)
       
    93     {
       
    94     // Do nothing
       
    95     }
       
    96 
       
    97 // --------------------------------------------------------------------------
       
    98 // CPbk2OviSyncCmd::AddObserver
       
    99 // --------------------------------------------------------------------------
       
   100 //
       
   101 void CPbk2OviSyncCmd::AddObserver( MPbk2CommandObserver& /*aObserver*/ )
       
   102     {
       
   103     // Do nothing
       
   104     }
       
   105 
       
   106 // End of File