--- a/bluetoothengine/btsac/btrcc/src/btrccLinker.cpp Wed Sep 15 12:23:51 2010 +0300
+++ b/bluetoothengine/btsac/btrcc/src/btrccLinker.cpp Wed Oct 13 14:43:49 2010 +0300
@@ -21,12 +21,14 @@
#include <btaccObserver.h>
#include <remconinterfaceselector.h>
#include <remconaddress.h>
+#include <remconcoreapitarget.h>
#include <apacmdln.h>
#include <apgcli.h>
#include "btaudioremconpskeys.h"
#include "btrccLegacyVolumeLevelController.h"
#include "btrccAbsoluteVolumeLevelController.h"
#include "btrccLinker.h"
+#include "btrccplayerstarter.h"
#include "btrccBrowsingAdapter.h"
#include "debug.h"
#include <btnotif.h>
@@ -120,6 +122,10 @@
// If volume control is not supported, we'll need another interface selector session for disconnecting.
iInterfaceSelectorForDisconnectingTargetSession = CRemConInterfaceSelector::NewL();
}
+
+ iPlayerStarter = CPlayerStarter::NewL();
+ iCoreTarget = CRemConCoreApiTarget::NewL(*iInterfaceSelector, *iPlayerStarter);
+ iPlayerStarter->SetCoreTarget(*iCoreTarget);
iRemConBatteryTgt = CRemConBatteryApiTarget::NewL(*iInterfaceSelector, *this);
@@ -150,6 +156,7 @@
delete iAbsoluteVolController;
delete iLegacyVolController;
+ delete iPlayerStarter;
Cancel();
iStateArray.ResetAndDestroy();
iStateArray.Close();