satengine/satserver/inc/msatmultimodeapi.h
changeset 33 8d5d7fcf9b59
child 48 78df25012fda
equal deleted inserted replaced
32:1f002146abb4 33:8d5d7fcf9b59
       
     1 /*
       
     2 * Copyright (c) 2007-2010 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:  interface that access to etelmm API in sat
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MSATMULTIMODEAPI_H
       
    20 #define MSATMULTIMODEAPI_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <etel.h>
       
    24 #include <etelmm.h>
       
    25 #include <rmmcustomapi.h>
       
    26 
       
    27 
       
    28 /**
       
    29  *  Encapsule the access to etelmm API in sat
       
    30  *
       
    31  *  @lib satengine.lib
       
    32  *  @since S60 v5.0
       
    33  */
       
    34 class MSatMultiModeApi
       
    35     {
       
    36 
       
    37 public:
       
    38     
       
    39     /**
       
    40      * Gives reference to active RMobilePhone session
       
    41      *
       
    42      * @return Reference to active RMobilePhone server session
       
    43      */
       
    44     virtual RMobilePhone* Phone() = 0;
       
    45 
       
    46     /**
       
    47      * Gives reference to active Dummy RMobilePhone session
       
    48      *
       
    49      * @return Reference to active Dummy RMobilePhone server session
       
    50      */
       
    51     virtual RMobilePhone* DummyPhone() = 0;
       
    52 
       
    53     /**
       
    54      * Gives reference to active RMmCustomApi session
       
    55      *
       
    56      * @return Reference to active RMmCustomApi server session
       
    57      */
       
    58     virtual RMmCustomAPI* CustomApi() = 0;
       
    59 
       
    60     /**
       
    61      * Lowers error granularity to basic errors
       
    62      */
       
    63     virtual void LowerErrorGranularity() = 0;
       
    64 
       
    65     /**
       
    66      * Raises error granularity to extended errors
       
    67      */
       
    68     virtual void RaiseErrorGranularity() = 0;
       
    69     
       
    70     /**
       
    71      * Access RMobilePhone::GetNetworkRegistrationStatus
       
    72      * for the paramter information please see the etelmm.h
       
    73      */
       
    74     virtual void GetNetworkRegistrationStatus( TRequestStatus& aReqStatus, 
       
    75                 RMobilePhone::TMobilePhoneRegistrationStatus& aStatus ) = 0;
       
    76     
       
    77     /**
       
    78      * Access RMobilePhone::NotifyNetworkRegistrationStatusChange
       
    79      * for the paramter information please see the etelmm.h
       
    80      */ 
       
    81     virtual void NotifyNetworkRegistrationStatusChange(
       
    82                 TRequestStatus& aReqStatus,
       
    83                 RMobilePhone::TMobilePhoneRegistrationStatus& aStatus) = 0;
       
    84                 
       
    85     /**
       
    86      * Access RMobilePhone::GetSubscriberId
       
    87      * for the paramter information please see the etelmm.h
       
    88      */ 
       
    89     virtual void GetSubscriberId( TRequestStatus& aReqStatus, 
       
    90                     RMobilePhone::TMobilePhoneSubscriberId& aId ) = 0;              
       
    91 
       
    92     /**
       
    93      * Access RMobilePhone::SendDTMFTones
       
    94      * for the paramter information please see the etelmm.h
       
    95      */ 
       
    96     virtual void SendDTMFTones(TRequestStatus& aReqStatus, 
       
    97                     const TDesC& aTones) = 0;    
       
    98     
       
    99     /**
       
   100      * Access RMobilePhone::ContinueDTMFStringSending
       
   101      * for the paramter information please see the etelmm.h
       
   102      */ 
       
   103     virtual TInt ContinueDTMFStringSending( TBool aContinue ) = 0;
       
   104     /**
       
   105      * Access RMobilePhone::CancelAsyncRequest
       
   106      * for the paramter information please see the etelmm.h
       
   107      */
       
   108     virtual void CancelAsyncRequest(TInt aReqToCancel) = 0;
       
   109     
       
   110     
       
   111     /**
       
   112      * Access RMobilePhone::SendNetworkServiceRequestNoFdnCheck
       
   113      * for the paramter information please see the etelmm.h
       
   114      */
       
   115     virtual void SendNetworkServiceRequestNoFdnCheck( 
       
   116             TRequestStatus& aReqStatus, const TDesC& aServiceString) = 0;
       
   117             
       
   118     /**
       
   119      * Access RMobileCall::DialNoFdnCheck
       
   120      * for the paramter information please see the etelmm.h
       
   121      */
       
   122     virtual void DialNoFdnCheck(TRequestStatus& aStatus,
       
   123                 const TDesC8& aCallParams,const TDesC& aTelNumber) = 0;
       
   124                                             
       
   125     /**
       
   126      * Access RMobileUssdMessaging::SendNetworkServiceRequestNoFdnCheck
       
   127      * for the paramter information please see the etelmm.h
       
   128      */
       
   129     virtual void SendMessageNoFdnCheck( TRequestStatus& aReqStatus,
       
   130                 const TDesC8& aMsgData, const TDesC8& aMsgAttributes ) = 0 ;
       
   131     /**
       
   132      * Access RMobileCall::DialCancel
       
   133      */
       
   134     virtual void DialCancel() = 0;
       
   135 
       
   136     /**
       
   137      * Check if there is an incoming call 
       
   138      * @return ETrue if there is an incoming call
       
   139      */
       
   140     virtual TBool IsCallIncoming() = 0;
       
   141 
       
   142     /**
       
   143      * Access RMobileCall::NotifyMobileCallStatusChange
       
   144      */
       
   145     virtual void NotifyMobileCallStatusChange( TRequestStatus& aReqStatus,
       
   146                     RMobileCall::TMobileCallStatus& aStatus) = 0; 
       
   147 
       
   148     /**
       
   149      * Access RMobileCall::NotifyStatusChangeCancel
       
   150      */
       
   151     virtual void NotifyCallStatusChangeCancel() = 0;
       
   152 
       
   153     /**
       
   154      * Access RMobilePhone::TerminateActiveCalls
       
   155      */
       
   156     virtual void TerminateActiveCalls(TRequestStatus& aReqStatus) = 0;
       
   157     
       
   158     /**
       
   159      * Access RMboileCall::GetMobileCallInfo
       
   160      */
       
   161     virtual TInt GetMobileCallInfo(TDes8& aCallInfo) = 0;
       
   162 
       
   163     /**
       
   164      * Access RMboileCall::DialEmergencyCall
       
   165      */
       
   166     virtual void DialEmergencyCall(TRequestStatus& aReqStatus, 
       
   167                 const TDesC& aNumber) = 0;
       
   168     
       
   169     };
       
   170 
       
   171 #endif // MSATMULTIMODEAPI_H