phoneapp/phoneuistates/tsrc/common/cphonestatemachinestub.cpp
changeset 77 2be0b271d017
equal deleted inserted replaced
72:c76a0b1755b9 77:2be0b271d017
       
     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 
       
    18 #include <e32base.h>
       
    19 #include <eikenv.h>
       
    20 #include <mpeengineinfo.h>
       
    21 #include "cphonestatemachine.h"
       
    22 #include "mphonestorage.h"
       
    23 
       
    24 class CPEEngineInfo: public CBase, public MPEEngineInfo
       
    25     {
       
    26 public:
       
    27     CPEEngineInfo():
       
    28     iAudioOutput(EPENotActive)
       
    29         {
       
    30         }
       
    31 
       
    32     virtual ~CPEEngineInfo()
       
    33         {
       
    34     
       
    35         }
       
    36 
       
    37     TInt ContactId2 () const {}
       
    38     void SetProtocolError( TInt aError, TInt aCallId ) {}
       
    39     TInt ProtocolError( TInt aCallId ) {}
       
    40     TBool IsOutgoingCallBarringActivated() {}
       
    41     void SetOutgoingCallBarringActivated( 
       
    42             TBool aActivated ) {}            
       
    43 		void SetIncomingCallForwarded( 
       
    44                 TBool aForwarded, TInt aCallId ) {}
       
    45 		TBool IncomingCallForwarded( TInt aCallId ) const {}                
       
    46     void SetContactId2( const TInt aContactId ) {}                   
       
    47     const CDesC8Array* ForwardAddressChoices( TInt aCallId ) const {}
       
    48     void SetForwardAddressChoices( const CDesC8Array* aArray, TInt aCallId ) {}
       
    49     void SetForwardAddressIndex( TInt aIndex ) {}
       
    50     TInt ForwardAddressIndex() {}
       
    51             
       
    52     const CCCECallParameters::TCCELineType& ALSLine() const{}
       
    53     const TBool& ALSLineSupport() const{}
       
    54     const TArray< TContactItemId > AlertForGroup() const {}
       
    55     const TBool& AudioMute() const{}
       
    56     const TPEAudioOutput& AudioOutput() const{  return iAudioOutput; }
       
    57     const TPEPhoneAudioRouteParameters& RouteParameters() const{}
       
    58     TBool AudioOutputAvailable( const TPEAudioOutput /*aOutput*/ ) const{}
       
    59     const TInt& AudioOutputPreference() const{}
       
    60     const TInt& AudioVolume() const{}
       
    61     RMobileCall::TMobileCallDirection CallDirection( const TInt /*aCallId*/ ) const{}
       
    62     const TInt& CallDuration() const{}
       
    63     TTimeIntervalSeconds CallDuration( const TInt /*aCallId*/ ) const{}
       
    64     const TPtrC CallerImage( const TInt /*aCallId*/ ) const {}
       
    65     const TPtrC CallerText( const TInt /*aCallId*/ ) const {}
       
    66     CFbsBitmap* CallerThumbnail( const TInt /*aCallId*/ ) const {}
       
    67     TBool HasCallerThumbnail( const TInt /*aCallId*/  ) const {}
       
    68     const TInt& CallId() const {}
       
    69     CCCECallParameters::TCCELineType CallALSLine( const TInt /*aCallId*/ ) const{}
       
    70     const MPEClientInformation& CallClientInformation( const TInt /*aCallId*/ ) const {}
       
    71     const TTime& CallStartTime( const TInt /*aCallId*/ ) const{}
       
    72     TPEState CallState( const TInt /*aCallId*/ ) const{}
       
    73     TPECallType CallType( const TInt /*aCallId*/ ) const{}
       
    74     const TPECallType& CallTypeCommand() const {}
       
    75     TBool IsSecureCall( const TInt /*aCallId*/ ) const{ return ETrue; }
       
    76     const TArray< TContactItemId > ContactGroups(
       
    77                 const TInt /*aCallId*/ ) const {}
       
    78     RMobileCall::TMobileCallAiur DataCallAIURSpeed( 
       
    79                const TInt /*aCallId*/ ) const {}
       
    80     const TPEDtmfString& DtmfString() const{}
       
    81     const TPEErrorInfo& ErrorInfo() const{}
       
    82     const TChar& KeyCode() const {}
       
    83     const TInt& KeypadVolume() const {}
       
    84     const TCCPTone& InbandTone() const{}
       
    85     TBool LoggingIndicator( const TInt /*aCallId*/ ) const {}
       
    86     TBool MissedCall( const TInt /*aCallId*/ ) const {}
       
    87     const TNWNetworkRegistrationStatus& NetworkRegistrationStatus() const{}
       
    88     const TPEContactFileName& PersonalRingingTone(
       
    89                 const TInt /*aCallId*/ ) const {}
       
    90     const TBool& PersonalToneStatus() const {}
       
    91     const TPEPhoneNumber& PhoneNumber() const{}
       
    92     const TBool& PhoneNumberIsServiceCode() const{}
       
    93     const TBool& ProactiveOrigin() const{}
       
    94     const TInt& ProfileId() const{}
       
    95     const TPEProfileName& ProfileName() const {}
       
    96     const TPEContactCompany& RemoteCompanyName(
       
    97                 const TInt /*aCallId*/ ) const {}
       
    98     RMobileCall::TMobileCallRemoteIdentityStatus RemoteIdentity( 
       
    99                 const TInt /*aCallId*/ ) const{}
       
   100     const TPEContactName& RemoteName( const TInt /*aCallId*/ ) const {}
       
   101     const TPEPhoneNumber& RemotePhoneNumber(
       
   102                 const TInt /*aCallId*/ ) const {}
       
   103     const TPEPhoneNumberIdType& RemotePhoneNumberType(
       
   104                 const TInt /*aCallId*/ ) const {}
       
   105     const TPtrC RemoteTextToSpeechText(
       
   106                 const TInt /*aCallId*/ ) const {}
       
   107     const CDesCArray&  RemotePredefinedDtmfStrings(
       
   108                 const TInt /*aCallId*/ ) const {}
       
   109     const TProfileRingingType& RingingType() const{}
       
   110     const TPEContactFileName& RingingTone( const TInt& /*aCallId*/ ) const {}
       
   111     const TInt& RingingVolume() const {}
       
   112     const TBool& TextToSpeech() const {}
       
   113     const TPEPhoneNumber& VoiceMailBoxNumberLine1() const  {}
       
   114     const TPEPhoneNumber& VoiceMailBoxNumberLine2() const {}
       
   115     void SetALSLine( const CCCECallParameters::TCCELineType& /*aALSLine*/ ){}
       
   116     void SetALSLineSupport( const TBool& /*aALSLineSupport*/ ){}
       
   117     void SetAudioMuteCommand( const TInt& /*aAudioMute*/ ){}
       
   118     void SetAudioOutputCommand( const TPEAudioOutput& /*aOutput*/,
       
   119                                                  const TBool /*aShowNote*/  ){}
       
   120     void SetAudioVolumeCommand( const TInt& /*aAudioVolume*/ ){}
       
   121     void SetCallId( const TInt& /*aCallId*/ ){}
       
   122     void SetCallALSLine( const CCCECallParameters::TCCELineType& /*aALSLine*/, const TInt /*aCallId*/ ){}
       
   123     void SetCallTypeCommand( const TPECallType& /*aCallType*/ ){}
       
   124     void SetDtmfStringCommand( const TPEDtmfString& /*aDtmfString*/ ){}
       
   125     void SetDynamicHscsdParams( const TInt /*aRxSlots*/ ) {}
       
   126     void SetInbandTone( const TCCPTone /*aTone*/ ) {}
       
   127     void SetKeyCode( const TChar& /*aKeyCode*/ ){}
       
   128     void SetPhoneNumber( const TPEPhoneNumber& /*aPhoneNumber*/ ){}
       
   129     const TBool& TwoDigitSupportStatus() const {}
       
   130     TUint32 ServiceIdCommand() const{}
       
   131     void SetServiceIdCommand( TUint32 /*aServiceId*/ ){}
       
   132     TUint32 ServiceId( const TInt /*aCallId*/ ) const {}
       
   133     const TPEActiveForwardInfo& ActiveForwardingInfo() const{}
       
   134     const TPEBarringInfo& BarringInfo() const{}
       
   135     TInt CallConference( const TInt /*aCallId*/ ) const{}
       
   136     TPECallControlCaps CallControlCaps( const TInt /*aCallId*/ ) const{}
       
   137     TBool CallForwarded( const TInt /*aCallId*/ ) const{}
       
   138     RMobilePhone::TMobileService CallService( const TInt /*aCallId*/ ) const{}
       
   139     TUint32 ConferenceCallCaps( const TInt /*aCallId*/ ) const{}
       
   140     const TName& ConferenceMemberName( const TInt /*aCallId*/ ) const{}
       
   141     TInt IsConferenceMemberId( const TInt /*aCallId*/ ) const{}
       
   142     const TPEPhoneNumber& EmergencyNumber() const{}
       
   143     TInt NumberOfConferenceMembers( const TInt /*aCallId*/ ) const{}
       
   144     const TPEPhoneNumber& RemoteColpNumber(
       
   145                 const TInt /*aCallId*/ ) const {}
       
   146     const TPESimState& SimState() const
       
   147         {
       
   148         return EPESimStatusUninitialized;
       
   149         }
       
   150     TBool SecureSpecified() const{ return EFalse; }
       
   151     const TPESSCommandInfo& SSCommandInfo() const{}
       
   152     void SetEmergencyNumber( const TPEPhoneNumber& /*aEmergencyNumbers*/ ){}
       
   153     const TPEContactName& RemotePartyName( const TInt /*aCallId*/ ) const{}
       
   154     TInt ErrorCode() const{}
       
   155     const TDesC8& ContactLink( const TInt /*aCallId*/ ) const {}
       
   156     const TName& DataPortName() const {}
       
   157     const TPEPhoneNumber& UnattendedTransferTarget( 
       
   158                 TInt /*aCallId*/ ) const {}
       
   159     void SetUnattendedTransferTarget( 
       
   160           const TPEPhoneNumber& /*aTarget*/, TInt /*aCallId*/ ) {}
       
   161     void SetTransferTargetCommand( const TPEPhoneNumber& /*aTransferTarget*/ ) {}
       
   162     
       
   163     const TPEPhoneNumber& TransferTargetCommand() const {}
       
   164     
       
   165     TBool CheckIfCallStateExists( const TPEState& aCallState ) {}
       
   166     
       
   167     TPEState ConferenceCallState() const {}
       
   168     
       
   169     TPECallOrigin CallOrigin( const TInt aCallId ) const {}
       
   170     
       
   171 public:
       
   172     TPEAudioOutput iAudioOutput;
       
   173     
       
   174     };
       
   175 
       
   176 class CPhoneEngine : public MPEPhoneModel
       
   177     {
       
   178 public:
       
   179     CPhoneEngine()
       
   180         {
       
   181         iEngineInfo = new (ELeave) CPEEngineInfo();
       
   182         }
       
   183     
       
   184     ~CPhoneEngine()
       
   185         {
       
   186         delete iEngineInfo;
       
   187         }
       
   188     
       
   189     MPEEngineInfo* EngineInfo() 
       
   190          {
       
   191          return iEngineInfo;
       
   192          }
       
   193      
       
   194     void HandleMessage( const TInt /*aMessage*/ ) {}
       
   195      
       
   196     TPtrC NameByMessageToPhoneEngine( const TInt /*aMessage*/ ) const {}
       
   197 
       
   198     TPtrC NameByMessageFromPhoneEngine( const TInt /*aMessage*/ ) const {}
       
   199     
       
   200 private:
       
   201     CPEEngineInfo* iEngineInfo;
       
   202     };
       
   203 
       
   204 
       
   205 CPhoneStateMachine::CPhoneStateMachine(
       
   206     MPhoneViewCommandHandle* /*aViewCommandHandle*/ )
       
   207     {
       
   208     iPhoneEngine = new (ELeave) CPhoneEngine();
       
   209     }
       
   210 
       
   211 CPhoneStateMachine::~CPhoneStateMachine()
       
   212     {
       
   213     delete iPhoneEngine;
       
   214     };
       
   215 
       
   216 void CPhoneStateMachine::ChangeState( TInt aState ) {};
       
   217 
       
   218 MPhoneState* CPhoneStateMachine::State() { return NULL; };
       
   219 
       
   220 void CPhoneStateMachine::SetPhoneEngine( MPEPhoneModel* /*aPhoneEngine*/ ) {};
       
   221 
       
   222 MPEPhoneModel* CPhoneStateMachine::PhoneEngine() { return iPhoneEngine; };
       
   223 
       
   224 MPEEngineInfo* CPhoneStateMachine::PhoneEngineInfo() 
       
   225      {
       
   226      return iPhoneEngine->EngineInfo();
       
   227      }
       
   228 
       
   229 MPEPhoneModel* CPhoneStateMachine::CreatePhoneEngineL( 
       
   230     MEngineMonitor& /*aEngineMonitor*/ ) { return iPhoneEngine; };
       
   231 void CPhoneStateMachine::SetCallId( TInt /*aCallId*/ ) {};
       
   232 void CPhoneStateMachine::SendPhoneEngineMessage( TInt /*aMessage*/ ) {};
       
   233 MPhoneStorage* CPhoneStateMachine::PhoneStorage() { return NULL; }; 
       
   234 CEikonEnv* CPhoneStateMachine::EikonEnv( ) const { return NULL; }
       
   235 
       
   236 // end of file