meetingrequest/mrgui/inc/cesmrconfirmationquery.h
branchRCL_3
changeset 33 da5135c61bad
parent 32 a3a1ae9acec6
child 34 cd2816114bd1
equal deleted inserted replaced
32:a3a1ae9acec6 33:da5135c61bad
     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         EESMRCancelDownloadingAttachment,
       
    52         EESMRCancelDownloadingAllAttachments,
       
    53         EESMRSaveMeetingChangedStartDay,
       
    54         EESMRAssignUpdatedLocation
       
    55         };
       
    56 public:
       
    57     /**
       
    58      * C++ Destructor.
       
    59      */
       
    60     ~CESMRConfirmationQuery();
       
    61 
       
    62      /**
       
    63      * Static version of ExecuteLD.
       
    64      * @param aType The type of confirmation query.
       
    65      * @return TBool ETrue if Yes, EFalse for no.
       
    66      */
       
    67      IMPORT_C static TBool ExecuteL( TESMRConfirmationQueryType aType );
       
    68      
       
    69      /**
       
    70      * Static version of ExecuteLD, for location text overwrite queries.
       
    71      * only used internally by esmrgui and doesn't need to be exported
       
    72      * @param aLocation location text to be used and truncated to the query
       
    73      * @return TBool ETrue if Yes, EFalse for no.
       
    74      */
       
    75      static TBool ExecuteL( const TDesC& aLocation );
       
    76               
       
    77 private: // Implementation
       
    78     CESMRConfirmationQuery( TESMRConfirmationQueryType aType );
       
    79     void ConstructL();
       
    80     TBool ExecuteLD();
       
    81     HBufC* TruncateTextToLAFNoteL( const TDesC& aLocation );
       
    82 
       
    83 private: // Data
       
    84     /**
       
    85     * Attendee status
       
    86     */
       
    87     TESMRConfirmationQueryType iType;
       
    88 
       
    89     /**
       
    90     * Resource offset
       
    91     */
       
    92     TInt iResourceOffset;
       
    93 
       
    94     // Ref:
       
    95     CEikonEnv* iEnv;
       
    96     };
       
    97 
       
    98 #endif // CESMRCONFIRMATIONQUERY_H