accessoryservices/accessoryremotecontrol/tsrc/stub/audiostuborbit/audiostuborbit.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 02 Sep 2010 21:48:26 +0300
changeset 63 09d657f1ee00
permissions -rw-r--r--
Revision: 201035 Kit: 201035

/*
* Copyright (c) 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:  Backend for the Qt app. Starts the Remcon observer.
*
*/

#include <tspclientmapper.h>
#include "audiostuborbit.h"
#include "audioclientstubremconobserver.h"

audiostuborbit::audiostuborbit(QWidget *parent)
    : HbMainWindow(parent)
{
//	ui.setupUi(this);
	iTspClientMapper = CTspClientMapper::NewL();
	iTspClientMapper->SetTspTargetClient( CTspClientMapper::EPlayingClients, RProcess().Id() );
	iRemConObserver = CAudioClientStubRemConObserver::NewL();
}

audiostuborbit::~audiostuborbit()
{
    if ( iTspClientMapper )
        {
        iTspClientMapper->RemoveTspTargetClient( CTspClientMapper::EPlayingClients, RProcess().Id() );
        }
    delete iTspClientMapper;
    delete iRemConObserver;
}