tsrc/mocks/phoneuiqtviewadapter/mock_phonecallheaderutil.cpp
author hgs
Mon, 04 Oct 2010 16:06:10 +0300
changeset 76 cfea66083b62
parent 74 d1c62c765e48
permissions -rw-r--r--
201039
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
74
hgs
parents:
diff changeset
     1
/** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     2
* All rights reserved.
hgs
parents:
diff changeset
     3
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     4
* under the terms of the License "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     5
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     6
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     7
*
hgs
parents:
diff changeset
     8
* Initial Contributors:
hgs
parents:
diff changeset
     9
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    10
*
hgs
parents:
diff changeset
    11
* Contributors:
hgs
parents:
diff changeset
    12
*
hgs
parents:
diff changeset
    13
* Description:
hgs
parents:
diff changeset
    14
*
hgs
parents:
diff changeset
    15
*/
hgs
parents:
diff changeset
    16
#include <QDebug>
hgs
parents:
diff changeset
    17
#include <smcmockclassincludes.h>
hgs
parents:
diff changeset
    18
#include "phonecallheaderutil.h"
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
// ============================ MEMBER FUNCTIONS ===============================
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    23
// PhoneCallHeaderUtil::PhoneCallHeaderUtil
hgs
parents:
diff changeset
    24
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    25
//
hgs
parents:
diff changeset
    26
PhoneCallHeaderUtil::PhoneCallHeaderUtil( 
hgs
parents:
diff changeset
    27
        MPEEngineInfo & engineInfo )
hgs
parents:
diff changeset
    28
    : m_engineInfo(engineInfo)
hgs
parents:
diff changeset
    29
    {
hgs
parents:
diff changeset
    30
    
hgs
parents:
diff changeset
    31
    }
hgs
parents:
diff changeset
    32
hgs
parents:
diff changeset
    33
hgs
parents:
diff changeset
    34
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    35
// PhoneCallHeaderUtil::~PhoneCallHeaderUtil
hgs
parents:
diff changeset
    36
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    37
//
hgs
parents:
diff changeset
    38
PhoneCallHeaderUtil::~PhoneCallHeaderUtil(  )
hgs
parents:
diff changeset
    39
    {
hgs
parents:
diff changeset
    40
    
hgs
parents:
diff changeset
    41
    }
hgs
parents:
diff changeset
    42
hgs
parents:
diff changeset
    43
hgs
parents:
diff changeset
    44
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    45
// PhoneCallHeaderUtil::LabelText
hgs
parents:
diff changeset
    46
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    47
//
hgs
parents:
diff changeset
    48
const TDesC & PhoneCallHeaderUtil::LabelText( 
hgs
parents:
diff changeset
    49
        TInt aCallId )
hgs
parents:
diff changeset
    50
    {
hgs
parents:
diff changeset
    51
    SMC_MOCK_METHOD1( const TDesC &, TInt, aCallId )
hgs
parents:
diff changeset
    52
    }
hgs
parents:
diff changeset
    53
hgs
parents:
diff changeset
    54
hgs
parents:
diff changeset
    55
// -----------------------------------------------------------------------------
76
hgs
parents: 74
diff changeset
    56
// PhoneCallHeaderUtil::GetCliTexts
hgs
parents: 74
diff changeset
    57
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
    58
//
hgs
parents: 74
diff changeset
    59
void PhoneCallHeaderUtil::GetCliTexts( 
hgs
parents: 74
diff changeset
    60
        TInt aCallId,
hgs
parents: 74
diff changeset
    61
        TDes & aCliText,
hgs
parents: 74
diff changeset
    62
        ClippingDirection & aCliClip,
hgs
parents: 74
diff changeset
    63
        TDes & aSecondaryCliText,
hgs
parents: 74
diff changeset
    64
        ClippingDirection & aSecondaryCliClip )
hgs
parents: 74
diff changeset
    65
    {
hgs
parents: 74
diff changeset
    66
    SMC_MOCK_METHOD5( void, TInt, aCallId, 
hgs
parents: 74
diff changeset
    67
        TDes &, aCliText, 
hgs
parents: 74
diff changeset
    68
        ClippingDirection &, aCliClip, 
hgs
parents: 74
diff changeset
    69
        TDes &, aSecondaryCliText, 
hgs
parents: 74
diff changeset
    70
        ClippingDirection &, aSecondaryCliClip )
hgs
parents: 74
diff changeset
    71
    }
hgs
parents: 74
diff changeset
    72
hgs
parents: 74
diff changeset
    73
hgs
parents: 74
diff changeset
    74
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
    75
// PhoneCallHeaderUtil::GetCli
hgs
parents: 74
diff changeset
    76
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
    77
//
hgs
parents: 74
diff changeset
    78
void PhoneCallHeaderUtil::GetCli( 
hgs
parents: 74
diff changeset
    79
        TInt aCallId,
hgs
parents: 74
diff changeset
    80
        TDes & aCliText,
hgs
parents: 74
diff changeset
    81
        ClippingDirection & aClipping )
hgs
parents: 74
diff changeset
    82
    {
hgs
parents: 74
diff changeset
    83
    SMC_MOCK_METHOD3( void, TInt, aCallId, 
hgs
parents: 74
diff changeset
    84
        TDes &, aCliText, 
hgs
parents: 74
diff changeset
    85
        ClippingDirection &, aClipping )
hgs
parents: 74
diff changeset
    86
    }
hgs
parents: 74
diff changeset
    87
hgs
parents: 74
diff changeset
    88
hgs
parents: 74
diff changeset
    89
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
    90
// PhoneCallHeaderUtil::GetSecondaryCli
hgs
parents: 74
diff changeset
    91
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
    92
//
hgs
parents: 74
diff changeset
    93
void PhoneCallHeaderUtil::GetSecondaryCli( 
hgs
parents: 74
diff changeset
    94
        TInt aCallId,
hgs
parents: 74
diff changeset
    95
        TDes & aSecondaryCliText,
hgs
parents: 74
diff changeset
    96
        ClippingDirection & aClipping )
hgs
parents: 74
diff changeset
    97
    {
hgs
parents: 74
diff changeset
    98
    SMC_MOCK_METHOD3( void, TInt, aCallId, 
hgs
parents: 74
diff changeset
    99
        TDes &, aSecondaryCliText, 
hgs
parents: 74
diff changeset
   100
        ClippingDirection &, aClipping )
hgs
parents: 74
diff changeset
   101
    }
hgs
parents: 74
diff changeset
   102
hgs
parents: 74
diff changeset
   103
hgs
parents: 74
diff changeset
   104
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
   105
// PhoneCallHeaderUtil::RemotePhoneNumber
hgs
parents: 74
diff changeset
   106
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
   107
//
hgs
parents: 74
diff changeset
   108
const TDesC & PhoneCallHeaderUtil::RemotePhoneNumber( 
hgs
parents: 74
diff changeset
   109
        TInt aCallId ) const
hgs
parents: 74
diff changeset
   110
    {
hgs
parents: 74
diff changeset
   111
    SMC_MOCK_METHOD1( const TDesC &, TInt, aCallId )
hgs
parents: 74
diff changeset
   112
    }
hgs
parents: 74
diff changeset
   113
hgs
parents: 74
diff changeset
   114
hgs
parents: 74
diff changeset
   115
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
   116
// PhoneCallHeaderUtil::CallType
hgs
parents: 74
diff changeset
   117
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
   118
//
hgs
parents: 74
diff changeset
   119
TInt PhoneCallHeaderUtil::CallType( 
hgs
parents: 74
diff changeset
   120
        const TInt aCallId )
hgs
parents: 74
diff changeset
   121
    {
hgs
parents: 74
diff changeset
   122
    SMC_MOCK_METHOD1( TInt, const TInt, aCallId )
hgs
parents: 74
diff changeset
   123
    }
hgs
parents: 74
diff changeset
   124
hgs
parents: 74
diff changeset
   125
hgs
parents: 74
diff changeset
   126
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
   127
// PhoneCallHeaderUtil::ServiceId
hgs
parents: 74
diff changeset
   128
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
   129
//
hgs
parents: 74
diff changeset
   130
TInt PhoneCallHeaderUtil::ServiceId( 
hgs
parents: 74
diff changeset
   131
        const TInt aCallId )
hgs
parents: 74
diff changeset
   132
    {
hgs
parents: 74
diff changeset
   133
    SMC_MOCK_METHOD1( TInt, const TInt, aCallId )
hgs
parents: 74
diff changeset
   134
    }
hgs
parents: 74
diff changeset
   135
hgs
parents: 74
diff changeset
   136
hgs
parents: 74
diff changeset
   137
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
   138
// PhoneCallHeaderUtil::IsCallForwarded
hgs
parents: 74
diff changeset
   139
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
   140
//
hgs
parents: 74
diff changeset
   141
TBool PhoneCallHeaderUtil::IsCallForwarded( 
hgs
parents: 74
diff changeset
   142
        TInt aCallId )
hgs
parents: 74
diff changeset
   143
    {
hgs
parents: 74
diff changeset
   144
    SMC_MOCK_METHOD1( TBool, TInt, aCallId )
hgs
parents: 74
diff changeset
   145
    }
hgs
parents: 74
diff changeset
   146
hgs
parents: 74
diff changeset
   147
hgs
parents: 74
diff changeset
   148
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
   149
// PhoneCallHeaderUtil::SecureSpecified
hgs
parents: 74
diff changeset
   150
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
   151
//
hgs
parents: 74
diff changeset
   152
TBool PhoneCallHeaderUtil::SecureSpecified(  )
hgs
parents: 74
diff changeset
   153
    {
hgs
parents: 74
diff changeset
   154
    SMC_MOCK_METHOD0( TBool )
hgs
parents: 74
diff changeset
   155
    }
hgs
parents: 74
diff changeset
   156
hgs
parents: 74
diff changeset
   157
hgs
parents: 74
diff changeset
   158
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
   159
// PhoneCallHeaderUtil::Ciphering
hgs
parents: 74
diff changeset
   160
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
   161
//
hgs
parents: 74
diff changeset
   162
TBool PhoneCallHeaderUtil::Ciphering( 
hgs
parents: 74
diff changeset
   163
        TInt aCallId )
hgs
parents: 74
diff changeset
   164
    {
hgs
parents: 74
diff changeset
   165
    SMC_MOCK_METHOD1( TBool, TInt, aCallId )
hgs
parents: 74
diff changeset
   166
    }
hgs
parents: 74
diff changeset
   167
hgs
parents: 74
diff changeset
   168
hgs
parents: 74
diff changeset
   169
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
   170
// PhoneCallHeaderUtil::CallState
hgs
parents: 74
diff changeset
   171
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
   172
//
hgs
parents: 74
diff changeset
   173
TInt PhoneCallHeaderUtil::CallState( 
hgs
parents: 74
diff changeset
   174
        TInt aCallId ) const
hgs
parents: 74
diff changeset
   175
    {
hgs
parents: 74
diff changeset
   176
    SMC_MOCK_METHOD1( TInt, TInt, aCallId )
hgs
parents: 74
diff changeset
   177
    }
hgs
parents: 74
diff changeset
   178
hgs
parents: 74
diff changeset
   179
hgs
parents: 74
diff changeset
   180
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
   181
// PhoneCallHeaderUtil::CallerImage
hgs
parents: 74
diff changeset
   182
// -----------------------------------------------------------------------------
hgs
parents: 74
diff changeset
   183
//
hgs
parents: 74
diff changeset
   184
const TDesC & PhoneCallHeaderUtil::CallerImage( 
hgs
parents: 74
diff changeset
   185
        const TInt aCallId )
hgs
parents: 74
diff changeset
   186
    {
hgs
parents: 74
diff changeset
   187
    SMC_MOCK_METHOD1( const TDesC &, const TInt, aCallId )
hgs
parents: 74
diff changeset
   188
    }
hgs
parents: 74
diff changeset
   189
hgs
parents: 74
diff changeset
   190
hgs
parents: 74
diff changeset
   191
// -----------------------------------------------------------------------------
74
hgs
parents:
diff changeset
   192
// PhoneCallHeaderUtil::EmergencyHeaderText
hgs
parents:
diff changeset
   193
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   194
//
hgs
parents:
diff changeset
   195
const TDesC & PhoneCallHeaderUtil::EmergencyHeaderText(  )
hgs
parents:
diff changeset
   196
    {
hgs
parents:
diff changeset
   197
    SMC_MOCK_METHOD0( const TDesC & )
hgs
parents:
diff changeset
   198
    }
hgs
parents:
diff changeset
   199
hgs
parents:
diff changeset
   200
hgs
parents:
diff changeset
   201
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   202
// PhoneCallHeaderUtil::AttemptingEmergencyText
hgs
parents:
diff changeset
   203
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   204
//
hgs
parents:
diff changeset
   205
const TDesC & PhoneCallHeaderUtil::AttemptingEmergencyText(  )
hgs
parents:
diff changeset
   206
    {
hgs
parents:
diff changeset
   207
    SMC_MOCK_METHOD0( const TDesC & )
hgs
parents:
diff changeset
   208
    }
hgs
parents:
diff changeset
   209
hgs
parents:
diff changeset
   210
hgs
parents:
diff changeset
   211
// -----------------------------------------------------------------------------
76
hgs
parents: 74
diff changeset
   212
// PhoneCallHeaderUtil::IsVoiceCall
74
hgs
parents:
diff changeset
   213
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   214
//
76
hgs
parents: 74
diff changeset
   215
TBool PhoneCallHeaderUtil::IsVoiceCall( 
74
hgs
parents:
diff changeset
   216
        TInt aCallId ) const
hgs
parents:
diff changeset
   217
    {
76
hgs
parents: 74
diff changeset
   218
    SMC_MOCK_METHOD1( TBool, TInt, aCallId )
74
hgs
parents:
diff changeset
   219
    }
hgs
parents:
diff changeset
   220
hgs
parents:
diff changeset
   221
hgs
parents:
diff changeset
   222
// -----------------------------------------------------------------------------
76
hgs
parents: 74
diff changeset
   223
// PhoneCallHeaderUtil::IsVideoCall
74
hgs
parents:
diff changeset
   224
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   225
//
76
hgs
parents: 74
diff changeset
   226
TBool PhoneCallHeaderUtil::IsVideoCall( 
hgs
parents: 74
diff changeset
   227
        int aCallId ) const
74
hgs
parents:
diff changeset
   228
    {
76
hgs
parents: 74
diff changeset
   229
    SMC_MOCK_METHOD1( TBool, int, aCallId )
74
hgs
parents:
diff changeset
   230
    }
hgs
parents:
diff changeset
   231
hgs
parents:
diff changeset
   232