creator/engine/inc/creator_note.h
branchGCC_SURGE
changeset 37 c20154ccf3c0
parent 35 98924d2efce9
equal deleted inserted replaced
20:ba8a586c45f1 37:c20154ccf3c0
    14 * Description: 
    14 * Description: 
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 
       
    20 
       
    21 
       
    22 #ifndef __CREATORNOTEPAD_H__
    19 #ifndef __CREATORNOTEPAD_H__
    23 #define __CREATORNOTEPAD_H__
    20 #define __CREATORNOTEPAD_H__
    24 
    21 
    25 #include "engine.h"
    22 #include "engine.h"
    26 #include "creator_modulebase.h"
    23 #include "creator_modulebase.h"
    27 
    24 #include "creator_notepadwrapper.h"
    28 
    25 
    29 #include <e32base.h>
    26 #include <e32base.h>
    30 //#include <npdapi.h>
       
    31 #include <NotesEditor>
       
    32 #include <AgendaUtil>
       
    33 #include <AgendaEntry>
       
    34 
       
    35 
    27 
    36 static const TInt KNotepadFieldLength = 1024;
    28 static const TInt KNotepadFieldLength = 1024;
    37 
    29 
    38 class CCreatorEngine;
    30 class CCreatorEngine;
    39 class CNotepadParameters;
    31 class CNotepadParameters;
       
    32 class CCreatorNotepadWrapper;
    40 
    33 
    41 
    34 
    42 class CCreatorNotepad : public CBase, public MCreatorModuleBase
    35 class CCreatorNotepad : public CCreatorModuleBase
    43     {
    36     {
    44 public: 
    37 public: 
    45     static CCreatorNotepad* NewL(CCreatorEngine* aEngine);
    38     static CCreatorNotepad* NewL(CCreatorEngine* aEngine);
    46     static CCreatorNotepad* NewLC(CCreatorEngine* aEngine);
    39     static CCreatorNotepad* NewLC(CCreatorEngine* aEngine);
    47     ~CCreatorNotepad();
    40     ~CCreatorNotepad();
    49 private:
    42 private:
    50     CCreatorNotepad();
    43     CCreatorNotepad();
    51     void ConstructL(CCreatorEngine* aEngine); // from MCreatorModuleBase
    44     void ConstructL(CCreatorEngine* aEngine); // from MCreatorModuleBase
    52 
    45 
    53 public:
    46 public:
    54     TBool AskDataFromUserL(TInt aCommand, TInt& aNumberOfEntries); // from MCreatorModuleBase
    47     TBool AskDataFromUserL( TInt aCommand ); // from MCreatorModuleBase
       
    48     
    55     TInt CreateNoteEntryL(CNotepadParameters *aParameters);
    49     TInt CreateNoteEntryL(CNotepadParameters *aParameters);
    56     void DeleteAllL();
    50     void DeleteAllL();
    57     void DeleteAllCreatedByCreatorL();
    51     void DeleteAllCreatedByCreatorL();
    58 
    52 
    59 private:
    53 private:
    60     AgendaUtil *iAgendaUtil;
    54     CCreatorNotepadWrapper* iNotepadWrapper;
    61     NotesEditor *iNotepadApi;	//QT Notes api 
       
    62     //CNotepadApi *iNotepadApi;
       
    63 
    55 
    64     CNotepadParameters* iParameters;
    56     CNotepadParameters* iParameters;
    65     RFs& iFs;
    57     RFs& iFs;
    66 
    58 
    67 public:
    59 public: