creator/engine/inc/creator_note.h
branchRCL_3
changeset 21 b3cee849fa46
equal deleted inserted replaced
20:48060abbbeaf 21:b3cee849fa46
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CREATORNOTEPAD_H__
       
    20 #define __CREATORNOTEPAD_H__
       
    21 
       
    22 #include "engine.h"
       
    23 #include "creator_modulebase.h"
       
    24 #include "creator_notepadwrapper.h"
       
    25 
       
    26 #include <e32base.h>
       
    27 
       
    28 static const TInt KNotepadFieldLength = 1024;
       
    29 
       
    30 class CCreatorEngine;
       
    31 class CNotepadParameters;
       
    32 class CCreatorNotepadWrapper;
       
    33 
       
    34 
       
    35 class CCreatorNotepad : public CCreatorModuleBase
       
    36     {
       
    37 public: 
       
    38     static CCreatorNotepad* NewL(CCreatorEngine* aEngine);
       
    39     static CCreatorNotepad* NewLC(CCreatorEngine* aEngine);
       
    40     ~CCreatorNotepad();
       
    41 
       
    42 private:
       
    43     CCreatorNotepad();
       
    44     void ConstructL(CCreatorEngine* aEngine); // from MCreatorModuleBase
       
    45 
       
    46 public:
       
    47     TBool AskDataFromUserL( TInt aCommand ); // from MCreatorModuleBase
       
    48     
       
    49     TInt CreateNoteEntryL(CNotepadParameters *aParameters);
       
    50     void DeleteAllL();
       
    51     void DeleteAllCreatedByCreatorL();
       
    52 
       
    53 private:
       
    54     CCreatorNotepadWrapper* iNotepadWrapper;
       
    55 
       
    56     CNotepadParameters* iParameters;
       
    57     RFs& iFs;
       
    58 
       
    59 public:
       
    60     };
       
    61 
       
    62 
       
    63 class CNotepadParameters : public CCreatorModuleBaseParameters
       
    64     {
       
    65 public: 
       
    66     HBufC*              iNoteText;
       
    67 
       
    68 public:
       
    69     CNotepadParameters();
       
    70     ~CNotepadParameters();
       
    71     };
       
    72 
       
    73 
       
    74 
       
    75 #endif // __CREATORNOTEPAD_H__