|
1 /* |
|
2 * Copyright (c) 2005-2007 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: Unified Message Editor model observer. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef M_UNIOBJECTSMODELOBSERVER_H |
|
20 #define M_UNIOBJECTSMODELOBSERVER_H |
|
21 |
|
22 // ========== INCLUDE FILES ================================ |
|
23 |
|
24 #include <unimodelconst.h> |
|
25 #include <MsgAttachmentModelObserver.h> |
|
26 |
|
27 // ========== CONSTANTS ==================================== |
|
28 |
|
29 // ========== MACROS ======================================= |
|
30 |
|
31 // ========== DATA TYPES =================================== |
|
32 |
|
33 // ========== FUNCTION PROTOTYPES ========================== |
|
34 |
|
35 // ========== FORWARD DECLARATIONS ========================= |
|
36 |
|
37 class CMsgAttachmentInfo; |
|
38 |
|
39 // ========== CLASS DECLARATION ============================ |
|
40 |
|
41 /** |
|
42 * Attachment model observer. |
|
43 * |
|
44 * @lib UniUtils.lib |
|
45 * |
|
46 * @since S60 3.2 |
|
47 */ |
|
48 class MUniObjectsModelObserver : public MMsgAttachmentModelObserver |
|
49 { |
|
50 |
|
51 public: |
|
52 |
|
53 /** |
|
54 * This function is called when attachment model adds or removes |
|
55 * attachments from its list. |
|
56 * |
|
57 * @since S60 3.2 |
|
58 * |
|
59 * @param aCommand Given command that has caused the change. |
|
60 * @param aAttachmentInfo Attachment info that is affected by the change. |
|
61 */ |
|
62 virtual void NotifyChangesL( TMsgAttachmentCommand aCommand, |
|
63 CMsgAttachmentInfo* aAttachmentInfo ) = 0; |
|
64 |
|
65 /** |
|
66 * This function is called when attachment order of the objects |
|
67 * in the model is changed |
|
68 * |
|
69 * @since S60 3.2 |
|
70 * |
|
71 * @param aLayout New layout. |
|
72 */ |
|
73 virtual void NotifyOrderChangeL( TUniLayout aLayout ) = 0; |
|
74 |
|
75 }; |
|
76 |
|
77 #endif // M_UNIOBJECTSMODELOBSERVER_H |
|
78 |
|
79 // End of File |