phoneapp/phonemediatorcenter/inc/cphonemediatormessagefactory.h
changeset 37 ba76fc04e6c2
child 51 f39ed5e045e0
equal deleted inserted replaced
36:2eacb6118286 37:ba76fc04e6c2
       
     1 /*
       
     2 * Copyright (c) 2008 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 *     Factory for creating Mediator Message objects.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPHONEMEDIATORMESSAGEFACTORY_H
       
    21 #define CPHONEMEDIATORMESSAGEFACTORY_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class MPhoneMediatorMessage;
       
    28 class MPEEngineInfo;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 class CPhoneMediatorMessageFactory : public CBase
       
    33     {
       
    34     public:  
       
    35 
       
    36         /**
       
    37          * Destructor.
       
    38          */
       
    39         virtual ~CPhoneMediatorMessageFactory();
       
    40         
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         */
       
    44         static CPhoneMediatorMessageFactory* NewL( MPEEngineInfo& aEngineInfo );
       
    45         
       
    46         /**
       
    47         * Creates the concrete Mediator Message object.
       
    48         * @param aMessage - Message from Phone Engine (EPEMessage).
       
    49         * @param aCallId - Caller id
       
    50         * @return MPhoneMediatorMessage object or NULL if no associate object found for
       
    51         *         EPEMessage.
       
    52         */
       
    53         MPhoneMediatorMessage* CreateMessageL( const TInt aMessage, TInt aCallId );
       
    54         
       
    55 
       
    56     private:
       
    57 
       
    58         /**
       
    59         * C++ default constructor.
       
    60         */
       
    61         CPhoneMediatorMessageFactory( MPEEngineInfo& aEngineInfo );  
       
    62         
       
    63         /**
       
    64          * By default EPOC constructor is private.
       
    65          */
       
    66         void ConstructL();
       
    67         
       
    68              
       
    69     private:
       
    70         
       
    71         // Reference to Engine Info
       
    72         MPEEngineInfo& iEngineInfo;
       
    73 
       
    74     };
       
    75     
       
    76 #endif // CPHONEMEDIATORMESSAGEFACTORY_H
       
    77 
       
    78 // End of File