iaupdate/IAD/firmwareupdate/src/iaupdatefwsyncprofile.cpp
changeset 77 d1838696558c
parent 0 ba25891c3a9e
--- a/iaupdate/IAD/firmwareupdate/src/iaupdatefwsyncprofile.cpp	Tue Sep 28 14:48:39 2010 +0300
+++ b/iaupdate/IAD/firmwareupdate/src/iaupdatefwsyncprofile.cpp	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"
@@ -35,12 +35,12 @@
 // Two-phased constructor.
 // -----------------------------------------------------------------------------
 //
-CIAUpdateFWSyncProfile* CIAUpdateFWSyncProfile::NewLC( const TInt aApplicationId,
+CIAUpdateFWSyncProfile* CIAUpdateFWSyncProfile::NewLC( 
                                                RSyncMLSession* aSyncSession )
     {
     FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::NewLC()" );
     
-    CIAUpdateFWSyncProfile* self = new( ELeave ) CIAUpdateFWSyncProfile( aApplicationId,
+    CIAUpdateFWSyncProfile* self = new( ELeave ) CIAUpdateFWSyncProfile( 
                                                                  aSyncSession );
 	CleanupStack::PushL( self );
 	self->ConstructL();
@@ -53,12 +53,12 @@
 // Two-phased constructor.
 // -----------------------------------------------------------------------------
 //
- CIAUpdateFWSyncProfile* CIAUpdateFWSyncProfile::NewL( const TInt aApplicationId,
+ CIAUpdateFWSyncProfile* CIAUpdateFWSyncProfile::NewL( 
                                               RSyncMLSession* aSyncSession )
     {
     FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::NewL:" );
     
-    CIAUpdateFWSyncProfile* self = new( ELeave ) CIAUpdateFWSyncProfile( aApplicationId,
+    CIAUpdateFWSyncProfile* self = new( ELeave ) CIAUpdateFWSyncProfile( 
                                                                  aSyncSession );
 	CleanupStack::PushL( self );
 	self->ConstructL();
@@ -74,7 +74,6 @@
     {
     FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::~CIAUpdateFWSyncProfile:" );
     
-    iHistoryLog.Close();
     iConnection.Close();
     iProfile.Close();
     }
@@ -94,15 +93,13 @@
 // Constructor.
 // -----------------------------------------------------------------------------
 //
-CIAUpdateFWSyncProfile::CIAUpdateFWSyncProfile( const TInt aApplicationId,
+CIAUpdateFWSyncProfile::CIAUpdateFWSyncProfile( 
                                         RSyncMLSession* aSyncSession )
 	{
 	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::CIAUpdateFWSyncProfile:" );
 	
 	iSyncSession = aSyncSession;
-	iApplicationId = aApplicationId;
 	
-    iHistoryLogOpen = EFalse;
     iConnectionOpen = EFalse;
 	}
 
@@ -131,56 +128,7 @@
     FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::OpenL() completed" );
     }
 
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::CreateL
-// -----------------------------------------------------------------------------
-//
- TInt CIAUpdateFWSyncProfile::CreateL()
-    {
-    FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::CreateL()" );
-    
-    iProfile.CreateL( *iSyncSession );
-    iProfile.SetCreatorId( iApplicationId );
-    iProfile.UpdateL();
-    TInt id = iProfile.Identifier();
-    iProfile.Close();
 
-    FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::CreateL() completed" );
-    return id;
-    }
-
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::CreateCopyL
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::CreateCopyL( TInt aProfileId )
-    {
-    FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::CreateCopyL()" );
-    
-    iProfile.CreateL( *iSyncSession );
-    iProfile.SetCreatorId( iApplicationId );
-    iProfile.UpdateL();
-    if ( !iConnectionOpen )
-		{
-    	OpenConnection();
-		}
-	if ( !iHistoryLogOpen )
-		{
-	    OpenHistoryLog();
-		}
-
-    CIAUpdateFWSyncProfile* profile = 
-                CIAUpdateFWSyncProfile::NewL( KIAUpdateUiUid, iSyncSession );
-    CleanupStack::PushL( profile );
-    profile->OpenL( aProfileId, ESmlOpenRead );
-    CopyValuesL( profile );
-    CleanupStack::PopAndDestroy( profile );
-    profile  = NULL;
-
-    iProfile.UpdateL();
-    CloseHistoryLog();
-    FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::CreateCopyL() completed" );
-    }
 
 // -----------------------------------------------------------------------------
 // CIAUpdateFWSyncProfile::SaveL
@@ -215,39 +163,6 @@
 	}
 
 // -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::SetNameL
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::SetNameL( const TDesC& aText )
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::SetNameL:" );
-	
-	iProfile.SetDisplayNameL( aText );
-	}
-
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::CreatorId
-// -----------------------------------------------------------------------------
-//
- TInt CIAUpdateFWSyncProfile::CreatorId()
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::CreatorId:" );
-	
-	return iProfile.CreatorId();
-	}
-
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::SetCreatorId
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::SetCreatorId( TInt aCreatorId )
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::SetCreatorId:" );
-	
-	iProfile.SetCreatorId( aCreatorId );
-	}
-
-// -----------------------------------------------------------------------------
 // CIAUpdateFWSyncProfile::ProfileId
 // -----------------------------------------------------------------------------
 //
@@ -261,214 +176,6 @@
     return retval;
 	}
 
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::DeleteAllowed
-// -----------------------------------------------------------------------------
-//
- TBool CIAUpdateFWSyncProfile::DeleteAllowed()
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::DeleteAllowed:" );
-	
-    return iProfile.DeleteAllowed();
-	}
-
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::IsSynced
-// -----------------------------------------------------------------------------
-//
- TBool CIAUpdateFWSyncProfile::IsSynced()
-    {
-    FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::IsSynced()" );
-    
-    TBool retVal = EFalse;
-    if ( !iHistoryLogOpen )
-		{
-		FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::IsSynced(): Opening history log" );
-	    OpenHistoryLog();
-		}
-		
-    if ( iHistoryLogOpen )
-    	{
-	    FTRACE( FPrint( _L(
-	        "[IAUPDATEFW] CIAUpdateFWSyncProfile::IsSynced(): Log open! Log count = %d"),
-	                                                 iHistoryLog.Count() ) );
-    	if ( iHistoryLog.Count() > 0 )
-    	    {
-            const CSyncMLHistoryJob* job = LatestHistoryJob();
-            if ( job )
-            	{
-            	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::IsSynced(): True" );
-            	if( job->LastSuccessSyncTime() != NULL )
-                   {
-    	        retVal = ETrue;
-                   }
-            	}
-            else
-                {
-                FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::IsSynced(): False" );
-                }
-    	    }
-    	}
-    else
-        {
-        FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::IsSynced() Could not open history log!!!" );
-        }
-    CloseHistoryLog();    	
-
-    FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::IsSynced() completed" );
-    return retVal;
-    }
-
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::LastSync
-// -----------------------------------------------------------------------------
-//
- TTime CIAUpdateFWSyncProfile::LastSync()
-    {
-    FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::LastSync()" );
-
-    if ( !iHistoryLogOpen )
-		{
-		FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::LastSync(): Opening history log" );
-	    OpenHistoryLog();
-		}
-    
-    TTime time = 0;
-    if ( iHistoryLogOpen )
-    	{
-	    FTRACE( FPrint( _L(
-	        "[IAUPDATEFW] CIAUpdateFWSyncProfile::LastSync(): Log open! Log count = %d"),
-	                                                 iHistoryLog.Count() ) );
-    	
-    	if (iHistoryLog.Count() > 0)
-    	    {
-   	        const CSyncMLHistoryJob* job = LatestHistoryJob();
-            if ( job )
-            	{
-                FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::LastSync() timestamp" );
-            	time = job->TimeStamp();
-            	}
-    	    }
-    	}
-    else
-        {
-        FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::LastSync() Could not open history log!!!" );
-        }
-
-    CloseHistoryLog();    	
-
-    FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::LastSync() completed" );
-    return time;
-    }
-
- TTime CIAUpdateFWSyncProfile::LastSuccessSync()
-{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::LastSuccessSynctime()" );
-
-    if ( !iHistoryLogOpen )
-		{
-		FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::LastSync(): Opening history log" );
-	    OpenHistoryLog();
-		}
-    
-    TTime time = 0;
-    if ( iHistoryLogOpen )
-    	{
-	    FTRACE( FPrint( _L(
-	        "[IAUPDATEFW] CIAUpdateFWSyncProfile::LastSync(): Log open! Log count = %d"),
-	                                                 iHistoryLog.Count() ) );
-    	
-    	if (iHistoryLog.Count() > 0)
-    	    {
-   	        const CSyncMLHistoryJob* job = LatestHistoryJob();
-   	        iProfileId=ProfileId();
-            if ( job )
-            	{
-                FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::LastSync() timestamp" );
-            	time = job->LastSuccessSyncTime();
-            	}
-    	    }
-    	}
-    else
-        {
-        FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::LastSync() Could not open history log!!!" );
-        }
-
-    CloseHistoryLog();    	
-
-    FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::LastSuccessSynctime() completed" );
-    return time;
-    }
-
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::GetServerIdL
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::GetServerId( TDes& aText )
-    {
-    FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::GetServerIdL:" );
-    
-	TUtil::StrCopy(aText, iProfile.ServerId());
-	}
-
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::SetServerIdL
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::SetServerIdL( const TDesC& aText )
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::SetServerIdL:" );
-	
-	TBuf8<KBufSize256> buf;
-	TUtil::StrCopy(buf, aText);
-	iProfile.SetServerIdL(buf);
-	}
-
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::GetServerPassword
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::GetServerPassword(TDes& aText)
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::GetServerPassword:" );
-	
-	TUtil::StrCopy( aText, iProfile.ServerPassword() );
-	}
-	
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::SetServerPasswordL
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::SetServerPasswordL(const TDesC& aText)
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::SetServerPasswordL:" );
-	
-	TUtil::StrCopy(iBuf8, aText);    // conver TDes to TDes8
-	iProfile.SetServerPasswordL(iBuf8);
-	}
-
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::ProtocolVersion
-// -----------------------------------------------------------------------------
-//
- TInt CIAUpdateFWSyncProfile::ProtocolVersion()
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::ProtocolVersion:" );
-	
-	TSmlProtocolVersion version = iProfile.ProtocolVersion();
-	return version;
-	}
-	
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::SetProtocolVersionL
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::SetProtocolVersionL(TInt aProtocolVersion)
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::SetProtocolVersionL:" );
-	
-	iProfile.SetProtocolVersionL((TSmlProtocolVersion) aProtocolVersion);
-    }
 
 // -----------------------------------------------------------------------------
 // CIAUpdateFWSyncProfile::BearerType
@@ -495,28 +202,6 @@
 
     }
 	
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::SetBearerTypeL
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::SetBearerTypeL(TInt aId)
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::SetBearerTypeL:" );
-
-	if ( aId == EAspBearerInternet )
-		{
-		iConnection.CreateL( Profile(), KUidNSmlMediumTypeInternet.iUid );
-		}
-	else if ( aId == EAspBearerBlueTooth )
-		{
-		iConnection.CreateL( Profile(), KUidNSmlMediumTypeBluetooth.iUid );
-    	}
-	else
-        {
-        // Set default as Internet
-        iConnection.CreateL( Profile(), KUidNSmlMediumTypeInternet.iUid );
-        }
-	}
 
 // -----------------------------------------------------------------------------
 // CIAUpdateFWSyncProfile::AccessPointL
@@ -587,113 +272,6 @@
 	}
 
 // -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::GetHostAddressL
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::GetHostAddress(TDes& aText, TInt& aPort)
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::GetHostAddress:" );
-	aText = KNullDesC;
-	aPort = KDefaultHttpPort;
-	
-    if (!iConnectionOpen)	
-    	{
-      	return;
-    	}
-	
-	if (BearerType() != EAspBearerInternet)
-		{
-		TUtil::StrCopy(aText, iConnection.ServerURI()); // convert TDes8 to TDes
-		return;  // port number handling is for internet bearer only 
-		}
-	
-	TUtil::StrCopy( iBuf, iConnection.ServerURI() ); // convert TDes8 to TDes
-	
-	TURIParser parser( iBuf );
-	parser.GetUriWithoutPort( aText );
-	aPort = parser.Port();
-	if (aPort == KErrNotFound)
-		{
-		aPort = parser.DefaultPort();
-		}
-	}
-	
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::SetHostAddressL
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::SetHostAddressL( const TDesC& aText, const TInt aPort )
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::SetHostAddressL:" );
-	
-    if (!iConnectionOpen)	
-    	{
-    	return;
-    	}
-	if (BearerType() != EAspBearerInternet)
-		{
-		// port number handling is for internet bearer only 
-		TUtil::StrCopy(iBuf, aText); 
-		}
-	else
-		{
-		TURIParser parser(aText);
-	    parser.GetUri(iBuf, aPort);
-		}
-	
-	TUtil::StrCopy( iBuf8, iBuf );
-	iConnection.SetServerURIL( iBuf8 );
-	}
-
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::GetUserNameL
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::GetUserName(TDes& aText)
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::GetUserNameL:" );
-	
-	TUtil::StrCopy( aText, iProfile.UserName() );
-	}
-	
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::SetUserNameL
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::SetUserNameL(const TDesC& aText)
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::SetUserNameL:" );
-	
-	TUtil::StrCopy(iBuf8, aText);  // conver TDes to TDes8
-	iProfile.SetUserNameL(iBuf8);
-	}
-
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::GetPasswordL
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::GetPassword(TDes& aText)
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::GetPasswordL:" );
-	
-	TUtil::StrCopy( aText, iProfile.Password() );
-	}
-	
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::SetPasswordL
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::SetPasswordL(const TDesC& aText)
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::SetPasswordL:" );
-	TUtil::StrCopy( iBuf8, aText );    // conver TDes to TDes8
-	
-	FTRACE( RDebug::Print(
-	     _L("[IAUPDATEFW] CIAUpdateFWSyncProfile::SetPasswordL iBuf8 (%S)"), &iBuf8 ) );
-	iProfile.SetPasswordL( iBuf8 );
-	}
-
-// -----------------------------------------------------------------------------
 // CIAUpdateFWSyncProfile::SASyncState
 // -----------------------------------------------------------------------------
 //
@@ -744,149 +322,9 @@
 		}
     }
 
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::SetHttpUsed
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::SetHttpUsedL(TBool aEnable)
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::SetHttpUsed:" );
 
-    if ( iConnectionOpen )
-    	{
-    	if ( iConnection.Identifier() == KUidNSmlMediumTypeInternet.iUid )
-		    {
-        	TBuf8<KBufSize32> key;
-        	TBuf8<KBufSize32> value;
-        	
-        	if ( aEnable )
-        		{
-        		value.Num( KHttpUsed ); 
-        		}
-        	else
-        		{
-        		value.Num( KHttpNotUsed );
-        		}
-        		
-        	GetConnectionPropertyNameL( key, EPropertyHttpUsed );
-        	iConnection.SetPropertyL( key, value );
-		    }
-    	}
-	}
-
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::HttpUsedL
-// -----------------------------------------------------------------------------
-//
- TBool CIAUpdateFWSyncProfile::HttpUsedL()
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::HttpUsedL:" );
-    TBool retVal = EFalse; 
-    if ( iConnectionOpen )
-    	{
-    	if ( iConnection.Identifier() == KUidNSmlMediumTypeInternet.iUid )
-		    {
-        	TBuf8<KBufSize32> key; 
-        	TBuf<KBufSize32> value;
-        	TInt intValue;
-        	
-        	GetConnectionPropertyNameL(key, EPropertyHttpUsed);
-        	TUtil::StrCopy(value, iConnection.GetPropertyL(key));
-        	
-            User::LeaveIfError( TUtil::StrToInt( value, intValue ) );
-            
-            if ( intValue == 1 )
-            	{
-                retVal = ETrue;
-                }
-		    }
-    	}
-    return retVal;
-	}
-	
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::GetHttpUsernameL
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::GetHttpUserNameL( TDes& aText )
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::GetHttpUsernameL:" );
 
-	aText = KNullDesC;
-	
-    if ( iConnectionOpen )
-    	{
-    	if ( iConnection.Identifier() == KUidNSmlMediumTypeInternet.iUid )
-		    {
-        	TBuf8<KBufSize32> key; 
-        	
-        	GetConnectionPropertyNameL( key, EPropertyHttpUserName );
-        	TUtil::StrCopy( aText, iConnection.GetPropertyL( key ) );
-		    }
-    	}
-  	}
-	
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::SetHttpUsernameL
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::SetHttpUserNameL( const TDesC& aText )
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::SetHttpUsernameL:" );
 
-    if ( iConnectionOpen )
-    	{
-    	if ( iConnection.Identifier() == KUidNSmlMediumTypeInternet.iUid )
-		    {
-		    TBuf8<KBufSize32> key;
-	
-	        GetConnectionPropertyNameL( key, EPropertyHttpUserName );
-	        TUtil::StrCopy( iBuf8, aText );  // convert TDes to TDes8
-	        iConnection.SetPropertyL( key, iBuf8 );
-		    }
-    	}
-	}
-
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::GetHttpPasswordL
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::GetHttpPasswordL( TDes& aText )
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::GetHttpPasswordL:" );
-   	aText = KNullDesC;
-   	
-    if ( iConnectionOpen )
-    	{
-    	if ( iConnection.Identifier() == KUidNSmlMediumTypeInternet.iUid )
-		    {
-		    TBuf8<KBufSize32> key; 
-	        GetConnectionPropertyNameL( key, EPropertyHttpPassword );
-            TUtil::StrCopy( aText, iConnection.GetPropertyL( key ) );
-		    }
-    	}
-	}
-	
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::SetHttpPasswordL
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::SetHttpPasswordL( const TDesC& aText )
-	{
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::SetHttpPasswordL:" );
-
-    if ( iConnectionOpen )
-    	{
-    	if ( iConnection.Identifier() == KUidNSmlMediumTypeInternet.iUid )
-		    {
-        	TBuf8<KBufSize32> key;
-        	
-        	GetConnectionPropertyNameL( key, EPropertyHttpPassword );
-        	TUtil::StrCopy( iBuf8, aText );  // convert TDes to TDes8
-        	iConnection.SetPropertyL( key, iBuf8 );
-    	    }
-    	}
-	}
  
 // -----------------------------------------------------------------------------
 // CIAUpdateFWSyncProfile::Profile
@@ -899,100 +337,8 @@
     return iProfile;
     }
 
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::LatestHistoryJob
-// -----------------------------------------------------------------------------
-//
- const CSyncMLHistoryJob* CIAUpdateFWSyncProfile::LatestHistoryJob()
-    {
-    FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::LatestHistoryJob:" );
-    
-    if ( !iHistoryLogOpen )
-		{
-        OpenHistoryLog();
-		}
-		
-    if ( iHistoryLogOpen )
-		{
-	    TInt count = iHistoryLog.Count();
-        FTRACE( FPrint( _L(
-            "[IAUPDATEFW] CIAUpdateFWSyncProfile::LatestHistoryJob(): Log count %d"),
-            count ) );
-
-        if ( count == 0 )
-            {
-            FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::LatestHistoryJob(): No history" );
-            return NULL;  // profile has no history job
-            }
-            
-        // sort array
-        iHistoryLog.SortEntries( CSyncMLHistoryEntry::ESortByTime );    
-        
-        // try to find latest sync job (start from last array entry)
-        for ( TInt index = count - 1; index >= 0; index-- )
-        	{
-        	FTRACE( FPrint( _L(
-        	    "[IAUPDATEFW] CIAUpdateFWSyncProfile::LatestHistoryJob: count %d index %d"),
-        	    count, index ) );
-            //const CSyncMLHistoryEntry& entry = iHistoryLog[index];
-            const CSyncMLHistoryEntry& entry = iHistoryLog.Entry( index );
-            
-        	FTRACE( FPrint( _L(
-        	    "[IAUPDATEFW] CIAUpdateFWSyncProfile::LatestHistoryJob: Entry type = %x"),
-        	    entry.EntryType().iUid ) );
-            
-            const CSyncMLHistoryJob* jobEntry =
-                CSyncMLHistoryJob::DynamicCast( &entry );
 
-            if ( jobEntry )
-            	{
-            	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::LatestHistoryJob() completed: OK" );
-            	return jobEntry;
-            	}
-        	}
-		}
 
-    FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::LatestHistoryJob() completed: No history found" );
-    return NULL;  // profile has no history job
-    }
-
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::OpenHistoryLog
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::OpenHistoryLog()
-    {
-    FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::OpenHistoryLog()" );
-    
-    TInt id = ProfileId();
-   	TRAPD( err, iHistoryLog.OpenL( Session(), id ) );
-
-   	if ( err == KErrNone )
-   		{
-   		FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::OpenHistoryLog(): Opened" );
-   		iHistoryLogOpen = ETrue;
-    	}
-
-    FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::OpenHistoryLog() completed" );
-    }
-    
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::CloseHistoryLog
-// -----------------------------------------------------------------------------
-//
- void CIAUpdateFWSyncProfile::CloseHistoryLog()
-    {
-    FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::CloseHistoryLog()" );
-    
-   	if ( iHistoryLogOpen )
-   		{
-   		FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::CloseHistoryLog(): Closed " );
-   		iHistoryLog.Close();
-   		iHistoryLogOpen = EFalse;
-    	}
-
-    FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::CloseHistoryLog() completed" );
-    }
     
 // -----------------------------------------------------------------------------
 // CIAUpdateFWSyncProfile::OpenConnection
@@ -1067,55 +413,5 @@
 	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::GetConnectionPropertyNameL() completed" );
 	}
 
-// -----------------------------------------------------------------------------
-// CIAUpdateFWSyncProfile::CopyValuesL
-// -----------------------------------------------------------------------------
-//
-void CIAUpdateFWSyncProfile::CopyValuesL( CIAUpdateFWSyncProfile* aSource )
-    {
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::CopyValuesL()" );
-
-    TBuf<KBufSize256> buf;
-    TInt num = 0;
-    
-    num = aSource->ProtocolVersion();
-    SetProtocolVersionL( num );
-    if ( num == 1 )
-    	{
-    	aSource->GetServerId( buf );
-    	SetServerIdL( buf );
-    	}
-    	
-    num = aSource->BearerType();
-    SetBearerTypeL( num );
-    
-     num = aSource->AccessPointL();
-    SetAccessPointL( num );
-    
-    aSource->GetHostAddress( buf, num );
-    SetHostAddressL( buf, num );
-     
-    aSource->GetUserName( buf );
-    SetUserNameL(buf);
-     
-    aSource->GetPassword( buf );
-    SetPasswordL( buf );
-    
-    num = aSource->SASyncState();
-    SetSASyncStateL( num );
-    
-    if ( aSource->BearerType() == EAspBearerInternet)
-    	{
-    	num = aSource->HttpUsedL();
-    	SetHttpUsedL(num);
-    	
-    	aSource->GetHttpUserNameL(buf);
-    	SetHttpUserNameL(buf);
-    	
-    	aSource->GetHttpPasswordL(buf);
-    	SetHttpPasswordL(buf);
-    	}
-	FLOG( "[IAUPDATEFW] CIAUpdateFWSyncProfile::CopyValuesL() completed" );
-    }
     
 // End of File