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 * Base view for all messaging views (CLV,CV etc). |
|
16 * |
|
17 */ |
|
18 |
|
19 #include <HbView> |
|
20 #include <QVariant> |
|
21 |
|
22 #ifndef MSG_BASE_VIEW_H_ |
|
23 #define MSG_BASE_VIEW_H_ |
|
24 |
|
25 |
|
26 class MsgBaseView : public HbView |
|
27 { |
|
28 Q_OBJECT |
|
29 |
|
30 public: |
|
31 /** |
|
32 * constructor. |
|
33 */ |
|
34 MsgBaseView(QGraphicsItem* parent=0):HbView(parent){} |
|
35 |
|
36 /** |
|
37 * enum defining view id(s). |
|
38 */ |
|
39 enum viewId |
|
40 { |
|
41 DEFAULT = 0, |
|
42 CLV, |
|
43 CV, |
|
44 DLV, |
|
45 UNIEDITOR, |
|
46 UNIVIEWER, |
|
47 MSGSETTINGS, |
|
48 SERVICE, |
|
49 AUDIOFETCHER |
|
50 }; |
|
51 |
|
52 /** |
|
53 * enum definition for differentiating switchview to unieditor command further |
|
54 */ |
|
55 enum UniEditorOperation |
|
56 { |
|
57 ADD_PHOTO = 0x001, |
|
58 ADD_AUDIO = 0x002, |
|
59 ADD_VIDEO = 0x004, |
|
60 ADD_VCARD = 0x008, |
|
61 ADD_OTHERS = 0x010, |
|
62 ADD_RECIPIENTS = 0x020, |
|
63 ADD_SUBJECT = 0x040, |
|
64 FORWARD_MSG = 0x080, |
|
65 REPLY_MSG = 0x100, |
|
66 REPLY_ALL_MSG = 0x200 |
|
67 }; |
|
68 |
|
69 signals: |
|
70 /** |
|
71 * This signal is emitted whenever a view switch is needed. |
|
72 */ |
|
73 void switchView(const QVariantList& data); |
|
74 |
|
75 /** |
|
76 * Forceful close of conversation view |
|
77 */ |
|
78 void closeOpenConversationView(); |
|
79 |
|
80 }; |
|
81 |
|
82 #endif //MSG_BASE_VIEW_H_ |