|
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: Implements interface for showing flash messages |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef FLASHMSGNOTIFIER_H |
|
19 #define FLASHMSGNOTIFIER_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <xqserviceprovider.h> |
|
23 #include <qvariant.h> |
|
24 #include <qbytearray.h> |
|
25 |
|
26 class FlashMsgNotifierPrivate; |
|
27 class XQSystemToneService; |
|
28 |
|
29 /** |
|
30 * @class FlashMsgNotifier |
|
31 * Implements interface for showing flash messages |
|
32 */ |
|
33 class FlashMsgNotifier: public XQServiceProvider |
|
34 { |
|
35 Q_OBJECT |
|
36 |
|
37 public: |
|
38 /** |
|
39 * Constructor |
|
40 */ |
|
41 FlashMsgNotifier(QObject *parent = 0); |
|
42 |
|
43 /** |
|
44 * Destructor |
|
45 */ |
|
46 ~FlashMsgNotifier(); |
|
47 |
|
48 private: |
|
49 /** |
|
50 * onDeleteAction |
|
51 * @param msgId message Id |
|
52 */ |
|
53 void onSaveAction(int msgId); |
|
54 |
|
55 /** |
|
56 * onDeleteAction |
|
57 * @param msgId message Id |
|
58 */ |
|
59 void onDeleteAction(int msgId); |
|
60 |
|
61 public slots: |
|
62 |
|
63 /** |
|
64 * displayFlashMsg |
|
65 * @param displayParams QVariantList |
|
66 */ |
|
67 void displayFlashMsg(QByteArray displayParams); |
|
68 |
|
69 private: |
|
70 |
|
71 /** |
|
72 * FlashMsgNotifierPrivate obj |
|
73 * Owned. |
|
74 */ |
|
75 FlashMsgNotifierPrivate* d_ptr; |
|
76 |
|
77 /** |
|
78 * XQSystemToneService obj |
|
79 * Owned. |
|
80 */ |
|
81 XQSystemToneService* mSts; |
|
82 |
|
83 /** |
|
84 * Address string |
|
85 */ |
|
86 QString mAddress; |
|
87 }; |
|
88 |
|
89 #endif // MSGERRORNOTIFIER_H |