iaupdate/IAD/firmwareupdate/inc/iaupdatefwsyncappengine.h
changeset 77 d1838696558c
parent 0 ba25891c3a9e
--- a/iaupdate/IAD/firmwareupdate/inc/iaupdatefwsyncappengine.h	Tue Sep 28 14:48:39 2010 +0300
+++ b/iaupdate/IAD/firmwareupdate/inc/iaupdatefwsyncappengine.h	Thu Oct 14 14:11:30 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -31,6 +31,7 @@
 class CIAUpdateFWSyncHandler;
 class CIAUpdateFWSyncProfile;
 class CIAUpdateFWFotaModel;
+class MIAUpdateFWUpdateObserver;
 
 
 // CLASS DECLARATION
@@ -38,7 +39,7 @@
 * CIAUpdateFWSyncAppEngine
 * Sync engine for handling synchronization and profiles.
 */
-class CIAUpdateFWSyncAppEngine : public CBase
+NONSHARABLE_CLASS (CIAUpdateFWSyncAppEngine) : public CBase
     {
     public:  // Constructors and destructor
         
@@ -54,48 +55,16 @@
 
     public: // New functions
         
-        /**
-        * Delete profile
-        * @param aProfileId Profile to be deleted.
-        * @return None
-        */
-        void DeleteProfileL( TInt aProfileId );
-
-        /**
-        * Create profile
-        * @param None.
-        * @return None
-        */
-        TInt CreateProfileL();
-
-        /**
-        * Create copy profile
-        * @param aProfileId Profile that is used for copying
-        * @return None
-        */
-        CIAUpdateFWSyncProfile* CreateCopyProfileL( TInt aProfileId );
-
+        void SetObserver( MIAUpdateFWUpdateObserver* aObserver );
+ 
         /**
         * Return current profile
         * @param None.
         * @return CIAUpdateFWSyncProfile*
         */
         CIAUpdateFWSyncProfile* Profile( );
-
-        /**
-        * Cancel synchronization
-        * @param None.
-        * @return None
-        */
-        void CancelSyncL();
-        
-        /**
-        * Return RSyncMLSession
-        * @param None.
-        * @return RSyncMLSession*
-        */
-        RSyncMLSession* Session();
-        
+         
+         
         /**
         * Open profile
         * @param aProfileId Profile id to open
@@ -121,53 +90,9 @@
                            const TInt aProfileId,
                            const TInt aConnectionBearer,
                            const TBool aUseFotaProgressNote);
-        
-        /**
-        * Start synchronization
-        * @param aProfileId Profile id to sync
-        * @param aJobId Jod id to sync
-        * @return None
-        */         
-        void SynchronizeL( TDesC& aServerName,
-                           const TInt aProfileId,
-                           const TInt aJobId,
-                           const TInt aConnectionBearer,
-                           const TBool aUseFotaProgressNote );
-        
-        /**
-        * Check if duplicate server id is found
-        * @param  aServerId Server id
-        * @param  aProfileId current profile id
-        * @return ETrue if server id found
-        */                 
-        TBool ServerIdFoundL( const TDesC& aServerId, const TInt aProfileId );
-        
-		/**
-		* Compare two descriptors
-        * @param aLeft  
-		* @param aRight  
-		* @return - Positive, if this descriptor is 
-        *                     greater than the specified descriptor.
-		*           Negative, if this descriptor is
-		*                     less than the specified descriptor.
-		*           Zero, if the content of both descriptors match
-        */
-        TInt Compare( const TDesC& aLeft, const TDesC& aRight );
-        
-        /**
-        * Sync state
-        * @param None
-        * @return ETrue if sync is running
-        */          
-        TBool SyncRunning();
-        
-        /**
-        * Utility function.
-        * @param aSyncObserver
-        * @return None
-        */
-        //void RequestSyncStatus( MIAUpdateFWSyncObserver* aSyncObserver );
-		
+ 
+   
+       		
 	void SyncCompleted( TNSmlStatus aStatus );
 
         
@@ -191,8 +116,6 @@
         CIAUpdateFWSyncProfile*     iProfile;
         // Sync handler
         CIAUpdateFWSyncHandler*     iSyncHandler;
-        // Sync Observer
-        //MIAUpdateFWSyncObserver*    iSyncObserver;
     };
 
 #endif      // CIAUpdateFWSYNCAPPENGINE_H