equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007-2008 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: Dummy implementation of MCall |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef BTMCDUMMY_H_ |
|
19 #define BTMCDUMMY_H_ |
|
20 |
|
21 #include <mcall.h> |
|
22 |
|
23 class MBtmcDummy : public MCall |
|
24 { |
|
25 public: |
|
26 |
|
27 MBtmcDummy() {}; |
|
28 ~MBtmcDummy() {}; |
|
29 |
|
30 TInt CallIndex() const { return 0; }; |
|
31 |
|
32 /** |
|
33 * Call type getter |
|
34 * |
|
35 * @since S60 v5.1 |
|
36 * @return the call type |
|
37 */ |
|
38 CCPCall::TCallType CallType() const {return CCPCall::ECallTypeCSVoice; }; |
|
39 |
|
40 |
|
41 /** |
|
42 * Call state getter |
|
43 * |
|
44 * @since S60 v5.1 |
|
45 * @return the call state |
|
46 */ |
|
47 CCPCall::TCallState CallState() const { return CCPCall::EStateIdle; }; |
|
48 /** |
|
49 * Getter for the service ID of the call. |
|
50 * |
|
51 * @since S60 v5.1 |
|
52 * @return the service ID of the call |
|
53 */ |
|
54 TUint32 ServiceId() const { return 0; }; |
|
55 |
|
56 /** |
|
57 * Call direction getter |
|
58 * |
|
59 * @since S60 v5.1 |
|
60 * @return the call direction |
|
61 */ |
|
62 CCPCall::TCallDirection CallDirection() const { return CCPCall::EDirectionUnknown; }; |
|
63 |
|
64 /** |
|
65 * Returns information whether call is an emergency call. |
|
66 * @since S60 v5.2 |
|
67 * @param None. |
|
68 * @return TBool ETrue call is emergency call else EFalse. |
|
69 */ |
|
70 TBool IsEmergency() const { return EFalse; }; |
|
71 |
|
72 }; |
|
73 |
|
74 |
|
75 #endif /* BTMCDUMMY_H_ */ |