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: Provides implementation class for XQCallInfo -class. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XQCALLINFOIMPL_H |
|
19 #define XQCALLINFOIMPL_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <QString> |
|
23 #include <mcallinformationobserver.h> |
|
24 |
|
25 #include "xqcallinfo.h" |
|
26 |
|
27 // forward declarations |
|
28 class CCallInformation; |
|
29 class CCallInfoIter; |
|
30 |
|
31 /*! |
|
32 XQCallInfoImpl |
|
33 This class provides implementation for XQCallInfo -class. |
|
34 */ |
|
35 class XQCallInfoImpl : |
|
36 public XQCallInfo, |
|
37 public MCallInformationObserver |
|
38 { |
|
39 Q_OBJECT |
|
40 public: |
|
41 |
|
42 /*! |
|
43 Constructor |
|
44 */ |
|
45 explicit XQCallInfoImpl(); |
|
46 |
|
47 /*! |
|
48 Destructor |
|
49 */ |
|
50 virtual ~XQCallInfoImpl(); |
|
51 |
|
52 /*! |
|
53 \fn void getCalls( QList<CallInfo> &calls ) |
|
54 |
|
55 Gets the snapshot of ongoing calls. |
|
56 */ |
|
57 void getCalls(QList<CallInfo> &calls); |
|
58 |
|
59 /*! |
|
60 \fn bool isCallInState( CCPCall::TCallState state ) const |
|
61 |
|
62 Returns information whether call in given state exist. |
|
63 */ |
|
64 bool isCallInState(CCPCall::TCallState state) const; |
|
65 |
|
66 public: // from MCallInformationObserver. |
|
67 |
|
68 /*! |
|
69 \fn void CallInformationChanged() |
|
70 |
|
71 Informs XQCallinfo that there are changes in ongoing calls. |
|
72 */ |
|
73 void CallInformationChanged(); |
|
74 |
|
75 private: |
|
76 |
|
77 /*! |
|
78 \fn void setCallInformationObserver() |
|
79 |
|
80 Sets the observer for changes in current calls |
|
81 */ |
|
82 void setCallInformationObserver(); |
|
83 |
|
84 private: |
|
85 |
|
86 CCallInformation *m_CallInformation; |
|
87 |
|
88 CCallInfoIter *m_Iter; |
|
89 }; |
|
90 |
|
91 |
|
92 #endif // XQCALLINFOIMPL_H |
|
93 |
|