19
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 Kanrikogaku Kenkyusho, Ltd.
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "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 |
* Kanrikogaku Kenkyusho, Ltd. - Initial contribution
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
* {Description of the file}
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
// Protection against nested includes
|
|
20 |
#ifndef __DIRECTPRINTVIEWBASE_H__
|
|
21 |
#define __DIRECTPRINTVIEWBASE_H__
|
|
22 |
|
|
23 |
// System includes
|
|
24 |
#include <aknview.h>
|
|
25 |
|
|
26 |
// User includes
|
|
27 |
#include "directprintlistobserver.h"
|
|
28 |
#include "directprintsettinglistobserver.h"
|
|
29 |
|
|
30 |
// Forward declarations
|
|
31 |
class CDirectPrintModel;
|
|
32 |
class CDirectPrintUiPluginMgr;
|
|
33 |
class CDirectPrintEngine;
|
|
34 |
|
|
35 |
// Class declaration
|
|
36 |
/**
|
|
37 |
* View base class
|
|
38 |
* more_complete_description
|
|
39 |
*/
|
|
40 |
class CDirectPrintViewBase : public CAknView, public MDirectPrintListObserver, public MDirectPrintSettingListObserver
|
|
41 |
{
|
|
42 |
public:
|
|
43 |
/** Destructor */
|
|
44 |
~CDirectPrintViewBase();
|
|
45 |
|
|
46 |
public:
|
|
47 |
/**
|
|
48 |
* From CAknView.
|
|
49 |
* Get the id of view.
|
|
50 |
*
|
|
51 |
* @return The id of view.
|
|
52 |
*/
|
|
53 |
TUid Id() const;
|
|
54 |
|
|
55 |
public:
|
|
56 |
/**
|
|
57 |
* Handles index.
|
|
58 |
*
|
|
59 |
* @param aIndex The index of selected item.
|
|
60 |
*/
|
|
61 |
virtual void HandleListIndexL(TInt aIndex);
|
|
62 |
|
|
63 |
public:
|
|
64 |
/**
|
|
65 |
* Handles index.
|
|
66 |
*
|
|
67 |
* @param aIndex The index of selected item.
|
|
68 |
* @param aChanged The flag of change data.
|
|
69 |
*/
|
|
70 |
virtual void HandleEditItemL(TInt aIndex, TBool aChanged);
|
|
71 |
|
|
72 |
protected:
|
|
73 |
CDirectPrintViewBase();
|
|
74 |
void ConstructL();
|
|
75 |
|
|
76 |
protected: // from CAknView
|
|
77 |
void DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage);
|
|
78 |
void DoDeactivate();
|
|
79 |
|
|
80 |
protected: // New founctions
|
|
81 |
void SetActiveTitleL(TInt aTitleResId);
|
|
82 |
CDirectPrintModel& GetModel();
|
|
83 |
CDirectPrintUiPluginMgr& GetPluginMgr();
|
|
84 |
CDirectPrintEngine& GetEngine();
|
|
85 |
|
|
86 |
protected:
|
|
87 |
/** View id. */
|
|
88 |
TUid iViewId;
|
|
89 |
|
|
90 |
private:
|
|
91 |
};
|
|
92 |
|
|
93 |
#endif // __DIRECTPRINTVIEWBASE_H__
|