1 /* |
|
2 * Copyright (c) 2009-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: class used for sending report to isds server |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef IRQREPORTSENDER_H |
|
20 #define IRQREPORTSENDER_H |
|
21 |
|
22 #include <QObject> |
|
23 |
|
24 #include "irdbstatusobserver.h" |
|
25 |
|
26 class IRQSettings; |
|
27 class IRQIsdsClient; |
|
28 class IRQNetworkController; |
|
29 |
|
30 class IRQReportSender : public QObject, |
|
31 public MIRLogDbStatusObserver |
|
32 { |
|
33 Q_OBJECT |
|
34 |
|
35 public: |
|
36 /*! |
|
37 * Constructor. |
|
38 */ |
|
39 explicit IRQReportSender(IRQIsdsClient *aIsdsClient); |
|
40 |
|
41 /*! |
|
42 * Destructor. |
|
43 */ |
|
44 ~IRQReportSender(); |
|
45 |
|
46 private: |
|
47 |
|
48 /*! |
|
49 * From MIRLogDbStatusObserver. |
|
50 */ |
|
51 void LogDbNeedFlush(); |
|
52 |
|
53 /*! |
|
54 * Function: sendReport |
|
55 * send the statistics report to isds server. |
|
56 */ |
|
57 void sendReport(); |
|
58 |
|
59 signals: |
|
60 void reportSent(); |
|
61 |
|
62 private: |
|
63 /*! |
|
64 * Used for sending out report |
|
65 */ |
|
66 IRQIsdsClient *iIsdsClient; |
|
67 |
|
68 /*! |
|
69 * Used for getting the private path of the log file |
|
70 */ |
|
71 IRQSettings *iSettingManager; |
|
72 |
|
73 /*! |
|
74 * Used for querying the connection status |
|
75 */ |
|
76 IRQNetworkController *iNetworkController; |
|
77 }; |
|
78 |
|
79 #endif // IRQREPORTSENDER_H |
|