author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Mon, 04 Oct 2010 00:16:48 +0300 | |
changeset 77 | 2be0b271d017 |
parent 56 | 5bcb308bd24d |
permissions | -rw-r--r-- |
37 | 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 |
#ifndef PHONEBUBBLEWRAPPERMOCK_H |
|
18 |
#define PHONEBUBBLEWRAPPERMOCK_H |
|
19 |
||
20 |
#include <QObject> |
|
21 |
#include <QMap> |
|
22 |
#include <e32cmn.h> |
|
23 |
#include "bubblemanagerif.h" |
|
24 |
||
25 |
extern bool m_setDivertCalled; |
|
26 |
extern bool m_bubblewrapperbool; |
|
27 |
extern int m_bubblewrapperint; |
|
28 |
extern bool m_setStateCalled; |
|
29 |
extern bool m_setLabelCalled; |
|
30 |
extern bool m_setCliCalled; |
|
31 |
extern bool m_setSecondaryCliCalled; |
|
32 |
extern bool m_setCallTypeCalled; |
|
33 |
extern int m_createCallHeaderInt; |
|
34 |
extern int m_setStateCallId; |
|
35 |
extern int m_setStateBubbleId; |
|
36 |
extern int m_setStateCallState; |
|
37 |
extern const TDesC *m_setLabelText; |
|
38 |
extern int m_setLabelBubbleId; |
|
39 |
extern int m_setCliBubbleId; |
|
40 |
extern const TDesC *m_setCliText; |
|
41 |
extern int m_setSecondaryCliBubbleId; |
|
42 |
extern const TDesC *m_setSecondaryCliText; |
|
43 |
extern int m_setCallTypeBubbleId; |
|
44 |
extern int m_setCallTypeType; |
|
45 |
extern bool m_bubbleIdCalled; |
|
46 |
extern int m_bubbleIdCallId; |
|
47 |
extern bool m_activeCallCountCalled; |
|
48 |
extern QMap<int, int> m_callStateMap; |
|
49 |
extern QMap<int, int> m_bubblesMap; |
|
50 |
extern QList<int> m_conferenceCallList; |
|
51 |
extern bool m_creataConferenceCalled; |
|
52 |
extern bool m_removeConferenceCalled; |
|
53 |
extern bool m_removeCallFromConference; |
|
54 |
extern int m_bubble_id; |
|
55 |
extern QMap<int,int> m_services; |
|
56 |
extern bool m_setCipheringCalled; |
|
57 |
||
58 |
||
59 |
class PhoneBubbleWrapper : public QObject |
|
60 |
{ |
|
61 |
Q_OBJECT |
|
62 |
||
63 |
public: |
|
64 |
PhoneBubbleWrapper (BubbleManagerIF& bubble, QObject *parent = 0); |
|
65 |
virtual ~PhoneBubbleWrapper (); |
|
66 |
void updateCallState (int callId, int newState); |
|
67 |
int callId (int state); |
|
68 |
int createCallHeader (int callId); |
|
69 |
void removeCallHeader (int callId); |
|
70 |
void setState (int callId, int bubble, int callState); |
|
71 |
void setLabel (int bubble, const TDesC &text); |
|
56
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
72 |
void setCli (int bubble, const TDesC &cliText, Qt::TextElideMode elide); |
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
73 |
void setSecondaryCli (int bubble, const TDesC &cliText, Qt::TextElideMode elide); |
37 | 74 |
void setCallType (int bubble, int callType); |
75 |
BubbleManagerIF& bubbleManager (); |
|
76 |
int bubbleId (int callId); |
|
77 |
void setDivert (int bubble, bool enabled); |
|
78 |
void setCiphering(int bubble, bool indicatorAllowed, bool enabled); |
|
79 |
int activeCallCount (); |
|
80 |
||
81 |
const QMap<int, int> callStates() const; |
|
82 |
||
83 |
QMap<int, int> bubbles(); |
|
84 |
||
85 |
int createConferenceBubble(int callId, int callState, |
|
86 |
const TDesC &labelText, const TDesC &cliText); |
|
87 |
||
88 |
void setConferenceCallId(int callId); |
|
89 |
||
90 |
QList<int> conferenceCallList(); |
|
91 |
||
92 |
void removeConferenceCallId(int callId); |
|
93 |
||
94 |
bool conferenceCallId(int callId); |
|
95 |
||
96 |
void removeCallFromConference(int callId); |
|
97 |
||
98 |
void removeConferenceBubble(); |
|
99 |
||
100 |
int callIdByBubbleId(int bubbleId); |
|
101 |
||
102 |
void addToConferenceBubble(); |
|
103 |
||
104 |
void setServiceId(int callId, int serviceId); |
|
105 |
||
106 |
int serviceIdByCallId(int callId) const; |
|
107 |
||
108 |
QMap<int,int> serviceIds() const; |
|
109 |
||
110 |
private: |
|
111 |
BubbleManagerIF& m_bubble; |
|
112 |
}; |
|
113 |
||
114 |
#endif // PHONEBUBBLEWRAPPERMOCK_H |