ximpfw/presence/srcpresenceoperations/operationlaunchcleaner.cpp
changeset 51 61fad867f68e
equal deleted inserted replaced
-1:000000000000 51:61fad867f68e
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Internal operation for launching cleaner
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #include "operationlaunchcleaner.h"
       
    20 #include "protocolpresencedatahostimp.h"
       
    21 #include "presencedatacacheimp.h"
       
    22 #include "ximphost.h"
       
    23 
       
    24 #include "ximptrace.h"
       
    25 
       
    26 // ============================ MEMBER FUNCTIONS =============================
       
    27 
       
    28 // ---------------------------------------------------------------------------
       
    29 // COperationLaunchCleaner::COperationLaunchCleaner()
       
    30 // ---------------------------------------------------------------------------
       
    31 //
       
    32 EXPORT_C COperationLaunchCleaner::COperationLaunchCleaner()
       
    33     {
       
    34     }
       
    35 
       
    36 
       
    37 
       
    38 // ---------------------------------------------------------------------------
       
    39 // COperationLaunchCleaner::~COperationLaunchCleaner()
       
    40 // ---------------------------------------------------------------------------
       
    41 //
       
    42 COperationLaunchCleaner::~COperationLaunchCleaner()
       
    43     {
       
    44     }
       
    45 
       
    46 // ---------------------------------------------------------------------------
       
    47 // COperationLaunchCleaner::ConstructL()
       
    48 // ---------------------------------------------------------------------------
       
    49 //
       
    50 void COperationLaunchCleaner::ConstructL( const TDesC8& /*aParamPck*/ )
       
    51     {
       
    52     }
       
    53 
       
    54 // ---------------------------------------------------------------------------
       
    55 // COperationLaunchCleaner::ProcessL()
       
    56 // ---------------------------------------------------------------------------
       
    57 //
       
    58 void COperationLaunchCleaner::ProcessL()
       
    59     {
       
    60     TRACE(_L("COperationLaunchCleaner::ProcessL()" ) );
       
    61     CXIMPOperationBase::ProcessL();
       
    62 
       
    63     iMyHost->PresenceDataAccess().PresenceDataCache().CleanExpired();
       
    64 
       
    65     iMyHost->HandleInternalRequestCompleted( iReqId, KErrNone );
       
    66     }
       
    67 
       
    68 // ---------------------------------------------------------------------------
       
    69 // COperationLaunchCleaner::RequestCompleted()
       
    70 // ---------------------------------------------------------------------------
       
    71 //
       
    72 void COperationLaunchCleaner::RequestCompletedL()
       
    73     {
       
    74     TRACE(_L("COperationLaunchCleaner::RequestCompletedL()" ) );
       
    75     CXIMPOperationBase::RequestCompletedL();
       
    76     }
       
    77 
       
    78 
       
    79 // ---------------------------------------------------------------------------
       
    80 // COperationLaunchCleaner::Type()
       
    81 // ---------------------------------------------------------------------------
       
    82 //
       
    83 TInt
       
    84     COperationLaunchCleaner::Type() const
       
    85     {
       
    86     return NPresenceOps::EXIMPCleaner;
       
    87     }
       
    88 
       
    89 // ---------------------------------------------------------------------------
       
    90 // COperationLaunchCleaner::EndOperation()
       
    91 // ---------------------------------------------------------------------------
       
    92 //
       
    93 void COperationLaunchCleaner::EndOperation()
       
    94     {
       
    95     CXIMPOperationBase::EndOperation();
       
    96     iMyHost->StartCleanerTimer();
       
    97     }
       
    98 
       
    99 
       
   100 // End of file