78 |
78 |
79 CCreatorNotepad::~CCreatorNotepad() |
79 CCreatorNotepad::~CCreatorNotepad() |
80 { |
80 { |
81 LOGSTRING("Creator: CCreatorNotepad::~CCreatorNotepad"); |
81 LOGSTRING("Creator: CCreatorNotepad::~CCreatorNotepad"); |
82 |
82 |
83 delete iNotepadApi; |
83 // TODO DELETE!!! |
|
84 //delete iNotepadApi; |
84 |
85 |
85 if (iParameters) |
86 if (iParameters) |
86 delete iParameters; |
87 delete iParameters; |
87 } |
88 } |
88 |
89 |
89 //---------------------------------------------------------------------------- |
90 //---------------------------------------------------------------------------- |
90 |
91 |
91 TBool CCreatorNotepad::AskDataFromUserL(TInt aCommand, TInt& aNumberOfEntries) |
92 TBool CCreatorNotepad::AskDataFromUserL(TInt aCommand) |
92 { |
93 { |
93 LOGSTRING("Creator: CCreatorNotepad::AskDataFromUserL"); |
94 LOGSTRING("Creator: CCreatorNotepad::AskDataFromUserL"); |
94 |
95 |
|
96 CCreatorModuleBase::AskDataFromUserL(aCommand); |
|
97 |
95 if ( aCommand == ECmdDeleteNotes ) |
98 if ( aCommand == ECmdDeleteNotes ) |
96 { |
99 { |
97 return iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Notes?") ); |
100 return iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Notes?"), this, ECreatorModuleDelete ); |
98 } |
101 } |
99 |
102 |
100 // By Creator not supported because |
103 // By Creator not supported because |
101 // note id is not available via Notepad API |
104 // note id is not available via Notepad API |
102 |
105 |
103 return iEngine->GetEngineWrapper()->EntriesQueryDialog(aNumberOfEntries, _L("How many entries to create?")); |
106 return iEngine->GetEngineWrapper()->EntriesQueryDialog( &iEntriesToBeCreated, _L("How many entries to create?"), EFalse, this, ECreatorModuleStart ); |
104 } |
107 } |
105 |
108 |
106 |
109 |
107 //---------------------------------------------------------------------------- |
110 //---------------------------------------------------------------------------- |
108 |
111 |