--- a/usbmgmt/usbmgrtest/t_charging_emu/src/tbatterycharging.cpp Tue Aug 31 17:01:47 2010 +0300
+++ b/usbmgmt/usbmgrtest/t_charging_emu/src/tbatterycharging.cpp Wed Sep 01 12:35:00 2010 +0100
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2007-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"
@@ -21,6 +21,7 @@
#include <e32svr.h>
#include <e32base.h>
#include <e32std.h>
+#include <usbman.rsg>
#include <f32file.h>
#include <barsc.h>
#include <barsread.h>
@@ -128,6 +129,7 @@
iPlugin = iExtensionPlugins[0];
iDummyLdd.Initialise();
+ //iRepository = CRepository::NewL(KUsbBatteryChargingCentralRepositoryUid);
User::LeaveIfError(iTimer.CreateLocal());
DefinePropertyL(KBattChargWriteRepositoryUid, KBattChargWriteRepositoryKey,RProperty::EInt);
@@ -344,7 +346,7 @@
TInt CDummyUsbDevice::GetNextLine()
{
- TInt newLineOffset = (iPtr.Mid(iFileOffset)).Locate(13);
+ TInt newLineOffset = (iPtr.Mid(iFileOffset)).Locate(13);//Find(_L("\r\n"));
if (newLineOffset < 0)
{
return newLineOffset;
@@ -425,6 +427,7 @@
{
TInt err = WriteToRepositoryProperty(iCommandValue);
+ //TInt err = iRepository->Set(KUsbBatteryChargingKeyEnabledUserSetting, iCommandValue);
iTest(err == KErrNone);
}
break;
@@ -480,6 +483,8 @@
TInt current;
TInt err = GetChargingCurrentFromProperty(current);
+ //TInt err = RProperty::Get(KPropertyUidUsbBatteryChargingCategory,
+ // KPropertyUidUsbBatteryChargingChargingCurrent, current);
iTest(err == KErrNone);
iTest(current == iCheckValue);
}