|
1 /* |
|
2 * Copyright (c) 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: Definition for MediaServant base view class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __MSBASEVIEW_H__ |
|
21 #define __MSBASEVIEW_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <aknview.h> |
|
25 |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CAknTitlePane; |
|
29 class CAknNavigationDecorator; |
|
30 class CAknNavigationControlContainer; |
|
31 class CMSAppUi; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * CMSBaseView base view class. |
|
37 */ |
|
38 NONSHARABLE_CLASS( CMSBaseView ) : public CAknView |
|
39 { |
|
40 |
|
41 protected: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * CMSBaseView |
|
45 * Default constructor. |
|
46 */ |
|
47 CMSBaseView(); |
|
48 |
|
49 /** |
|
50 * ~CMSBaseView |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CMSBaseView(); |
|
54 |
|
55 public: // New functions |
|
56 |
|
57 /** |
|
58 * SetTitlePaneTextL |
|
59 * Sets text by resource ID in title pane. |
|
60 * @since S60 3.1 |
|
61 * @param aResourceId The ID of outline number to displayed next. |
|
62 */ |
|
63 void SetTitlePaneTextL( const TInt aResourceId ); |
|
64 |
|
65 /** |
|
66 * SetTitlePaneTextL |
|
67 * Sets text by resource ID in title pane. |
|
68 * @since S60 3.1 |
|
69 * @param aText, title text |
|
70 */ |
|
71 void SetTitlePaneTextL( const TDesC& aText ); |
|
72 |
|
73 /** |
|
74 * SetNavigationPaneTextL |
|
75 * Sets Navigation pane text. |
|
76 * @since S60 3.1 |
|
77 * @param aText, text to be shown |
|
78 */ |
|
79 void SetNavigationPaneTextL( const TDesC& aText ); |
|
80 |
|
81 /** |
|
82 * ClearCurrentNaviPaneText |
|
83 * Clears current navi pane text |
|
84 * @since S60 3.1 |
|
85 */ |
|
86 void ClearCurrentNaviPaneText(); |
|
87 |
|
88 /** |
|
89 * Cancels async operation |
|
90 * @Since S60 3.1 |
|
91 * @param aAppUi, pointer to cmsappui class |
|
92 */ |
|
93 void CancelAsyncOperation( CMSAppUi* aAppUi ); |
|
94 |
|
95 private: |
|
96 |
|
97 /** |
|
98 * iNaviPane |
|
99 */ |
|
100 CAknNavigationControlContainer* iNaviPane; // not owned |
|
101 /** |
|
102 * navi decorator |
|
103 */ |
|
104 CAknNavigationDecorator* iNaviDecorator; |
|
105 }; |
|
106 |
|
107 #endif // __MSBASEVIEW_H__ |
|
108 |
|
109 // End of File |