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: Helper class to keep record of msg type changes |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MSG_TYPE_NOTIFIER_H |
|
19 #define MSG_TYPE_NOTIFIER_H |
|
20 |
|
21 #include <QObject> |
|
22 #include "convergedmessage.h" |
|
23 |
|
24 class MsgTypeNotifier : public QObject |
|
25 { |
|
26 Q_OBJECT |
|
27 |
|
28 public: |
|
29 |
|
30 /** |
|
31 * Constructor |
|
32 */ |
|
33 MsgTypeNotifier(QObject* parent=0); |
|
34 |
|
35 /** |
|
36 * Destructor |
|
37 */ |
|
38 ~MsgTypeNotifier(); |
|
39 |
|
40 /** |
|
41 * Seeker method to access current message type |
|
42 */ |
|
43 ConvergedMessage::MessageType messageType() const; |
|
44 |
|
45 /** |
|
46 * Set to skip showing note for first time |
|
47 */ |
|
48 void setSkipNote(); |
|
49 |
|
50 public slots: |
|
51 /** |
|
52 * Public slot to keep MMS content count for the under construction |
|
53 * message. To be called from content widgets. |
|
54 * @param isAdded true/false |
|
55 */ |
|
56 void onMMContentAdded(bool isAdded); |
|
57 |
|
58 private: |
|
59 void showPopup(const QString& text); |
|
60 |
|
61 private: |
|
62 int mmContentCount; |
|
63 bool mSkipNote; |
|
64 }; |
|
65 |
|
66 #endif //MSG_TYPE_NOTIFIER_H |
|