equal
deleted
inserted
replaced
|
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 _IRQUTILITY_H |
|
18 #define _IRQUTILITY_H |
|
19 |
|
20 #include "irqenums.h" |
|
21 |
|
22 class IRQPreset; |
|
23 class CIRPreset; |
|
24 class CIRIsdsPreset; |
|
25 class CFbsBitmap; |
|
26 class QPixmap; |
|
27 class QString; |
|
28 |
|
29 class IRQUtility |
|
30 { |
|
31 public: |
|
32 |
|
33 /* convert the CIRIsdsPreset to the IRQPreset. |
|
34 */ |
|
35 IMPORT_C static void convertCIRIsdsPreset2IRQPrest(const CIRIsdsPreset& aCIRIsdsPreset, IRQPreset& aQIRPreset); |
|
36 /* convert the IRQPreset to the CIRIsdsPreset |
|
37 */ |
|
38 IMPORT_C static void convertIRQPreset2CIRIsdsPreset(const IRQPreset& aQIRPreset, CIRIsdsPreset& aCIRIsdsPreset); |
|
39 /* convert CIRPreset to the IRQPreset |
|
40 */ |
|
41 IMPORT_C static void convertCIRPreset2IRQPreset(const CIRPreset& aCIRPreset, IRQPreset& aIRQPreset); |
|
42 /* switch from the symbian error code to the IRQ error code |
|
43 */ |
|
44 IMPORT_C static void convertSError2QError(const int aSError, int& aQError); |
|
45 |
|
46 IMPORT_C static bool isValidUrl(const QString& aUrl); |
|
47 |
|
48 IMPORT_C static bool openAdvLink(const QString& aUrl); |
|
49 |
|
50 /** |
|
51 * this function is only used when in debug mode, for it's a time costing operation |
|
52 */ |
|
53 IMPORT_C static void writeLog2File(const QString& aString, bool aDeleteOldFile = false); |
|
54 |
|
55 private: |
|
56 |
|
57 void static appendURLL(const IRQPreset& aQIRPreset, CIRIsdsPreset& aCIRIsdsPreset); |
|
58 bool static openAdvLinkL(const QString& aUrl); |
|
59 }; |
|
60 |
|
61 #endif |