usbmgmt/usbmgrtest/ObexClassController/test/src/simpleObexClient.cpp
branchRCL_3
changeset 16 012cc2ee6408
parent 15 f92a4f87e424
equal deleted inserted replaced
15:f92a4f87e424 16:012cc2ee6408
   117     iObexName = KNullDesC;
   117     iObexName = KNullDesC;
   118 	iGetType = KObjectType;
   118 	iGetType = KObjectType;
   119 	
   119 	
   120 	// Create file session and create a new private path on drive C
   120 	// Create file session and create a new private path on drive C
   121 	RFs fileSession;
   121 	RFs fileSession;
   122 	User::LeaveIfError(fileSession.Connect());
   122 	fileSession.Connect();
   123 	
   123 	
   124 	User::LeaveIfError(fileSession.CreatePrivatePath(EDriveC));
   124 	fileSession.CreatePrivatePath(EDriveC);
   125 	User::LeaveIfError(fileSession.SetSessionToPrivate(EDriveC));	
   125 	fileSession.SetSessionToPrivate(EDriveC);	
   126 	User::LeaveIfError(fileSession.SessionPath(iSessionPath));
   126 	fileSession.SessionPath(iSessionPath);
   127 	
   127 	
   128 	// Copy the files from oby file ro the newly created path
   128 	// Copy the files from oby file ro the newly created path
   129 	User::LeaveIfError(BaflUtils::CopyFile(fileSession, KFilePath1, KFilename1,0));
   129 	BaflUtils::CopyFile(fileSession, KFilePath1, KFilename1,0);
   130 	User::LeaveIfError(BaflUtils::CopyFile(fileSession, KFilePath2, KFilename2,0));
   130 	BaflUtils::CopyFile(fileSession, KFilePath2, KFilename2,0);
   131 	User::LeaveIfError(BaflUtils::CopyFile(fileSession, KFilePath3, KFilename3,0));
   131 	BaflUtils::CopyFile(fileSession, KFilePath3, KFilename3,0);
   132  
   132  
   133 	fileSession.Close();
   133 	fileSession.Close();
   134 	
   134 	
   135 	// Assign file names
   135 	// Assign file names
   136 	iFilename1 = KFilename1; 
   136 	iFilename1 = KFilename1;