connectivitymodules/SeCon/services/pcd/src/sconpcd.cpp
branchRCL_3
changeset 25 4f0867e42d62
parent 24 8e7494275d3a
child 26 3e6957da2ff8
equal deleted inserted replaced
24:8e7494275d3a 25:4f0867e42d62
     1 /*
       
     2 * Copyright (c) 2005-2010 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:  CSConPCD implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 
       
    21 #include "sconpcd.h"
       
    22 #include "sconpcdconsts.h"
       
    23 #include "sconinstqueue.h"
       
    24 #include "sconbrqueue.h"
       
    25 #include "sconmetadata.h"
       
    26 #include "sconsynchandler.h"
       
    27 #include "debug.h"
       
    28 
       
    29 const TInt KMaxObjectSize(65536); // informed to PC
       
    30 
       
    31 // ============================= MEMBER FUNCTIONS ===============================
       
    32 
       
    33 
       
    34 // -----------------------------------------------------------------------------
       
    35 // CreateCSConPCDL()
       
    36 // Entry to CSConPCD
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 EXPORT_C CSConPCD* CreateCSConPCDL()
       
    40     {
       
    41     TRACE_FUNC;
       
    42     return CSConPCD::NewL();
       
    43     }
       
    44     
       
    45 // -----------------------------------------------------------------------------
       
    46 // CSConPCD::NewL()
       
    47 // Two-phase constructor
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 CSConPCD* CSConPCD::NewL()
       
    51     {
       
    52     TRACE_FUNC_ENTRY;
       
    53     CSConPCD* self = new (ELeave) CSConPCD();
       
    54     CleanupStack::PushL( self );
       
    55     self->ConstructL();
       
    56     CleanupStack::Pop( self );
       
    57     TRACE_FUNC_EXIT;
       
    58     return self;
       
    59     }
       
    60     
       
    61 // -----------------------------------------------------------------------------
       
    62 // CSConPCD::CSConPCD()
       
    63 // Constructor
       
    64 // -----------------------------------------------------------------------------
       
    65 //
       
    66 CSConPCD::CSConPCD()
       
    67     {
       
    68     }
       
    69     
       
    70 // -----------------------------------------------------------------------------
       
    71 // CSConPCD::ConstructL()
       
    72 // Initializes member data
       
    73 // -----------------------------------------------------------------------------
       
    74 //
       
    75 void CSConPCD::ConstructL()
       
    76     {
       
    77     TRACE_FUNC_ENTRY;
       
    78     User::LeaveIfError( iFs.Connect() );
       
    79     if ( !CActiveScheduler::Current() )
       
    80         {
       
    81         CActiveScheduler* scheduler = new (ELeave) CActiveScheduler();
       
    82         CActiveScheduler::Install( scheduler );
       
    83         }
       
    84     
       
    85     iInstallerQueue = CSConInstallerQueue::NewL( iFs );
       
    86     iBackupRestoreQueue = CSConBackupRestoreQueue::NewL( iFs );
       
    87     iInstallerQueue->QueueAddress( iBackupRestoreQueue );
       
    88     iBackupRestoreQueue->QueueAddress( iInstallerQueue );
       
    89     
       
    90     iSyncHandler = CSconSyncHandler::NewL( iFs );
       
    91     TRACE_FUNC_EXIT;
       
    92     }
       
    93     
       
    94 // -----------------------------------------------------------------------------
       
    95 // CSConPCD::~CSConPCD()
       
    96 // Destructor
       
    97 // -----------------------------------------------------------------------------
       
    98 //
       
    99 CSConPCD::~CSConPCD()
       
   100     {
       
   101     TRACE_FUNC_ENTRY;
       
   102     delete iInstallerQueue;
       
   103     delete iBackupRestoreQueue;
       
   104     delete iLatestReply;
       
   105     delete iSyncHandler;
       
   106     iFs.Close();
       
   107     TRACE_FUNC_EXIT;
       
   108     }
       
   109     
       
   110 // -----------------------------------------------------------------------------
       
   111 // CSConPCD::PutTaskL( CSConTask* aTask )
       
   112 // Receives a new task
       
   113 // -----------------------------------------------------------------------------
       
   114 //
       
   115 TInt CSConPCD::PutTaskL( CSConTask*& aTask )
       
   116     {
       
   117     TRACE_FUNC_ENTRY;
       
   118     TInt ret( KErrNone );
       
   119     TInt maxObjectSize( 0 );
       
   120     
       
   121     if ( iLastOperation == EPutTask )
       
   122         {
       
   123         LOGGER_WRITE( "CSConPCD::PutTaskL() : Two Puts in a row -> Reset()" );
       
   124         ResetPCD();
       
   125         }
       
   126     else
       
   127         {
       
   128         LOGGER_WRITE( "CSConPCD::PutTaskL() : Protocol procedure ok" );
       
   129         iLastOperation = EPutTask;
       
   130         }
       
   131     
       
   132     switch( aTask->GetServiceId() )
       
   133         {
       
   134         case ECancel :
       
   135             ret = CancelL( aTask->iCancelTaskId, aTask->iCancelTaskAll );
       
   136             delete aTask;
       
   137             break;
       
   138         case EGetDataOwnerStatus :
       
   139             ret = SupportedBRTaskL( aTask );
       
   140             break;
       
   141         case EGetDataSize :
       
   142             ret = SupportedBRTaskL( aTask );
       
   143             break;
       
   144         case EGetStatus :
       
   145             ret = GetStatusL( aTask->iGetStatusParams->iTaskId, 
       
   146             		aTask->iGetStatusParams->iAll );
       
   147             delete aTask;
       
   148             break;
       
   149         case EInstall :
       
   150             ret = SupportedInstTaskL( aTask );
       
   151             break;
       
   152         case EListDataOwners :
       
   153             ret = SupportedBRTaskL( aTask );
       
   154             break;
       
   155         case EListInstalledApps :
       
   156             ret = SupportedInstTaskL( aTask );
       
   157             break;
       
   158         case EListPublicFiles :
       
   159             ret = SupportedBRTaskL( aTask );          
       
   160             break;
       
   161         case ERequestData :
       
   162             ret = SupportedBRTaskL( aTask );
       
   163             break;
       
   164         case ESetBURMode :
       
   165             ret = SupportedBRTaskL( aTask );
       
   166             break;
       
   167         case ESetInstParams :
       
   168             ret = SupportedInstTaskL( aTask );
       
   169             break;
       
   170         case ESupplyData :
       
   171             ret = SupportedBRTaskL( aTask );
       
   172             break;
       
   173         case EUninstall :
       
   174             ret = SupportedInstTaskL( aTask );
       
   175             break;
       
   176         case EUpdateDeviceInfo :
       
   177             maxObjectSize = aTask->iDevInfoParams->iMaxObjectSize;
       
   178             ret = UpdateDeviceInfoL( maxObjectSize );
       
   179             iTaskNumber++;
       
   180             delete aTask;
       
   181             break;
       
   182         case EReboot :
       
   183             RebootTaskL( aTask );
       
   184             delete aTask;
       
   185             break;
       
   186         case EGetMetadata :
       
   187         	ret = KErrNone;
       
   188             GetMetadataTaskL( *aTask );
       
   189             delete aTask;
       
   190             break;
       
   191         default :
       
   192             break;
       
   193         }
       
   194     LOGGER_WRITE_1( "CSConPCD::PutTaskL() : returned %d", ret );
       
   195     return ret;
       
   196     }
       
   197 
       
   198 // -----------------------------------------------------------------------------
       
   199 // CSConPCD::GetReply()
       
   200 // Returns a reply to previous PutTaskL operation
       
   201 // -----------------------------------------------------------------------------
       
   202 //
       
   203 CSConStatusReply* CSConPCD::GetReply()
       
   204     {
       
   205     TRACE_FUNC_ENTRY;
       
   206     
       
   207     if ( iLastOperation == EGetReply )
       
   208         {
       
   209         LOGGER_WRITE( "CSConPCD::GetReply() : Two Gets in a row -> Reset()" );
       
   210         ResetPCD();
       
   211         }
       
   212     else
       
   213         {
       
   214         LOGGER_WRITE( "CSConPCD::GetReply() : Protocol procedure ok" );
       
   215         iLastOperation = EGetReply;
       
   216         }
       
   217     CSConStatusReply* reply = iLatestReply;
       
   218     iLatestReply = NULL;
       
   219     TRACE_FUNC_EXIT;
       
   220     return reply;
       
   221     }
       
   222 
       
   223 // -----------------------------------------------------------------------------
       
   224 // CSConPCD::ResetPCD()
       
   225 // Resets the module to the initial state
       
   226 // -----------------------------------------------------------------------------
       
   227 //
       
   228 void CSConPCD::ResetPCD()
       
   229     {
       
   230     TRACE_FUNC_ENTRY;
       
   231     if ( iInstallerQueue )
       
   232         {
       
   233         LOGGER_WRITE( "CSConPCD::ResetPCD() : Reseting installer queue" );
       
   234         iInstallerQueue->Reset();
       
   235         }
       
   236         
       
   237     if ( iBackupRestoreQueue )
       
   238         {
       
   239         LOGGER_WRITE( "CSConPCD::ResetPCD() : Reseting backup queue" );
       
   240         iBackupRestoreQueue->Reset();
       
   241         }
       
   242     
       
   243     TRACE_FUNC_EXIT;
       
   244     }
       
   245 
       
   246 // -----------------------------------------------------------------------------
       
   247 // CSConPCD::HandleGetSyncRequestL()
       
   248 // 
       
   249 // -----------------------------------------------------------------------------
       
   250 //
       
   251 void CSConPCD::HandleGetSyncRequestL( const TDesC8& aRequest, RWriteStream& aResult, TInt aMaxObjectSize )
       
   252     {
       
   253     TRACE_FUNC_ENTRY;
       
   254     iSyncHandler->HandleGetSyncRequestL( aRequest, aResult, aMaxObjectSize );
       
   255     
       
   256     TRACE_FUNC_EXIT;
       
   257     }
       
   258 
       
   259 // -----------------------------------------------------------------------------
       
   260 // CSConPCD::HandlePutSyncRequestL()
       
   261 // 
       
   262 // -----------------------------------------------------------------------------
       
   263 //
       
   264 void CSConPCD::HandlePutSyncRequestL( const TDesC8& aRequest, RReadStream& aResult )
       
   265     {
       
   266     TRACE_FUNC_ENTRY;
       
   267     iSyncHandler->HandlePutSyncRequestL( aRequest, aResult );
       
   268     
       
   269     TRACE_FUNC_EXIT;
       
   270     }
       
   271 
       
   272 // -----------------------------------------------------------------------------
       
   273 // CSConPCD::SupportedInstTaskL( CSConTask* aTask )
       
   274 // Fills a reply with predefined supported task -information
       
   275 // -----------------------------------------------------------------------------
       
   276 //  
       
   277 TInt CSConPCD::SupportedInstTaskL( CSConTask* aTask )
       
   278     {
       
   279     TRACE_FUNC_ENTRY;
       
   280     TInt ret( KErrNone );
       
   281     iTaskNumber++;
       
   282     ret = iInstallerQueue->AddNewTask( aTask, iTaskNumber );
       
   283     
       
   284     //Get status for this task
       
   285     TBool all( EFalse );
       
   286     CSConStatusReply* reply = new (ELeave) CSConStatusReply();
       
   287     CleanupStack::PushL( reply );
       
   288     iInstallerQueue->GetQueueStatusL( iTaskNumber, all, reply );
       
   289     CleanupStack::Pop( reply );
       
   290     
       
   291     StoreReply( reply );    
       
   292         
       
   293     LOGGER_WRITE_1( "CSConPCD::SupportedInstTaskL() : returned %d", ret );
       
   294     return ret;
       
   295     }
       
   296 
       
   297 // -----------------------------------------------------------------------------
       
   298 // CSConPCD::SupportedBRTask( CSConTask* aTask )
       
   299 // Fills a reply with predefined supported task -information
       
   300 // -----------------------------------------------------------------------------
       
   301 //
       
   302 TInt CSConPCD::SupportedBRTaskL( CSConTask* aTask )
       
   303     {
       
   304     TRACE_FUNC_ENTRY;
       
   305     TInt ret( KErrNone );
       
   306     
       
   307     TInt taskId;
       
   308     
       
   309     taskId = ++iTaskNumber;
       
   310         
       
   311     ret = iBackupRestoreQueue->AddNewTask( aTask, taskId );
       
   312     LOGGER_WRITE_1( "iBackupRestoreQueue->AddNewTask : ret %d", ret );
       
   313     //Get status for this task
       
   314     TBool all( EFalse );
       
   315     CSConStatusReply* reply = new (ELeave) CSConStatusReply();
       
   316     CleanupStack::PushL( reply );
       
   317     iBackupRestoreQueue->GetQueueStatusL( iTaskNumber, all, reply );
       
   318     CleanupStack::Pop( reply );
       
   319     
       
   320     StoreReply( reply );    
       
   321     
       
   322     TRACE_FUNC_EXIT;
       
   323     return ret;
       
   324     }
       
   325 
       
   326 
       
   327 // -----------------------------------------------------------------------------
       
   328 // CSConPCD::RebootTask( const CSConTask* aTask )
       
   329 // Fills a reply with predefined unsupported task -information
       
   330 // -----------------------------------------------------------------------------
       
   331 //  
       
   332 TInt CSConPCD::RebootTaskL( const CSConTask* aTask )
       
   333     {
       
   334     TRACE_FUNC_ENTRY;
       
   335     TInt ret( KErrNotSupported );
       
   336     iTaskNumber++;
       
   337     TSConMethodName method( aTask->GetServiceId() );
       
   338     CSConStatusReply* reply = new (ELeave) CSConStatusReply();
       
   339     CleanupStack::PushL( reply );
       
   340     CSConTaskReply* taskReply = new (ELeave) CSConTaskReply();
       
   341     CleanupStack::PushL( taskReply );
       
   342     
       
   343     TBool complete( ETrue );
       
   344     taskReply->InitializeL( method, KSConCodeNotSupported, complete );
       
   345     taskReply->iTaskId = iTaskNumber;
       
   346     
       
   347     reply->iNoTasks = EFalse;
       
   348     User::LeaveIfError( reply->iTasks.Append( taskReply ) );
       
   349     CleanupStack::Pop( taskReply );
       
   350     
       
   351     StoreReply( reply );
       
   352     CleanupStack::Pop( reply );
       
   353         
       
   354     LOGGER_WRITE_1( "CSConPCD::RebootTask() : returned %d", ret );
       
   355     return ret;
       
   356     }
       
   357 
       
   358 // -----------------------------------------------------------------------------
       
   359 // CSConPCD::GetMetadataTask( const CSConTask* aTask )
       
   360 // Fills a reply with predefined GetMetadata task -information
       
   361 // -----------------------------------------------------------------------------
       
   362 //
       
   363 void CSConPCD::GetMetadataTaskL( CSConTask& aTask )
       
   364     {
       
   365     TRACE_FUNC_ENTRY;
       
   366     
       
   367     aTask.iTaskId = ++iTaskNumber;
       
   368     
       
   369     //Set progress value "task accepted for execution"
       
   370     aTask.SetProgressValue( KSConCodeTaskCreated );
       
   371     aTask.SetCompleteValue( EFalse );
       
   372     
       
   373     SConMetadata::ProcessTask( aTask, iFs );
       
   374     
       
   375     //Get status for this task
       
   376  
       
   377     CSConStatusReply* reply = new (ELeave) CSConStatusReply();
       
   378     CleanupStack::PushL( reply );
       
   379     CSConTaskReply* taskReply = new (ELeave) CSConTaskReply();
       
   380     CleanupStack::PushL( taskReply );
       
   381     taskReply->InitializeL( aTask );
       
   382     User::LeaveIfError( reply->iTasks.Append( taskReply ) );
       
   383     CleanupStack::Pop( taskReply );
       
   384     
       
   385     if ( !aTask.GetComplete() )
       
   386         {
       
   387         // clean all unneccessary data from the reply packet
       
   388         taskReply->CleanTaskData();
       
   389         }
       
   390     
       
   391     
       
   392     StoreReply( reply );
       
   393     CleanupStack::Pop( reply ); 
       
   394  
       
   395     TRACE_FUNC_EXIT;
       
   396     }
       
   397 
       
   398 // -----------------------------------------------------------------------------
       
   399 // CSConPCD::GetStatus( TInt aTask, TBool aAll )
       
   400 // Collects a status of a specified task / all tasks
       
   401 // -----------------------------------------------------------------------------
       
   402 //
       
   403 TInt CSConPCD::GetStatusL( TInt aTask, TBool aAll )
       
   404     {
       
   405     TRACE_FUNC_ENTRY;
       
   406     TInt ret( KErrNone );
       
   407     
       
   408     // create mergeReply object. Store installer and br replys here.
       
   409     CSConStatusReply* mergeReply = new (ELeave) CSConStatusReply();
       
   410     CleanupStack::PushL( mergeReply );
       
   411             
       
   412     
       
   413     CSConStatusReply* brReply = new (ELeave) CSConStatusReply();
       
   414     CleanupStack::PushL( brReply );
       
   415     iBackupRestoreQueue->GetQueueStatusL( aTask, aAll, brReply );
       
   416     
       
   417     
       
   418     // Create installerReply and populate it
       
   419     CSConStatusReply* installerReply = new (ELeave) CSConStatusReply();
       
   420     CleanupStack::PushL( installerReply );
       
   421     iInstallerQueue->GetQueueStatusL( aTask, aAll, installerReply );
       
   422     
       
   423     if ( !installerReply->iNoTasks || !brReply->iNoTasks )
       
   424         {
       
   425         mergeReply->iNoTasks = EFalse;
       
   426         }
       
   427     else
       
   428         {
       
   429         mergeReply->iNoTasks = ETrue;
       
   430         }
       
   431         
       
   432     for ( TInt i = 0; i < installerReply->iTasks.Count(); i++ )
       
   433         {
       
   434         CSConTaskReply* temp = installerReply->iTasks[i]->CopyAndFreeL();
       
   435         CleanupStack::PushL( temp );
       
   436         mergeReply->iTasks.AppendL( temp );
       
   437         CleanupStack::Pop( temp );
       
   438         }
       
   439     
       
   440     // installer replys are copied to mergereply, delete installerReply
       
   441     CleanupStack::PopAndDestroy( installerReply );
       
   442     
       
   443     // do same for br reply
       
   444     for ( TInt i = 0; i < brReply->iTasks.Count(); i++ )
       
   445         {
       
   446         CSConTaskReply* temp = brReply->iTasks[i]->CopyAndFreeL();
       
   447         CleanupStack::PushL( temp );
       
   448         mergeReply->iTasks.AppendL( temp );
       
   449         CleanupStack::Pop( temp );
       
   450         }
       
   451     
       
   452     CleanupStack::PopAndDestroy( brReply );
       
   453     
       
   454     CleanupStack::Pop( mergeReply );
       
   455     // store reply
       
   456     StoreReply( mergeReply );
       
   457     
       
   458     LOGGER_WRITE_1( "CSConPCD::GetStatus() : returned %d", ret );
       
   459     return ret;
       
   460     }
       
   461         
       
   462 // -----------------------------------------------------------------------------
       
   463 // CSConPCD::Cancel( TInt aTask, TBool aAll )
       
   464 // Cancels a specified task / all tasks
       
   465 // -----------------------------------------------------------------------------
       
   466 //
       
   467 TInt CSConPCD::CancelL( TInt aTask, TBool aAll )
       
   468     {
       
   469     TRACE_FUNC_ENTRY;
       
   470     TInt ret( KErrNone );
       
   471     
       
   472     CSConStatusReply* reply = new (ELeave) CSConStatusReply();
       
   473     iInstallerQueue->CancelTask( aTask, aAll );
       
   474     iBackupRestoreQueue->CancelTask( aTask, aAll );
       
   475     
       
   476     reply->iNoTasks = ETrue;
       
   477     
       
   478     StoreReply( reply );
       
   479     
       
   480     LOGGER_WRITE_1( "CSConPCD::CancelL() : returned %d", ret );
       
   481     return ret;
       
   482     }
       
   483 
       
   484 // -----------------------------------------------------------------------------
       
   485 // CSConPCD::StoreReply( CSConStatusReply*& aReply )
       
   486 // Stores a reply
       
   487 // -----------------------------------------------------------------------------
       
   488 //
       
   489 void CSConPCD::StoreReply( CSConStatusReply*& aReply )  
       
   490     {
       
   491     TRACE_FUNC_ENTRY;
       
   492     if ( iLatestReply )
       
   493         {
       
   494         delete iLatestReply;
       
   495         iLatestReply = NULL;
       
   496         }
       
   497         
       
   498     iLatestReply = aReply;
       
   499     TRACE_FUNC_EXIT;
       
   500     }
       
   501 
       
   502 // -----------------------------------------------------------------------------
       
   503 // CSConPCD::UpdateDeviceInfo( TInt aMaxObjectSize )
       
   504 // Creates a reply for UpdateDeviceInfo task
       
   505 // -----------------------------------------------------------------------------
       
   506 //
       
   507 TInt CSConPCD::UpdateDeviceInfoL( TInt aMaxObjectSize )
       
   508     {
       
   509     TRACE_FUNC_ENTRY;
       
   510     TInt ret( KErrNone );
       
   511     TSConMethodName method( EUpdateDeviceInfo );
       
   512     
       
   513     CSConStatusReply* reply = new (ELeave) CSConStatusReply();
       
   514     CleanupStack::PushL( reply );
       
   515     CSConTaskReply* taskReply = new (ELeave) CSConTaskReply();
       
   516     CleanupStack::PushL( taskReply );
       
   517     
       
   518     
       
   519     TBool complete( ETrue );
       
   520     TInt progress( KSConCodeTaskCompleted );
       
   521     
       
   522     taskReply->InitializeL( method, progress, complete );
       
   523     taskReply->iTaskId = iTaskNumber;
       
   524         
       
   525     TInt arrayLength = sizeof KSupportedMethods / sizeof KSupportedMethods[0];
       
   526     
       
   527     for ( TInt i = 0; i < arrayLength; i++ )
       
   528         {
       
   529         switch( KSupportedMethods[i].method )
       
   530             {
       
   531             case EGetDataSize :
       
   532                 taskReply->iDevInfoParams->iGetSizeSupp = 
       
   533                 KSupportedMethods[i].support;
       
   534                 break;
       
   535             case EInstall :
       
   536                 taskReply->iDevInfoParams->iInstallSupp = 
       
   537                 KSupportedMethods[i].support;
       
   538                 break;
       
   539             case EListDataOwners :
       
   540                 taskReply->iDevInfoParams->iDataOwnersSupp = 
       
   541                 KSupportedMethods[i].support;
       
   542                 break;
       
   543             case EListInstalledApps :
       
   544                 taskReply->iDevInfoParams->iInstAppsSupp = 
       
   545                 KSupportedMethods[i].support;
       
   546                 break;
       
   547             case ERequestData :
       
   548                 taskReply->iDevInfoParams->iReqDataSupp = 
       
   549                 KSupportedMethods[i].support;
       
   550                 break;
       
   551             case ESetBURMode :
       
   552                 taskReply->iDevInfoParams->iSetBURModeSupp = 
       
   553                 KSupportedMethods[i].support;
       
   554                 break;
       
   555             case ESetInstParams :
       
   556                 taskReply->iDevInfoParams->iInstParamsSupp = 
       
   557                 KSupportedMethods[i].support;
       
   558                 break;
       
   559             case ESupplyData :
       
   560                 taskReply->iDevInfoParams->iSupplyDataSupp = 
       
   561                 KSupportedMethods[i].support;
       
   562                 break;
       
   563             case EUninstall :
       
   564                 taskReply->iDevInfoParams->iUninstallSupp = 
       
   565                 KSupportedMethods[i].support;
       
   566                 break;
       
   567             case EReboot :
       
   568                 taskReply->iDevInfoParams->iRebootSupp = 
       
   569                 KSupportedMethods[i].support;
       
   570                 break;
       
   571             default :
       
   572                 break;
       
   573             }
       
   574         }
       
   575     
       
   576     taskReply->iDevInfoParams->iVersion.Copy( KConMLVersion );
       
   577     taskReply->iDevInfoParams->iMaxObjectSize = KMaxObjectSize;
       
   578     
       
   579     reply->iNoTasks = EFalse;
       
   580 
       
   581     User::LeaveIfError( reply->iTasks.Append( taskReply ) );
       
   582     StoreReply( reply );
       
   583     
       
   584     CleanupStack::Pop( taskReply );
       
   585     CleanupStack::Pop( reply );
       
   586     LOGGER_WRITE_1( "CSConPCD::UpdateDeviceInfo() : returned %d", ret );
       
   587     return ret;
       
   588     }
       
   589 
       
   590 // End of file