|
1 /* |
|
2 * Copyright (c) 2006 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: MPX view history |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MPXVIEWHISTORY_H |
|
21 #define MPXVIEWHISTORY_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CMPXViewPlugin; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * MPX view history. |
|
33 * |
|
34 * @lib mpxviewutility.lib |
|
35 * @since S60 v3.1 |
|
36 */ |
|
37 |
|
38 NONSHARABLE_CLASS( CMPXViewHistory ) : public CBase |
|
39 { |
|
40 public: |
|
41 /** |
|
42 * Two-phase constructor |
|
43 * |
|
44 * @return object created |
|
45 */ |
|
46 static CMPXViewHistory* NewL(); |
|
47 |
|
48 /** |
|
49 * Two-phase constructor |
|
50 * |
|
51 * @param aHistory pointer to an existing view history |
|
52 * @return object created |
|
53 */ |
|
54 static CMPXViewHistory* NewL( CMPXViewHistory* aHistory ); |
|
55 |
|
56 /** |
|
57 * Two-phase constructor |
|
58 * |
|
59 * @param aUids Uid used to resolve the plugins |
|
60 * @param aPluginType type of the plugin resolved |
|
61 * @param aPluginImplementationUid Implementation Uid |
|
62 * @param aPlugin Pointer to the plugin |
|
63 * @return object created |
|
64 */ |
|
65 static CMPXViewHistory* NewL( |
|
66 const RArray<TUid>& aUids, |
|
67 const TUid aPluginType, |
|
68 const TUid aPluginImplementationUid, |
|
69 CMPXViewPlugin* aPlugin ); |
|
70 |
|
71 /** |
|
72 * Destructor. |
|
73 */ |
|
74 ~CMPXViewHistory(); |
|
75 |
|
76 private: |
|
77 |
|
78 /** |
|
79 * default constructor |
|
80 */ |
|
81 CMPXViewHistory(); |
|
82 |
|
83 /** |
|
84 * Second phase constructor |
|
85 * |
|
86 * @param aUids Uid used to resolve the plugins |
|
87 * @param aPluginType type of the plugin resolved |
|
88 * @param aPluginImpUid Implementation Uid |
|
89 * @param aPlugin Pointer to the plugin |
|
90 */ |
|
91 void ConstructL( |
|
92 const RArray<TUid>& aUids, |
|
93 const TUid aPluginType, |
|
94 const TUid aPluginImpUid, |
|
95 CMPXViewPlugin* aPlugin ); |
|
96 |
|
97 public: |
|
98 RArray<TUid> iUids; |
|
99 TUid iPluginType; |
|
100 TUid iPluginImplementationUid; |
|
101 CMPXViewPlugin* iPlugin; // not owned |
|
102 }; |
|
103 |
|
104 #endif // MPXVIEWHISTORY_H |
|
105 |
|
106 // End of File |