equal
deleted
inserted
replaced
|
1 // viewbase.h |
|
2 // |
|
3 // Copyright (c) 2009 - 2010 Accenture. All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the "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 // Accenture - Initial contribution |
|
11 // |
|
12 #ifndef VIEWBASE_H_ |
|
13 #define VIEWBASE_H_ |
|
14 |
|
15 #include <e32base.h> |
|
16 |
|
17 #include "common.h" |
|
18 |
|
19 class CConsoleBase; |
|
20 class CFedBufferBase; |
|
21 |
|
22 //Main View class inherited by any views able to show data on the screen, either backed by a file buffer or not |
|
23 class CFedViewBase : public CActive, public MViewController, public MSharedCacheClient, public MDeferredClose, public MKeyConsumer |
|
24 { |
|
25 protected: |
|
26 CFedViewBase(MConsoleProvider& aConsoleProvider, TInt aPriority = CActive::EPriorityStandard) |
|
27 : CActive(aPriority), iConsoleProvider(aConsoleProvider), iConsole(aConsoleProvider.Console()) {} |
|
28 |
|
29 public: |
|
30 void StoreWindow(const TWindow& aWindow) {iWindow = aWindow;} |
|
31 virtual CFedBufferBase& Buffer() = 0; |
|
32 |
|
33 protected: |
|
34 MConsoleProvider& iConsoleProvider; |
|
35 CConsoleBase& iConsole; |
|
36 TWindow iWindow; |
|
37 }; |
|
38 |
|
39 #endif /*VIEWBASE_H_*/ |