phoneengine/phonemodel/inc/mpephonemodelinternal.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2006-2006 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:  Definition of MPEPhoneModelInternal class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_MPEPHONEMODELINTERNAL
       
    20 #define M_MPEPHONEMODELINTERNAL
       
    21 
       
    22 #include <pevirtualengine.h>
       
    23 
       
    24 class MPEDataStore;
       
    25 class MPEExternalDataHandler;
       
    26 class CPERemotePartyInfoMediator;
       
    27 
       
    28 
       
    29 /**
       
    30  *  Phone Model internal interface.
       
    31  *
       
    32  *  
       
    33  *
       
    34  *  @lib phoneengine
       
    35  *  @since S60 v4.0 
       
    36  */
       
    37 NONSHARABLE_CLASS( MPEPhoneModelInternal ) 
       
    38     {
       
    39 
       
    40 public:
       
    41 
       
    42     /**
       
    43      * Returns pointer to information object (CPEEngineInfo) 
       
    44      *
       
    45      * @since S60 v4.0
       
    46      * @return pointer to CPEEngineInfo object as MPEDataStore
       
    47      */
       
    48      virtual MPEDataStore* DataStore() = 0;    
       
    49 
       
    50     /**
       
    51      * Handle internal message
       
    52      *
       
    53      * @since S60 v4.0
       
    54      * @param aMessage specifies the event that has taken place
       
    55      * @param aCallId is the call id number.
       
    56      */
       
    57      virtual void HandleInternalMessage( const TInt aMessage ) = 0;
       
    58 
       
    59     /**
       
    60      * Reroutes messages from the susbsystems to the message handler
       
    61      *
       
    62      * @since S60 v4.0
       
    63      * @param aMessage is the message id.
       
    64      */
       
    65      virtual void SendMessage( 
       
    66             const MEngineMonitor::TPEMessagesFromPhoneEngine aMessage ) = 0;
       
    67 
       
    68     /**
       
    69      * Reroutes messages from the susbsystems to the message handler
       
    70      *
       
    71      * @since S60 v4.0
       
    72      * @param aMessage is the message id.
       
    73      * @param aCallId is the call id number.
       
    74      */
       
    75      virtual void SendMessage( 
       
    76             const MEngineMonitor::TPEMessagesFromPhoneEngine aMessage, 
       
    77             const TInt aCallId ) = 0;
       
    78      
       
    79     /**
       
    80      * Returns pointer to external data handler
       
    81      *
       
    82      * @since S60 v4.0
       
    83      * @return pointer to MPEExternalDataHandler object
       
    84      */
       
    85      virtual MPEExternalDataHandler* DataStoreExt() = 0;
       
    86      
       
    87      
       
    88      /**
       
    89       * Returns pointer to Mediator Command handler
       
    90       *
       
    91       * @since S60 v5.2
       
    92       * @return pointer to CPERemotePartyInfoMediator object
       
    93       */
       
    94      virtual CPERemotePartyInfoMediator* MediatorCommunicationHandler() = 0;
       
    95    
       
    96     };
       
    97 
       
    98 
       
    99 #endif // M_MPEPHONEMODELINTERNAL