calendarui/controller/inc/calenattachmentstate.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 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:
       
    15 *
       
    16 */
       
    17 #ifndef CALENATTACHMENTSTATE_H
       
    18 #define CALENATTACHMENTSTATE_H
       
    19 
       
    20 #include <e32base.h>
       
    21 #include "calenstate.h"
       
    22 
       
    23 /**
       
    24 * Calendar attachment state
       
    25 */
       
    26 class CCalenAttachmentState : public CCalenState
       
    27     {
       
    28     public:
       
    29 
       
    30         /**
       
    31          * Symbain constructor
       
    32          * 
       
    33          * @param aController reference to CCalenController
       
    34          * @param aOutstandingNotifications holds outstanding notifications
       
    35          */ 
       
    36         static CCalenAttachmentState* NewLC( CCalenController& aController,
       
    37                 RHashSet<TCalenNotification>& aOutstandingNotifications );
       
    38 
       
    39         /**
       
    40          * Destructor
       
    41          */
       
    42         ~CCalenAttachmentState();
       
    43         
       
    44     public:
       
    45         
       
    46         /**
       
    47          * From CCalenState
       
    48          * Handles commands
       
    49          * 
       
    50          * @param aCommand command to be handled
       
    51          * @param aStateMachine access to the state machine
       
    52          */
       
    53         TBool HandleCommandL( const TCalenCommand& aCommand,
       
    54                               CCalenStateMachine& aStateMachine );
       
    55         /**
       
    56          * From CCalenState
       
    57          * Handles calendar notifications
       
    58          * 
       
    59          * @param aNotification any calendar notification
       
    60          * @param aStateMachine access to the state machine
       
    61          */
       
    62         void HandleNotificationL( const TCalenNotification& aNotification,
       
    63                                   CCalenStateMachine& aStateMachine ); 
       
    64         
       
    65         /**
       
    66          * Handles state activation
       
    67          * 
       
    68          * @param aStateMachine access to the state machine
       
    69          */
       
    70         void HandleStateActivationL(CCalenStateMachine& aStateMachine);
       
    71         
       
    72     private:
       
    73         
       
    74         /**
       
    75          * Default constructor
       
    76          * 
       
    77          * @param aController access to the CCalenController
       
    78          * @param aOutstandingNotifications holds outstanding notifications
       
    79          */
       
    80         CCalenAttachmentState( CCalenController& aController,
       
    81                     RHashSet<TCalenNotification>& aOutstandingNotifications );
       
    82         
       
    83         /**
       
    84          * Second phase construction
       
    85          */
       
    86         void ConstructL();
       
    87     };
       
    88 
       
    89 #endif // CALENATTACHMENTSTATE_H
       
    90 
       
    91 // end of file