meetingrequest/mrguicommon/inc/cesmrconfirmationquery.h
branchRCL_3
changeset 12 4ce476e64c59
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
       
     1 /*
       
     2 * Copyright (c) 2007-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:  Class is responsible of showing confirmation queries
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CESMRCONFIRMATIONQUERY_H
       
    20 #define CESMRCONFIRMATIONQUERY_H
       
    21 
       
    22 //<cmail>
       
    23 #include "esmrdef.h"
       
    24 //</cmail>
       
    25 #include <e32base.h>
       
    26 
       
    27 class CEikonEnv;
       
    28 /**
       
    29  * CESMRConfirmationQuery encapsulates Yes/No confirmation query
       
    30  * query for ES MR Utils usage.
       
    31  *
       
    32  * @lib esmrgui.lib
       
    33  */
       
    34 NONSHARABLE_CLASS( CESMRConfirmationQuery ) : public CBase
       
    35     {
       
    36 public:
       
    37     /**
       
    38     * Enumeration definition for different kind of
       
    39     * confirmation queries
       
    40     */
       
    41     enum TESMRConfirmationQueryType
       
    42         {
       
    43         EESMRDeleteMR = 0,
       
    44         EESMRSendCancellationInfoToParticipants,
       
    45         EESMRRemoveAppointment,
       
    46         EESMRSaveChanges,
       
    47         EESMRDeleteEntry,
       
    48         EESMRSendDecline,
       
    49         EESMRSaveAnnivChangedStartDay,
       
    50         EESMRAttachments,
       
    51         EESMRSaveMeetingChangedStartDay,
       
    52         EESMRAssignUpdatedLocation,
       
    53         EESMRAttachmentsNotSupported
       
    54         };
       
    55 public:
       
    56     /**
       
    57      * C++ Destructor.
       
    58      */
       
    59     ~CESMRConfirmationQuery();
       
    60 
       
    61      /**
       
    62      * Static version of ExecuteLD.
       
    63      * @param aType The type of confirmation query.
       
    64      * @return TBool ETrue if Yes, EFalse for no.
       
    65      */
       
    66      IMPORT_C static TBool ExecuteL( TESMRConfirmationQueryType aType );
       
    67      
       
    68      /**
       
    69      * Static version of ExecuteLD, for location text overwrite queries.
       
    70      * only used internally by esmrgui and doesn't need to be exported
       
    71      * @param aLocation location text to be used and truncated to the query
       
    72      * @return TBool ETrue if Yes, EFalse for no.
       
    73      */
       
    74      static TBool ExecuteL( const TDesC& aLocation );
       
    75               
       
    76 private: // Implementation
       
    77     CESMRConfirmationQuery( TESMRConfirmationQueryType aType );
       
    78     void ConstructL();
       
    79     TBool ExecuteLD();
       
    80     HBufC* TruncateTextToLAFNoteL( const TDesC& aLocation );
       
    81 
       
    82 private: // Data
       
    83     /**
       
    84     * Attendee status
       
    85     */
       
    86     TESMRConfirmationQueryType iType;
       
    87 
       
    88     /**
       
    89     * Resource offset
       
    90     */
       
    91     TInt iResourceOffset;
       
    92 
       
    93     // Ref:
       
    94     CEikonEnv* iEnv;
       
    95     };
       
    96 
       
    97 #endif // CESMRCONFIRMATIONQUERY_H