| author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> | 
| Tue, 06 Jul 2010 14:12:40 +0300 | |
| changeset 44 | 36f374c67aa8 | 
| parent 43 | 35b64624a9e7 | 
| child 47 | 5b14749788d7 | 
| child 52 | 12db4185673b | 
| permissions | -rw-r--r-- | 
| 31 | 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, | |
| 43 
35b64624a9e7
Revision: 201023
 Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> parents: 
31diff
changeset | 48 | SERVICE, | 
| 
35b64624a9e7
Revision: 201023
 Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> parents: 
31diff
changeset | 49 | AUDIOFETCHER | 
| 31 | 50 | }; | 
| 51 | ||
| 52 | /** | |
| 53 | * enum definition for differentiating switchview to unieditor command further | |
| 54 | */ | |
| 55 | enum UniEditorOperation | |
| 56 |         {
 | |
| 57 | ADD_PHOTO = 0x01, | |
| 58 | ADD_AUDIO = 0x02, | |
| 59 | ADD_VIDEO = 0x04, | |
| 60 | ADD_VCARD = 0x08, | |
| 61 | ADD_OTHERS = 0x10, | |
| 62 | ADD_RECIPIENTS = 0x20, | |
| 63 | ADD_SUBJECT = 0x40, | |
| 64 | FORWARD_MSG = 0x80 | |
| 65 | }; | |
| 66 | ||
| 67 | signals: | |
| 68 | /** | |
| 69 | * This signal is emitted whenever a view switch is needed. | |
| 70 | */ | |
| 71 | void switchView(const QVariantList& data); | |
| 72 | ||
| 44 
36f374c67aa8
Revision: 201025
 Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> parents: 
43diff
changeset | 73 | /** | 
| 
36f374c67aa8
Revision: 201025
 Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> parents: 
43diff
changeset | 74 | * Forceful close of conversation view | 
| 
36f374c67aa8
Revision: 201025
 Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> parents: 
43diff
changeset | 75 | */ | 
| 
36f374c67aa8
Revision: 201025
 Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> parents: 
43diff
changeset | 76 | void closeOpenConversationView(); | 
| 31 | 77 | |
| 78 | }; | |
| 79 | ||
| 80 | #endif //MSG_BASE_VIEW_H_ |