|
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 #include "contactenginestub.h" |
|
18 |
|
19 #include <cntitem.h> |
|
20 #include <cntfield.h> |
|
21 #include <cntdef.h> |
|
22 #include <cntfldst.h> |
|
23 |
|
24 static TInt iValue = KErrNone; |
|
25 static TContactEngineCalledFunction iFunc = EContactEngineStubNone; |
|
26 static TBool iFindField = EFalse; |
|
27 static TBool iFindFieldInfo = ETrue; |
|
28 static CContactTextField iTextField; |
|
29 |
|
30 // ----------------------------------------------------------------------------- |
|
31 // CContactTextField |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 void CContactTextField::SetTextL(const TDesC& /*aText*/) |
|
35 { |
|
36 iFunc = EContactEngineStubSetText; |
|
37 } |
|
38 |
|
39 CContactTextField::~CContactTextField() |
|
40 { |
|
41 |
|
42 } |
|
43 |
|
44 void CContactTextField::InternalizeL(RReadStream& /*aStream*/) |
|
45 { |
|
46 |
|
47 } |
|
48 void CContactTextField::ExternalizeL(RWriteStream& /*aStream*/) const |
|
49 { |
|
50 |
|
51 } |
|
52 TStreamId CContactTextField::StoreL(CStreamStore& /*aStore*/) const |
|
53 { |
|
54 return TStreamId( 0 ); |
|
55 } |
|
56 |
|
57 void CContactTextField::RestoreL(CStreamStore& /*aStore*/,RReadStream& /*aStream*/) |
|
58 { |
|
59 |
|
60 } |
|
61 |
|
62 TBool CContactTextField::IsFull() const |
|
63 { |
|
64 return EFalse; |
|
65 } |
|
66 |
|
67 // ----------------------------------------------------------------------------- |
|
68 // ContactEngineStubHelper |
|
69 // ----------------------------------------------------------------------------- |
|
70 // |
|
71 void ContactEngineStubHelper::Reset() |
|
72 { |
|
73 iValue = KErrNone; |
|
74 iFunc = EContactEngineStubNone; |
|
75 iFindField = EFalse; |
|
76 iFindFieldInfo = ETrue; |
|
77 } |
|
78 |
|
79 void ContactEngineStubHelper::SetErrorCode( TInt aVal ) |
|
80 { |
|
81 iValue = aVal; |
|
82 } |
|
83 |
|
84 TContactEngineCalledFunction ContactEngineStubHelper::GetCalledFunction() |
|
85 { |
|
86 return iFunc; |
|
87 } |
|
88 |
|
89 void ContactEngineStubHelper::SetSIPFieldFound( TBool aFound ) |
|
90 { |
|
91 iFindField = aFound; |
|
92 } |
|
93 |
|
94 void ContactEngineStubHelper::SetSIPFieldInfoFound( TBool aFound ) |
|
95 { |
|
96 iFindFieldInfo = aFound; |
|
97 } |