--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/qtinternetradio/ui/src/irtermsconsview.cpp Fri May 14 15:43:29 2010 +0300
@@ -0,0 +1,55 @@
+/*
+* 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 <hbpushbutton.h>
+
+#include "irtermsconsview.h"
+#include "irapplication.h"
+#include "iruidefines.h"
+
+IRTermsConsView::IRTermsConsView(IRApplication* aApplication, TIRViewId aViewId)
+ : IRBaseView(aApplication, aViewId)
+
+{
+ // This view need not to be stacked.
+ setFlag(EViewFlag_UnStackable);
+ setInitCompleted(true);
+ initViewContents();
+}
+
+IRTermsConsView::~IRTermsConsView()
+{
+}
+
+void IRTermsConsView::initViewContents()
+{
+ setObjectName(TERMS_CONS_VIEW_BASE_OBJECT_VIEW);
+ QObjectList roots;
+ roots.append(this);
+ iLoader.setObjectTree(roots);
+ iLoader.load(TERMS_CONS_VIEW_LAYOUT_FILENAME);
+
+ HbPushButton *acceptButton = qobject_cast<HbPushButton *>(iLoader.findObject("accept_btn"));
+ HbPushButton *denyButton = qobject_cast<HbPushButton *>(iLoader.findObject("deny_btn"));
+
+ connect( acceptButton, SIGNAL(released()),
+ iApplication, SLOT(handleTermsConsAccepted()) );
+ connect( denyButton, SIGNAL(released()),
+ iApplication, SIGNAL(quit()) );
+}
+
+