1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * |
|
5 * This program is free software: you can redistribute it and/or modify |
|
6 * it under the terms of the GNU Lesser General Public License as published by |
|
7 * the Free Software Foundation, version 2.1 of the License. |
|
8 * |
|
9 * This program is distributed in the hope that it will be useful, |
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 * GNU Lesser General Public License for more details. |
|
13 * |
|
14 * You should have received a copy of the GNU Lesser General Public License |
|
15 * along with this program. If not, |
|
16 * see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". |
|
17 * |
|
18 * Description: |
|
19 * |
|
20 */ |
|
21 |
|
22 // INCLUDE FILES |
|
23 #ifndef __WRTTELSERVICE_P_H |
|
24 #define __WRTTELSERVICE_P_H |
|
25 |
|
26 #if defined(Q_OS_SYMBIAN) |
|
27 |
|
28 |
|
29 #include "WrtTelServiceBr.h" |
|
30 #include <QtCore/QObject> |
|
31 #include <QString> |
|
32 |
|
33 #include <ConeResLoader.h> |
|
34 |
|
35 // AIW related headers |
|
36 #include <AiwServiceHandler.h> |
|
37 |
|
38 #if !defined (SYMBIAN_PUB_SDK) |
|
39 #include <AiwDialData.h> |
|
40 #include <AiwDialDataExt.h> |
|
41 #endif |
|
42 |
|
43 // FORWARD DECLARATIONS |
|
44 |
|
45 // CLASS DECLARATION |
|
46 |
|
47 class WrtTelServicePrivate : public QObject |
|
48 , public MAiwNotifyCallback |
|
49 { |
|
50 |
|
51 public: |
|
52 |
|
53 WrtTelServicePrivate( ); |
|
54 ~WrtTelServicePrivate(); |
|
55 |
|
56 void MakeCall( QString number, bool sendDTMFAlwaysConfirm, bool voipCall ); |
|
57 |
|
58 QString ValidateNumber( const QString number ); |
|
59 |
|
60 QString FindPostdParm( QString& number ); |
|
61 |
|
62 QString FindAndRipDTMFSequence( QString& number ); |
|
63 |
|
64 QString FindAndRipURIParameters( QString& number ); |
|
65 |
|
66 QString FindAndRipVoipParameters( QString& number ); |
|
67 |
|
68 void ValidateDTMFNumber( QString& number ); |
|
69 |
|
70 protected: |
|
71 |
|
72 /** |
|
73 * From MAiwNotifyCallback |
|
74 */ |
|
75 TInt HandleNotifyL( TInt aCmdId, |
|
76 TInt aEventId, |
|
77 CAiwGenericParamList& aEventParamList, |
|
78 const CAiwGenericParamList& aInParamList ); |
|
79 |
|
80 |
|
81 private: |
|
82 void DoMakeCallL( QString number, bool sendDTMFAlwaysConfirm ); |
|
83 |
|
84 HBufC* qt_QString2HBufCNewL(const QString& aString); |
|
85 |
|
86 |
|
87 private: // Data |
|
88 bool m_CallInProgress; |
|
89 TFileName m_ResourceFileName; ///< Temp storage for the file name. |
|
90 RConeResourceLoader m_ResourceLoader; ///< Resource loader. |
|
91 bool m_ResourceOpened; ///< Indicate if the resource is opened. |
|
92 // AIW related members |
|
93 CAiwServiceHandler* m_ServiceHandler; |
|
94 |
|
95 #if !defined (SYMBIAN_PUB_SDK) |
|
96 // DialData. |
|
97 CAiwDialData* m_DialData; |
|
98 #endif |
|
99 |
|
100 }; |
|
101 |
|
102 #endif |
|
103 |
|
104 #endif // __WRTTELSERVICE_P_H |
|