1 /* |
|
2 * Copyright (c) 2010 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 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 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * WPS Wizard: API for wizard pages. |
|
16 * |
|
17 */ |
|
18 |
|
19 // System includes |
|
20 #include <hbwidget.h> |
|
21 |
|
22 // User includes |
|
23 #include "wpswizardpage.h" |
|
24 |
|
25 // Trace includes |
|
26 #include "OstTraceDefinitions.h" |
|
27 #ifdef OST_TRACE_COMPILER_IN_USE |
|
28 #include "wpswizardpageTraces.h" |
|
29 #endif |
|
30 |
|
31 #define WPS_DEFAULT_STEPBACK 1 |
|
32 |
|
33 /*! |
|
34 * Constructor for the WPS page baseclass |
|
35 * |
|
36 * \param WpsWizardPrivate* pointer to the implementation class |
|
37 */ |
|
38 |
|
39 WpsWizardPage::WpsWizardPage(WpsWizardPrivate* parent) : |
|
40 mWizard(parent) |
|
41 { |
|
42 OstTraceFunctionEntry1(WPSWIZARDPAGE_WPSWIZARDPAGE_ENTRY, this) |
|
43 OstTraceFunctionExit1(WPSWIZARDPAGE_WPSWIZARDPAGE_EXIT, this) |
|
44 } |
|
45 |
|
46 /*! |
|
47 * Destructor |
|
48 */ |
|
49 WpsWizardPage::~WpsWizardPage() |
|
50 { |
|
51 OstTraceFunctionEntry1(WPSWIZARDPAGE_WPSWIZARDPAGE_ENTRY, this) |
|
52 mWizard = NULL; |
|
53 OstTraceFunctionExit1(WPSWIZARDPAGE_WPSWIZARDPAGE_EXIT, this) |
|
54 } |
|
55 |
|
56 /*! |
|
57 * Determines how many pages to step back. |
|
58 * \return number of pages to step backwards |
|
59 */ |
|
60 int WpsWizardPage::stepsBackwards() |
|
61 { |
|
62 OstTraceFunctionEntry1(WPSWIZARDPAGE_STEPBACKWARDS_ENTRY, this) |
|
63 OstTraceFunctionExit1(WPSWIZARDPAGE_STEPBACKWARDS_EXIT, this) |
|
64 return WPS_DEFAULT_STEPBACK; |
|
65 } |
|
66 |
|
67 /*! |
|
68 * Validates the contents of the page |
|
69 */ |
|
70 bool WpsWizardPage::validate() const |
|
71 { |
|
72 OstTraceFunctionEntry1(WPSWIZARDPAGE_VALIDATE_ENTRY, this) |
|
73 OstTraceFunctionExit1(WPSWIZARDPAGE_VALIDATE_EXIT, this) |
|
74 return true; |
|
75 } |
|