creator/engine/src/creator_note.cpp
changeset 34 e0ec97ec3cc4
parent 23 c9bf25a20c9f
child 31 e7a04a6385be
equal deleted inserted replaced
23:c9bf25a20c9f 34:e0ec97ec3cc4
    70     {
    70     {
    71     LOGSTRING("Creator: CCreatorNotepad::ConstructL");
    71     LOGSTRING("Creator: CCreatorNotepad::ConstructL");
    72 
    72 
    73     iEngine = aEngine;
    73     iEngine = aEngine;
    74     iAgendaUtil = new AgendaUtil();
    74     iAgendaUtil = new AgendaUtil();
    75     iNotepadApi = new NotesEditor(iAgendaUtil);
    75     //iNotepadApi = new NotesEditor(iAgendaUtil);
    76     //iNotepadApi = CNotepadApi::NewL();
    76     //iNotepadApi = CNotepadApi::NewL();
    77     }
    77     }
    78 
    78 
    79 CCreatorNotepad::~CCreatorNotepad()
    79 CCreatorNotepad::~CCreatorNotepad()
    80     {
    80     {
    81     LOGSTRING("Creator: CCreatorNotepad::~CCreatorNotepad");
    81     LOGSTRING("Creator: CCreatorNotepad::~CCreatorNotepad");
    82     
    82  
       
    83  /*   
    83     if(iNotepadApi)
    84     if(iNotepadApi)
    84         {
    85         {
    85         delete iNotepadApi;
    86         delete iNotepadApi;
    86         iNotepadApi = NULL;
    87         iNotepadApi = NULL;
    87         }
    88         }
    88     
    89 */    
    89     if(iAgendaUtil)
    90     if(iAgendaUtil)
    90         {
    91         {
    91         delete iAgendaUtil;
    92         delete iAgendaUtil;
    92         iAgendaUtil = NULL;
    93         iAgendaUtil = NULL;
    93         }
    94         }
    94     
    95     
    95     if (iParameters)
    96     if (iParameters)
    96         {
    97         {
    97         delete iParameters;
    98         delete iParameters;
    98         iParameters;
    99         iParameters = NULL;
    99         }
   100         }
   100     }
   101     }
   101 
   102 
   102 //----------------------------------------------------------------------------
   103 //----------------------------------------------------------------------------
   103 
   104 
   141     
   142     
   142     TInt err = KErrNone;
   143     TInt err = KErrNone;
   143 
   144 
   144     //iNotepadApi->AddContentL(parameters->iNoteText->Des());
   145     //iNotepadApi->AddContentL(parameters->iNoteText->Des());
   145     QString textNote = QString::fromUtf16(parameters->iNoteText->Ptr(),parameters->iNoteText->Length());
   146     QString textNote = QString::fromUtf16(parameters->iNoteText->Ptr(),parameters->iNoteText->Length());
   146     iNotepadApi->edit(textNote);
   147     iNotepadApi->edit(textNote, iAgendaUtil);
   147     iNotepadApi->close(NotesEditor::CloseWithSave);
   148     iNotepadApi->close(NotesEditorInterface::CloseWithSave, iAgendaUtil);
   148     
   149     
   149     return err;
   150     return err;
   150     }
   151     }
   151 
   152 
   152 //----------------------------------------------------------------------------
   153 //----------------------------------------------------------------------------