diff -r 4697dfb2d7ad -r 238255e8b033 messagingapp/msgui/conversationview/inc/msgconversationbaseview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingapp/msgui/conversationview/inc/msgconversationbaseview.h Fri Apr 16 14:56:15 2010 +0300 @@ -0,0 +1,122 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description:Conversation Base view. + * +*/ + + +#ifndef MSG_CONVERSATION_VIEW_INTERFACE_H +#define MSG_CONVERSATION_VIEW_INTERFACE_H + +#ifdef CONVERSATIONVIEW_DLL +#define CONVERSATION_VIEW_EXPORT Q_DECL_EXPORT +#else +#define CONVERSATION_VIEW_EXPORT Q_DECL_IMPORT +#endif + +#include "msgbaseview.h" + +// FORWARD DECLARATIONS +class MsgConversationView; +class HbListWidgetItem; + +class CONVERSATION_VIEW_EXPORT MsgConversationBaseView : public MsgBaseView + { + Q_OBJECT + +public: + + /** + * Constructor + */ + MsgConversationBaseView(QGraphicsItem* parent=0); + + /** + * Destructor + */ + ~MsgConversationBaseView(); + +public: + /** + * openConversationView + * Launches conversation view + * @param entryId, the conversation index to be open + * + */ + void openConversation(qint64 entryId); + + /** + * clearContent + * Clear conversation view content + */ + void clearContent(); + + /** + * saveContentToDrafts + * Saves the editors content in cv to drafts + */ + bool saveContentToDrafts(); + +public slots: + /** + * Close the conversation view + * This slot is triggered when user presses back(seconday sofykey) + */ + void closeConversationView(); + + /** + * Mark messages as read + * Slot is triiggered when replying started + */ + void markMessagesAsRead(); + +private slots: + + /** + * Open contact card + * Slot is triiggered when clicking on CV header + */ + void openContactDetails(); + + + signals: + /** + * Signal emitted when the conversation view is closed. + */ + void conversationViewClosed(); + +private : + /** + * Create and initialise the view + */ + void initView(); + +private: + + /** + * MsgConversationView, main view class + * Owned + */ + MsgConversationView *mConversationView; + + /** + * Conversation ID + */ + qint64 mConversationId; + + }; + +#endif // MSG_CONVERSATION_VIEW_INTERFACE_H + +// EOF