omadm/lawmo/lawmoplugins/calllogsplugin/src/calllogsplugin.cpp
branchRCL_3
changeset 70 5d5344402085
parent 65 450d1facd418
child 73 5042b6604f6f
equal deleted inserted replaced
65:450d1facd418 70:5d5344402085
     1 /*
       
     2 * Copyright (c) 2009 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: Call logs plug-in for LAWMO
       
    15 *
       
    16 */
       
    17 
       
    18 #include <e32base.h>
       
    19 #include "lawmocalllogsasyncwipe.h"
       
    20 #include "calllogsplugin.h"
       
    21 #include "fdebug.h"
       
    22 
       
    23 // Construction and destruction functions
       
    24 
       
    25 // ----------------------------------------------------------------------------------------
       
    26 // CLAWMOCallLogsPlugin::NewL
       
    27 // ----------------------------------------------------------------------------------------
       
    28 CLAWMOCallLogsPlugin* CLAWMOCallLogsPlugin::NewL(MLawmoPluginWipeObserver* aObserver)
       
    29 	{
       
    30         FLOG(_L( "CLAWMOCallLogsPlugin::NewL(MLawmoPluginWipeObserver* aObserver) >>"));
       
    31         CLAWMOCallLogsPlugin* self = new(ELeave) CLAWMOCallLogsPlugin();  
       
    32 		CleanupStack::PushL(self);
       
    33 		self->ConstructL(aObserver); 
       
    34 		CleanupStack::Pop();
       
    35         FLOG(_L( "CLAWMOCallLogsPlugin::NewL(MLawmoPluginWipeObserver* aObserver) <<"));
       
    36 		return self;
       
    37 	}
       
    38 
       
    39 // ----------------------------------------------------------------------------------------
       
    40 // CLAWMOCallLogsPlugin::~CLAWMOCallLogsPlugin
       
    41 // ----------------------------------------------------------------------------------------
       
    42 CLAWMOCallLogsPlugin::~CLAWMOCallLogsPlugin()
       
    43 	{
       
    44         FLOG(_L( "CLAWMOCallLogsPlugin::~CLAWMOCallLogsPlugin() >>"));
       
    45         if(iAsyncOp)
       
    46         	delete iAsyncOp;
       
    47         FLOG(_L( "CLAWMOCallLogsPlugin::~CLAWMOCallLogsPlugin() <<"));
       
    48 	}
       
    49 
       
    50 // ----------------------------------------------------------------------------------------
       
    51 // CLAWMOCallLogsPlugin::CLAWMOCallLogsPlugin
       
    52 // ----------------------------------------------------------------------------------------
       
    53 CLAWMOCallLogsPlugin::CLAWMOCallLogsPlugin() 
       
    54 	{
       
    55         FLOG(_L( "CLAWMOCallLogsPlugin  >>"));
       
    56         // See ConstructL() for initialisation completion.
       
    57         FLOG(_L( "CLAWMOCallLogsPlugin <<"));
       
    58 	}
       
    59 
       
    60 // ----------------------------------------------------------------------------------------
       
    61 // CLAWMOCallLogsPlugin::ConstructL
       
    62 // ----------------------------------------------------------------------------------------
       
    63 void CLAWMOCallLogsPlugin::ConstructL(MLawmoPluginWipeObserver* aObserver)
       
    64     {
       
    65         FLOG(_L( "CLAWMOCallLogsPlugin ConstructL >>"));
       
    66         iAsyncOp = CActiveWipeObject::NewL(aObserver);
       
    67         FLOG(_L( "CLAWMOCallLogsPlugin ConstructL <<"));	
       
    68     }
       
    69 
       
    70 // Implementation of CLAWMOPluginInterface
       
    71 
       
    72 // ----------------------------------------------------------------------------------------
       
    73 // CLAWMOCallLogsPlugin::WipeL
       
    74 // Wipes the Contacts.
       
    75 // ----------------------------------------------------------------------------------------
       
    76 
       
    77 void CLAWMOCallLogsPlugin::WipeL ()
       
    78     {
       
    79         FLOG(_L(" void CLAWMOCallLogsPlugin::WipeL (TInt aCategory) >>"));
       
    80         //FLOG(_L("Calling async wipe"))
       
    81         iAsyncOp->WipeAsyncL();    
       
    82         FLOG(_L(" void CLAWMOCallLogsPlugin::WipeL (TInt aCategory) <<"));
       
    83     }