accessoryservices/accessoryremotecontrol/tsrc/stub/audiostuborbit/audiostuborbit.cpp
branchRCL_3
changeset 22 8cb079868133
parent 21 ccb4f6b3db21
child 23 c26be94c8889
equal deleted inserted replaced
21:ccb4f6b3db21 22:8cb079868133
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Backend for the Qt app. Starts the Remcon observer.
       
    15 *
       
    16 */
       
    17 
       
    18 #include <tspclientmapper.h>
       
    19 #include "audiostuborbit.h"
       
    20 #include "audioclientstubremconobserver.h"
       
    21 
       
    22 audiostuborbit::audiostuborbit(QWidget *parent)
       
    23     : HbMainWindow(parent)
       
    24 {
       
    25 //	ui.setupUi(this);
       
    26 	iTspClientMapper = CTspClientMapper::NewL();
       
    27 	iTspClientMapper->SetTspTargetClient( CTspClientMapper::EPlayingClients, RProcess().Id() );
       
    28 	iRemConObserver = CAudioClientStubRemConObserver::NewL();
       
    29 }
       
    30 
       
    31 audiostuborbit::~audiostuborbit()
       
    32 {
       
    33     if ( iTspClientMapper )
       
    34         {
       
    35         iTspClientMapper->RemoveTspTargetClient( CTspClientMapper::EPlayingClients, RProcess().Id() );
       
    36         }
       
    37     delete iTspClientMapper;
       
    38     delete iRemConObserver;
       
    39 }