|
1 /* |
|
2 * Copyright (c) 2004 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: Implements interface for Attendee view |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CATTENDEE_VIEW_H__ |
|
21 #define __CATTENDEE_VIEW_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <ecom/ecom.h> |
|
25 #include <coehelp.h> |
|
26 #include <magnentryui.h> |
|
27 |
|
28 // FORWARD DECLARATION |
|
29 class CCalEntry; |
|
30 class CCalUser; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 /** |
|
34 * Implements entry point class to Attendee view |
|
35 * - Attendee view could be editor or viewer |
|
36 * - When Attendee view is constructed it starts match |
|
37 * e-mail addresses to Phonebook contacts and it continues |
|
38 * matching if it's not ready when view is executed. |
|
39 */ |
|
40 class CAttendeeView : public CBase, |
|
41 public MAgnEntryUi |
|
42 { |
|
43 public: |
|
44 /** |
|
45 * Two-phased constructor. |
|
46 * |
|
47 * @param aPhoneOwner |
|
48 * @return Created new CAttendeeView object |
|
49 */ |
|
50 static CAttendeeView* NewL( const CCalUser* aPhoneOwner ); |
|
51 |
|
52 /** |
|
53 * Two-phased constructor. |
|
54 * |
|
55 * @param aPhoneOwner |
|
56 * @param aMtmUid |
|
57 * @return Created new CAttendeeView object |
|
58 */ |
|
59 static CAttendeeView* NewL( const CCalUser* aPhoneOwner, |
|
60 const TDesC8& aMtmUid ); |
|
61 |
|
62 /** |
|
63 * Destructor. |
|
64 */ |
|
65 virtual ~CAttendeeView(); |
|
66 |
|
67 protected: |
|
68 /** |
|
69 * C++ default constructor. |
|
70 */ |
|
71 inline CAttendeeView(); |
|
72 |
|
73 public: // From MAgnEntryUi |
|
74 |
|
75 /** |
|
76 * aEntries must have only one entry. |
|
77 * Attendee View does not support TAgnEntryUiEditorMode::ECreateNewEntry. |
|
78 * Possible output params in AttendeeView are ENoAction and EMeetingSaved. |
|
79 */ |
|
80 //TInt ExecuteViewL( RPointerArray<CCalEntry>& aEntries, |
|
81 // const TAgnEntryUiInParams& aInParams, |
|
82 // TAgnEntryUiOutParams& aOutParams, |
|
83 // MAgnEntryUiCallback& aCallback ); |
|
84 |
|
85 /** |
|
86 * Method for setting help context for the UI. |
|
87 * Must be called before executing UI. |
|
88 * @param aContext help context |
|
89 */ |
|
90 //void SetHelpContext( const TCoeHelpContext& aContext ); |
|
91 |
|
92 private: //Data |
|
93 // Unique instance identifier key |
|
94 TUid iDtor_ID_Key; |
|
95 }; |
|
96 |
|
97 #include "CAttendeeView.inl" |
|
98 |
|
99 #endif // __CATTENDEE_VIEW_H__ |
|
100 |
|
101 // End of File |