meetingrequest/mrguicommon/inc/cesmrglobalnote.h
branchRCL_3
changeset 12 4ce476e64c59
child 16 b5fbb9b25d57
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
       
     1 /*
       
     2 * Copyright (c) 2002-2009 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:  Edit before send list pop-up query
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CESMRGLOBALNOTE_H
       
    20 #define CESMRGLOBALNOTE_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <aknnotifystd.h>
       
    25 //<cmail>
       
    26 #include "esmrdef.h"
       
    27 //</cmail>
       
    28 
       
    29 // CLASS DECLARATION
       
    30 class CEikonEnv;
       
    31 /**
       
    32  * CESMRGlobalNote encapsulates Yes/No confirmation query
       
    33  * query for ES MR Utils usage.
       
    34  */
       
    35 NONSHARABLE_CLASS( CESMRGlobalNote ) : public CBase
       
    36     {
       
    37     public:
       
    38         enum TESMGlobalNoteType
       
    39             {
       
    40             EESMRCorruptedMR = 0,
       
    41             EESMREndsBeforeStarts,
       
    42             EESMRCalenLaterDate,
       
    43             EESMREntryEndEarlierThanItStart,
       
    44             EESMRAlarmAlreadyPassed,
       
    45             EESMRDiffMoreThanMonth,
       
    46             EESMRRepeatEndEarlierThanItStart,
       
    47             EESMREntrySaved,
       
    48             EESMRTodoEntrySaved,
       
    49             EESMRRepeatDifferentStartAndEndDate,
       
    50             EESMRRepeatReSchedule,
       
    51             EESMRCannotDisplayMuchMore,
       
    52             EESMRRepeatInstanceTooEarly,
       
    53             EESMRUnableToEdit,
       
    54             EESMROverlapsExistingInstance, 
       
    55             EESMRInstanceAlreadyExistsOnThisDay,
       
    56             EESMRInstanceOutOfSequence
       
    57             };
       
    58     public:
       
    59         /**
       
    60         * Two-phased constructor.
       
    61         */
       
    62         IMPORT_C static CESMRGlobalNote* NewL(
       
    63                 TESMGlobalNoteType aType);
       
    64 
       
    65         /**
       
    66         * Destructor.
       
    67         */
       
    68         ~CESMRGlobalNote();
       
    69 
       
    70     private: // Constructors
       
    71 
       
    72         CESMRGlobalNote( TESMGlobalNoteType aType );
       
    73         void ConstructL();
       
    74         TAknGlobalNoteType NoteType();
       
    75         HBufC* NoteTextLC();
       
    76 
       
    77     public: // Implementation
       
    78 
       
    79          /**
       
    80          * Executes the dialog and destroys itself.
       
    81          */
       
    82          IMPORT_C void ExecuteLD();
       
    83 
       
    84          /**
       
    85          * Static version of ExecuteLD.
       
    86          * @param aType The type of confirmation query.         
       
    87          */
       
    88          IMPORT_C static void ExecuteL(
       
    89                  TESMGlobalNoteType aType );
       
    90 
       
    91     private: // Data
       
    92         /// Own: Attendee status
       
    93         TESMGlobalNoteType iType;
       
    94         /// Own: Resource offset;
       
    95         TInt iResourceOffset;
       
    96         /// Ref:
       
    97         CEikonEnv* iEnv;
       
    98 
       
    99     };
       
   100 
       
   101 #endif // CESMRGLOBALNOTE_H
       
   102 
       
   103 // End of File