creator/inc/creator_note.h
branchRCL_3
changeset 19 b3cee849fa46
parent 18 48060abbbeaf
child 20 fad26422216a
equal deleted inserted replaced
18:48060abbbeaf 19:b3cee849fa46
     1 /*
       
     2 * Copyright (c) 2008 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 
       
    20 
       
    21 #ifndef __CREATORNOTEPAD_H__
       
    22 #define __CREATORNOTEPAD_H__
       
    23 
       
    24 #include "creator_model.h"
       
    25 #include "creator_modulebase.h"
       
    26 
       
    27 
       
    28 #include <e32base.h>
       
    29 #include <NpdApi.h>
       
    30 
       
    31 
       
    32 static const TInt KNotepadFieldLength = 1024;
       
    33 
       
    34 class CCreatorEngine;
       
    35 class CNotepadParameters;
       
    36 
       
    37 
       
    38 class CCreatorNotepad : public CBase, public MCreatorModuleBase
       
    39     {
       
    40 public: 
       
    41     static CCreatorNotepad* NewL(CCreatorEngine* aEngine);
       
    42     static CCreatorNotepad* NewLC(CCreatorEngine* aEngine);
       
    43     ~CCreatorNotepad();
       
    44 
       
    45 private:
       
    46     CCreatorNotepad();
       
    47     void ConstructL(CCreatorEngine* aEngine); // from MCreatorModuleBase
       
    48 
       
    49 public:
       
    50     TBool AskDataFromUserL(TInt aCommand, TInt& aNumberOfEntries); // from MCreatorModuleBase
       
    51     TInt CreateNoteEntryL(CNotepadParameters *aParameters);
       
    52     void DeleteAllL();
       
    53     void DeleteAllCreatedByCreatorL();
       
    54 
       
    55 private:
       
    56     CNotepadApi *iNotepadApi;
       
    57 
       
    58     CNotepadParameters* iParameters;
       
    59     RFs& iFs;
       
    60 
       
    61 public:
       
    62     };
       
    63 
       
    64 
       
    65 class CNotepadParameters : public CCreatorModuleBaseParameters
       
    66     {
       
    67 public: 
       
    68     HBufC*              iNoteText;
       
    69 
       
    70 public:
       
    71     CNotepadParameters();
       
    72     ~CNotepadParameters();
       
    73     };
       
    74 
       
    75 
       
    76 
       
    77 #endif // __CREATORNOTEPAD_H__