diff -r 000000000000 -r 72b543305e3a msg_plat/messaging_editor_api/inc/MsgAttachmentModelObserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/msg_plat/messaging_editor_api/inc/MsgAttachmentModelObserver.h Thu Dec 17 08:44:11 2009 +0200 @@ -0,0 +1,78 @@ +/* +* Copyright (c) 2002 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: MsgAttachmentModelObserver declaration +* +*/ + + + +#ifndef INC_MSGATTACHMENTMODELOBSERVER_H +#define INC_MSGATTACHMENTMODELOBSERVER_H + +// ========== INCLUDE FILES ================================ + +#include +#include + +// ========== CONSTANTS ==================================== + +// ========== MACROS ======================================= + +// ========== DATA TYPES =================================== + +// ========== FUNCTION PROTOTYPES ========================== + +// ========== FORWARD DECLARATIONS ========================= + +class CMsgAttachmentInfo; + +// ========== CLASS DECLARATION ============================ + +/** + * Attachment model observer. + * + */ +class MMsgAttachmentModelObserver + { + public: + + enum TMsgAttachmentCommand + { + EMsgAttachmentAdded = 0, + EMsgAttachmentRemoved + }; + + public: + + /** + * This function that is called when attachment model adds or removes + * attachments from its list. + * @param aCommand + * @param aAttachmentInfo + */ + virtual void NotifyChanges( TMsgAttachmentCommand aCommand, CMsgAttachmentInfo* aAttachmentInfo ) = 0; + + /** + * This function that is called when attachment model needs to + * get access to an attachment file + * @param aId Attachment id + * @return Open (read-only) file handle + */ + virtual RFile GetAttachmentFileL( TMsvAttachmentId aId ) = 0; + + }; + +#endif + +// End of File