connectivitymodules/SeCon/services/pcd/inc/sconpcd.h
changeset 40 b63e67867dcd
parent 19 2691f6aa1921
equal deleted inserted replaced
39:9905f7d46607 40:b63e67867dcd
     1 /*
     1 /*
     2 * Copyright (c) 2005-2008 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2005-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".
    21 
    21 
    22 // INCLUDES
    22 // INCLUDES
    23 
    23 
    24 #include <e32base.h>
    24 #include <e32base.h>
    25 #include <e32cons.h>
    25 #include <e32cons.h>
       
    26 #include <s32strm.h>
    26 
    27 
    27 #include "sconconmltask.h"
    28 #include "sconconmltask.h"
    28 
    29 
    29 class CSConInstallerQueue;
    30 class CSConInstallerQueue;
    30 class CSConBackupRestoreQueue;
    31 class CSConBackupRestoreQueue;
       
    32 class CSconSyncHandler;
    31 
    33 
    32 enum TSConLastConMLOperation
    34 enum TSConLastConMLOperation
    33     {
    35     {
    34     ENoTask = 0,
    36     ENoTask = 0,
    35     EPutTask,
    37     EPutTask,
    66         /**
    68         /**
    67          * Resets the module to the initial state
    69          * Resets the module to the initial state
    68          * @return none
    70          * @return none
    69          */
    71          */
    70         virtual void ResetPCD();
    72         virtual void ResetPCD();
       
    73         
       
    74         virtual void HandleGetSyncRequestL( const TDesC8& aRequest, RWriteStream& aResult, TInt aMaxObjectSize );
       
    75         virtual void HandlePutSyncRequestL( const TDesC8& aRequest, RReadStream& aResult );
    71     
    76     
    72     private:        
    77     private:        
    73         /**
    78         /**
    74          * Collects a status of a specified task / all tasks
    79          * Collects a status of a specified task / all tasks
    75          * @param aTask The number of the specified task
    80          * @param aTask The number of the specified task
   118          * Creates a reply for UpdateDeviceInfo task
   123          * Creates a reply for UpdateDeviceInfo task
   119          * @param aMaxObjectSize A max object size to be used
   124          * @param aMaxObjectSize A max object size to be used
   120          * @return none
   125          * @return none
   121          */
   126          */
   122         TInt UpdateDeviceInfoL( TInt aMaxObjectSize );
   127         TInt UpdateDeviceInfoL( TInt aMaxObjectSize );
   123         /**
       
   124          * Gets the current max object size
       
   125          * @param aClientObjectSize The object size of the client
       
   126          * @return the max object size
       
   127          */
       
   128         TInt GetMaxObjectSize( TInt aClientObjectSize ) const;
       
   129         
   128         
   130         /**
   129         /**
   131          * Stores a reply
   130          * Stores a reply
   132          * @param aReply The reply to be stored
   131          * @param aReply The reply to be stored
   133          * @return none
   132          * @return none
   148     private:
   147     private:
   149         CSConInstallerQueue*        iInstallerQueue;
   148         CSConInstallerQueue*        iInstallerQueue;
   150         CSConBackupRestoreQueue*    iBackupRestoreQueue;
   149         CSConBackupRestoreQueue*    iBackupRestoreQueue;
   151         CSConStatusReply*           iLatestReply;
   150         CSConStatusReply*           iLatestReply;
   152         TInt                        iTaskNumber;
   151         TInt                        iTaskNumber;
   153         TInt                        iMaxObjectSize;
       
   154         TSConLastConMLOperation     iLastOperation;
   152         TSConLastConMLOperation     iLastOperation;
   155         RFs                         iFs;
   153         RFs                         iFs;
       
   154         CSconSyncHandler*           iSyncHandler;
   156     }; 
   155     }; 
   157     
   156     
   158     IMPORT_C CSConPCD* CreateCSConPCDL();
   157     IMPORT_C CSConPCD* CreateCSConPCDL();
   159     typedef CSConPCD* (*TSConCreateCSConPCDFunc) (); 
   158     typedef CSConPCD* (*TSConCreateCSConPCDFunc) (); 
   160 
   159