stif/TestInterface/src/TestInterface.cpp
branchRCL_3
changeset 14 381827f66490
parent 9 8a14024f954a
child 30 86a2e675b80a
equal deleted inserted replaced
12:7e287c5c61f0 14:381827f66490
   416 EXPORT_C TInt StartSession()
   416 EXPORT_C TInt StartSession()
   417     {
   417     {
   418     //__UHEAP_MARK;
   418     //__UHEAP_MARK;
   419 
   419 
   420     // Get module name from command line
   420     // Get module name from command line
   421 	const TInt length = User().CommandLineLength();
   421 	const TInt length = User::CommandLineLength();
   422     HBufC* cmdLine = HBufC::New( length );
   422     HBufC* cmdLine = HBufC::New( length );
   423     
   423     
   424     if ( cmdLine == NULL )
   424     if ( cmdLine == NULL )
   425         {
   425         {
   426         //__UHEAP_MARKEND;
   426         //__UHEAP_MARKEND;
   427         return KErrNoMemory;
   427         return KErrNoMemory;
   428         }
   428         }
   429 
   429 
   430     TPtr moduleName = cmdLine->Des();
   430     TPtr moduleName = cmdLine->Des();
   431     User().CommandLine( moduleName );
   431     User::CommandLine( moduleName );
   432 
   432 
   433     RDebug::Print(_L("StartSession() Received data [%S]"), &moduleName);
   433     RDebug::Print(_L("StartSession() Received data [%S]"), &moduleName);
   434 
   434 
   435     // Extract semaphore name passed in data    
   435     // Extract semaphore name passed in data    
   436     TInt index = moduleName.Find(_L(" "));
   436     TInt index = moduleName.Find(_L(" "));