equal
deleted
inserted
replaced
26 #include <glxcollectionpluginalbums.hrh> |
26 #include <glxcollectionpluginalbums.hrh> |
27 #include <glxcommondialogs.h> |
27 #include <glxcommondialogs.h> |
28 #include <hbinputdialog.h> |
28 #include <hbinputdialog.h> |
29 #include <hblabel.h> |
29 #include <hblabel.h> |
30 #include <hbmessagebox.h> |
30 #include <hbmessagebox.h> |
|
31 |
|
32 #include "glxlocalisationstrings.h" |
31 #include "OstTraceDefinitions.h" |
33 #include "OstTraceDefinitions.h" |
32 #ifdef OST_TRACE_COMPILER_IN_USE |
34 #ifdef OST_TRACE_COMPILER_IN_USE |
33 #include "glxcommandhandlernewmediaTraces.h" |
35 #include "glxcommandhandlernewmediaTraces.h" |
34 #endif |
36 #endif |
35 #include <hbaction.h> |
37 #include <hbaction.h> |
59 { |
61 { |
60 OstTraceFunctionEntry0( GLXCOMMANDHANDLERNEWMEDIA_CREATECOMMANDL_ENTRY ); |
62 OstTraceFunctionEntry0( GLXCOMMANDHANDLERNEWMEDIA_CREATECOMMANDL_ENTRY ); |
61 CMPXCollectionPath* path = aMediaList.PathLC(NGlxListDefs::EPathParent); |
63 CMPXCollectionPath* path = aMediaList.PathLC(NGlxListDefs::EPathParent); |
62 CMPXCommand* command = NULL; |
64 CMPXCommand* command = NULL; |
63 |
65 |
64 QString title("NEW MEDIA"); |
66 QString mainPane = GenerateNewMediaItemTitleL(GLX_DIALOG_ALBUM_NAME_DEFAULT,aMediaList); |
65 QString mainPane = GenerateNewMediaItemTitleL("Album",aMediaList); |
|
66 bool ok = false; |
67 bool ok = false; |
67 QString mediaTitle = NULL; |
68 QString mediaTitle = NULL; |
68 GlxTextInputDialog* dlg = new GlxTextInputDialog(); |
69 GlxTextInputDialog* dlg = new GlxTextInputDialog(); |
69 mediaTitle = dlg->getText(title, mainPane, &ok); |
70 mediaTitle = dlg->getText(GLX_DIALOG_NAME_PROMPT, mainPane, &ok); |
70 delete dlg; |
71 delete dlg; |
71 iNewMediaCreationError = KErrNone; |
72 iNewMediaCreationError = KErrNone; |
72 if (ok == true) |
73 if (ok == true) |
73 { |
74 { |
74 |
75 |