dosservices/commondsy/inc/CDSYEventManager.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     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:  Declaration of CCDSYEventManager class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CDSYEVENTMANAGER_H
       
    20 #define CDSYEVENTMANAGER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "CDSYServiceLogic.h"
       
    25 
       
    26 
       
    27 
       
    28 // CONSTANTS
       
    29 // MACROS
       
    30 // DATA TYPES
       
    31 // FUNCTION PROTOTYPES
       
    32 // FORWARD DECLARATIONS
       
    33 class CCDSYFactory;
       
    34 class CCDSYController;
       
    35 
       
    36 
       
    37 
       
    38 /**
       
    39 *  CCDSYEventManager
       
    40 *  This class implements the CCDSYEventManager, which raises events using CDosEventManager.
       
    41 */
       
    42 NONSHARABLE_CLASS( CCDSYEventManager ): public CBase, public MCDSYServiceLogic
       
    43     {
       
    44     public:
       
    45         /**
       
    46         * Destructor.
       
    47         */
       
    48         ~CCDSYEventManager();
       
    49 
       
    50         /**
       
    51         * Creates a new instance of CCDSYEventManager.
       
    52         * @param CCDSYController& aCDSYController       Reference to CCDSYController.
       
    53         * @param aCDSYFactory& aCDSYFactory             Reference to an instance of aCDSYFactory.
       
    54         * @return CCDSYEventManager*                    Pointer to an instance of CCDSYEventManager.
       
    55         */
       
    56         static CCDSYEventManager* NewL( CCDSYController& aCDSYController, CCDSYFactory& aCDSYFactory );
       
    57 
       
    58         /**
       
    59         * Processes the incoming TCDSYMessage. The function raises an event to using CDosEventManager.
       
    60         * @param TCDSYMessage& aCDSYMessage             Event message.
       
    61         * @return void 
       
    62         */
       
    63         void ProcessMessageL( TCDSYMessage& aCDSYMessage );
       
    64 
       
    65         /**
       
    66         * Expires the message.
       
    67         * @param TCDSYMessage& aCDSYMessage             Message to be expired.
       
    68         * @return void 
       
    69         */
       
    70         inline void ExpireMessageL( TCDSYMessage& /*aCDSYMessage*/ )
       
    71             {
       
    72             }
       
    73 
       
    74     private:
       
    75         /**
       
    76         * Constructor.
       
    77         * @param CCDSYController& aCDSYController       Reference to CCDSYController.
       
    78         * @param CCDSYFactory& aCDSYFactory             Reference to an instance of CCDSYFactory.
       
    79         */
       
    80         CCDSYEventManager( CCDSYController& aCDSYController, CCDSYFactory& aCDSYFactory );
       
    81 
       
    82         /**
       
    83         * 2nd phase constructor.
       
    84         * @return void
       
    85         */
       
    86         void ConstructL();
       
    87 
       
    88     private:
       
    89         CCDSYController& iCDSYController;
       
    90         CCDSYFactory& iCDSYFactory;
       
    91     };
       
    92 
       
    93 
       
    94 
       
    95 #endif //#ifndef CDSYEVENTMANAGER_H
       
    96 
       
    97 
       
    98 
       
    99 //  End of File