ui/commandhandlers/commoncommandhandlers/src/glxcommandhandlernewmedia.cpp
changeset 50 a0f57508af73
parent 45 863223ea6961
child 62 36d93b4dc635
equal deleted inserted replaced
45:863223ea6961 50:a0f57508af73
    93     OstTraceFunctionExit0( GLXCOMMANDHANDLERNEWMEDIA_CREATECOMMANDL_EXIT );
    93     OstTraceFunctionExit0( GLXCOMMANDHANDLERNEWMEDIA_CREATECOMMANDL_EXIT );
    94     return command;
    94     return command;
    95     }
    95     }
    96 
    96 
    97 
    97 
    98 TInt GlxCommandHandlerNewMedia::ExecuteLD(TGlxMediaId& aNewMediaId)
    98 TInt GlxCommandHandlerNewMedia::ExecuteLD(TGlxMediaId& aNewMediaId,QString& aTitle)
    99     {
    99     {
   100     OstTraceFunctionEntry0( GLXCOMMANDHANDLERNEWMEDIA_EXECUTELD_ENTRY );
   100     OstTraceFunctionEntry0( GLXCOMMANDHANDLERNEWMEDIA_EXECUTELD_ENTRY );
   101     GlxMpxCommandHandler::executeCommand(EGlxCmdAddMedia, KGlxCollectionPluginAlbumsImplementationUid);
   101     GlxMpxCommandHandler::executeCommand(EGlxCmdAddMedia, KGlxCollectionPluginAlbumsImplementationUid);
   102     mShowConfirmation = true;
   102     mShowConfirmation = true;
   103     if (iNewMediaCreationError == KErrNone)
   103     if (iNewMediaCreationError == KErrNone)
   106         iSchedulerWait->Start();
   106         iSchedulerWait->Start();
   107 
   107 
   108         if (iNewMediaCreationError == KErrNone)
   108         if (iNewMediaCreationError == KErrNone)
   109             {
   109             {
   110             aNewMediaId = iNewMediaId;
   110             aNewMediaId = iNewMediaId;
       
   111             aTitle = QString::fromUtf16(iNewMediaItemTitle->Des().Ptr(),iNewMediaItemTitle->Length());
   111             }
   112             }
   112         }
   113         }
   113 
   114 
   114     TInt error = iNewMediaCreationError;
   115     TInt error = iNewMediaCreationError;
   115     OstTraceFunctionExit0( GLXCOMMANDHANDLERNEWMEDIA_EXECUTELD_EXIT );
   116     OstTraceFunctionExit0( GLXCOMMANDHANDLERNEWMEDIA_EXECUTELD_EXIT );