1/*******************************************************************
2* reportassistantpage.cpp
3* Copyright 2009 Dario Andres Rodriguez <andresbajotierra@gmail.com>
4*
5* This program is free software; you can redistribute it and/or
6* modify it under the terms of the GNU General Public License as
7* published by the Free Software Foundation; either version 2 of
8* the License, or (at your option) any later version.
9*
10* This program is distributed in the hope that it will be useful,
11* but WITHOUT ANY WARRANTY; without even the implied warranty of
12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13* GNU General Public License for more details.
14*
15* You should have received a copy of the GNU General Public License
16* along with this program. If not, see <http://www.gnu.org/licenses/>.
17*
18******************************************************************/
19
20#include "reportassistantpage.h"
21#include "reportinterface.h"
22
23ReportAssistantPage::ReportAssistantPage(ReportAssistantDialog * parent)
24 : QWidget(parent), m_assistant(parent)
25{
26}
27
28bool ReportAssistantPage::isComplete()
29{
30 return true;
31}
32
33bool ReportAssistantPage::showNextPage()
34{
35 return true;
36}
37
38ReportInterface * ReportAssistantPage::reportInterface() const
39{
40 return m_assistant->reportInterface();
41}
42
43BugzillaManager * ReportAssistantPage::bugzillaManager() const
44{
45 return reportInterface()->bugzillaManager();
46}
47
48ReportAssistantDialog * ReportAssistantPage::assistant() const
49{
50 return m_assistant;
51}
52
53void ReportAssistantPage::emitCompleteChanged()
54{
55 emit completeChanged(this, isComplete());
56}
57