wlanutilities/wlanindicatorplugin/tsrc/wlanindicatortest/src/wlanindicatortestmainwindow.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 02:07:04 +0300
changeset 62 b47b808de481
permissions -rw-r--r--
Revision: 201037 Kit: 201039

/*
 * Copyright (c) 2009 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:
 * 
 */

#include <hbaction.h>
#include <qgraphicswidget>
#include <hblabel.h>
#include <hbmenu.h>
#include <hbpushbutton.h>
#include <hbdocumentloader.h>
#include <hbinstance.h>

#include <hbindicator.h>
#include <hbindicatorplugininterface.h>
#include <hbindicatorinterface.h>

#include "wlanindicatortest.h"
#include "wlanindicatortestview.h"
#include "wlanindicatortestmainwindow.h"


WlanIndicatorTestMainWindow::WlanIndicatorTestMainWindow(WlanIndicatorTest *appRef) :
    mAppRef(appRef),
    mExitAction(0)
{
    addTestView();

    mExitAction = softKeyAction(Hb::SecondarySoftKey);

    show();
}

WlanIndicatorTestMainWindow::~WlanIndicatorTestMainWindow()
{
}

void WlanIndicatorTestMainWindow::addTestView()
{
    mTestView = new WlanIndicatorTestView(mAppRef);
    addView(mTestView);
    
    bool connectStatus = connect(
         mTestView,
         SIGNAL(exitTriggered()),
         this,
         SIGNAL(exitTriggered()));
     Q_ASSERT(connectStatus == true);
     
}