connectivitymodules/SeCon/servers/syncserver/src/sconasynchandler.cpp
changeset 64 a62b67d1f67c
parent 40 b63e67867dcd
equal deleted inserted replaced
62:262aa4f075d6 64:a62b67d1f67c
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    40 
    40 
    41 // one store per computer, max store count.
    41 // one store per computer, max store count.
    42 const TInt KMaxStoresCount = 10;
    42 const TInt KMaxStoresCount = 10;
    43 
    43 
    44 const TInt KDefaultTimeOutInMicroSeconds = 30 * 1000000; // 30 seconds
    44 const TInt KDefaultTimeOutInMicroSeconds = 30 * 1000000; // 30 seconds
    45 const TInt KDeleteAllTimeOutInMicroSeconds = 300 * 1000000; // 5 minutes
    45 const TInt KDeleteAllTimeOutInMicroSeconds = 540 * 1000000; // 9 minutes
    46 const TInt KOpenStoreTimeOutInMicroSeconds = 180 * 1000000; // 180 seconds
    46 const TInt KOpenStoreTimeOutInMicroSeconds = 540 * 1000000; //  9 minutes
       
    47 const TInt KResetChangeInfoTimeOutInMicroSeconds = 540 * 1000000; // 9 minutes
    47 
    48 
    48 CSconAsyncHandler::~CSconAsyncHandler()
    49 CSconAsyncHandler::~CSconAsyncHandler()
    49     {
    50     {
    50     TRACE_FUNC_ENTRY;
    51     TRACE_FUNC_ENTRY;
    51     Cancel();
    52     Cancel();
   178             break;
   179             break;
   179         case EMovedItems:
   180         case EMovedItems:
   180             MovedItemsL();
   181             MovedItemsL();
   181             break;
   182             break;
   182         case EResetChangeInfo:
   183         case EResetChangeInfo:
       
   184             iTimeOut->Start( KResetChangeInfoTimeOutInMicroSeconds );
   183             ResetChangeInfoL();
   185             ResetChangeInfoL();
   184             break;
   186             break;
   185         case ECommitChangeInfo:
   187         case ECommitChangeInfo:
   186             CommitChangeInfoL();
   188             CommitChangeInfoL();
   187             break;
   189             break;