iaupdate/IAD/ui/inc/iaupdatemainwindow.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 02 Sep 2010 20:34:03 +0300
changeset 67 3a625661d1ce
parent 42 d17dc5398051
child 77 d1838696558c
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   This file contains the header file of the IAUpdateMainWindow
*                class 
*
*/

#ifndef IAUPDATEMAINWINDOW_H_
#define IAUPDATEMAINWINDOW_H_

#include <QObject>
#include <hbmainwindow.h>

// Forward declarations
class IAUpdateMainView;
class HbDocumentLoader;
class MIAUpdateNode;
class MIAUpdateFwNode;
class IAUpdateEngine;  
class CIAUpdateSettingDialog;

class IAUpdateMainWindow : public HbMainWindow
{
    Q_OBJECT
    
public:
    IAUpdateMainWindow(IAUpdateEngine *engine);
    virtual ~IAUpdateMainWindow();
    
    IAUpdateMainView*  GetMainView();
    CIAUpdateSettingDialog* GetSettingView();

public slots:
    void toMainView();
    void refreshMainView(const RPointerArray<MIAUpdateNode>& nodes,
                         const RPointerArray<MIAUpdateFwNode>& fwNodes,
                         int error);
    void toSettingView();

private:
    void addMainView(IAUpdateEngine *engine);
    void addSettingView();
    
private:
    IAUpdateMainView *mMainView;
    CIAUpdateSettingDialog *mSettingView;
    
};

#endif /* IAUPDATEMAINWINDOW */