locationmanager/locationtrail/src/cgpxconverterao.cpp
branchRCL_3
changeset 8 50de4d668bb6
parent 7 3cebc1a84278
child 12 9f21bab39f42
equal deleted inserted replaced
7:3cebc1a84278 8:50de4d668bb6
    68     Cancel();
    68     Cancel();
    69     iFs.Close();
    69     iFs.Close();
    70     
    70     
    71     iObservers.Reset();
    71     iObservers.Reset();
    72     
    72     
       
    73     iFileQueue.ResetAndDestroy();
       
    74     iFileQueue.Close();
       
    75     
       
    76     iBoundQueue.ResetAndDestroy();
       
    77     iBoundQueue.Close();
       
    78     
    73     delete iWriteBuf;
    79     delete iWriteBuf;
    74     delete iFormatBuf;
    80     delete iFormatBuf;
    75     }
    81     }
    76 
    82 
    77 // ---------------------------------------------------------------------------
    83 // ---------------------------------------------------------------------------
   103  */
   109  */
   104 void CGpxConverterAO::AddToQueueL( const TDesC& aFileName, TBoundaries* aBoundaries )
   110 void CGpxConverterAO::AddToQueueL( const TDesC& aFileName, TBoundaries* aBoundaries )
   105 	{
   111 	{
   106 	LOG("CGpxConverterAO::AddToQueueL");
   112 	LOG("CGpxConverterAO::AddToQueueL");
   107 	TFileName *filename = new (ELeave) TFileName(aFileName);
   113 	TFileName *filename = new (ELeave) TFileName(aFileName);
   108 	iFileQueue.Append(filename);
   114 	CleanupStack::PushL( filename );
   109 	iBoundQueue.Append( aBoundaries );
   115 	iFileQueue.AppendL( filename );
       
   116 	CleanupStack::Pop( filename );
       
   117 	iBoundQueue.AppendL( aBoundaries );
   110 	
   118 	
   111 	if ( iState == EIdle )
   119 	if ( iState == EIdle )
   112 		{
   120 		{
   113 		SetState( ENextFile );
   121 		SetState( ENextFile );
   114 		}
   122 		}