diff -r 84d9eb65b26f -r 2981cb3aa489 mobilemessaging/unieditor/utils/inc/UniObjectsModelObserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mobilemessaging/unieditor/utils/inc/UniObjectsModelObserver.h Wed Nov 03 09:52:46 2010 +0530 @@ -0,0 +1,79 @@ +/* +* Copyright (c) 2005-2007 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: Unified Message Editor model observer. +* +*/ + + +#ifndef M_UNIOBJECTSMODELOBSERVER_H +#define M_UNIOBJECTSMODELOBSERVER_H + +// ========== INCLUDE FILES ================================ + +#include +#include + +// ========== CONSTANTS ==================================== + +// ========== MACROS ======================================= + +// ========== DATA TYPES =================================== + +// ========== FUNCTION PROTOTYPES ========================== + +// ========== FORWARD DECLARATIONS ========================= + +class CMsgAttachmentInfo; + +// ========== CLASS DECLARATION ============================ + +/** +* Attachment model observer. +* +* @lib UniUtils.lib +* +* @since S60 3.2 +*/ +class MUniObjectsModelObserver : public MMsgAttachmentModelObserver + { + + public: + + /** + * This function is called when attachment model adds or removes + * attachments from its list. + * + * @since S60 3.2 + * + * @param aCommand Given command that has caused the change. + * @param aAttachmentInfo Attachment info that is affected by the change. + */ + virtual void NotifyChangesL( TMsgAttachmentCommand aCommand, + CMsgAttachmentInfo* aAttachmentInfo ) = 0; + + /** + * This function is called when attachment order of the objects + * in the model is changed + * + * @since S60 3.2 + * + * @param aLayout New layout. + */ + virtual void NotifyOrderChangeL( TUniLayout aLayout ) = 0; + + }; + +#endif // M_UNIOBJECTSMODELOBSERVER_H + +// End of File