summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordukan.kim <dukan.kim@samsung.com>2013-04-03 17:08:12 +0900
committerdukan.kim <dukan.kim@samsung.com>2013-04-03 17:08:12 +0900
commit77dbc8bcd0befc717817dfc16959905bf77f9476 (patch)
treedceb01eac29ce7dcc4236e9575e40ec1cab4fb96
parent4286d4f1e4b138f0121390bb49ab999fd69c34b6 (diff)
downloadbluetooth-77dbc8bcd0befc717817dfc16959905bf77f9476.tar.gz
bluetooth-77dbc8bcd0befc717817dfc16959905bf77f9476.tar.bz2
bluetooth-77dbc8bcd0befc717817dfc16959905bf77f9476.zip
Add uuid_list of AppControl.
Change-Id: Id89dfecb65dce0e4ea1c02b531b774f83daaab47 Signed-off-by: dukan.kim <dukan.kim@samsung.com>
-rwxr-xr-xsrc/FNetBtBluetoothDevice.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/FNetBtBluetoothDevice.cpp b/src/FNetBtBluetoothDevice.cpp
index 51d4f07..9676592 100755
--- a/src/FNetBtBluetoothDevice.cpp
+++ b/src/FNetBtBluetoothDevice.cpp
@@ -21,6 +21,7 @@
#include <FNetBtBluetoothTypes.h>
#include <FNetBtBluetoothDevice.h>
#include <FAppAppControl.h>
+#include <FBaseColArrayList.h>
#include <FBaseColIList.h>
#include <FBaseColIMap.h>
#include <FBaseBoolean.h>
@@ -31,6 +32,7 @@
#include "FNetBt_BluetoothDeviceImpl.h"
using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
using namespace Tizen::Base::Runtime;
namespace Tizen { namespace Net { namespace Bluetooth
@@ -485,6 +487,7 @@ BluetoothDevice::GetInstanceFromAppControlResultN(const Tizen::Base::Collection:
long minClassType = 0;
long svcClassType = 0;
long svcType = 0;
+ ArrayList* pUuidList = null;
ClearLastResult();
@@ -563,6 +566,10 @@ BluetoothDevice::GetInstanceFromAppControlResultN(const Tizen::Base::Collection:
r = Long::Decode(dataStr, svcType);
SysTryReturn(NID_NET_BT, r == E_SUCCESS, null, E_INVALID_ARG, "[E_INVALID_ARG] exception occurred on parsing input data.")
+ // Gets the service UUID list
+ pUuidList = (ArrayList*) appControlResult.GetValue(String("http://tizen.org/appcontrol/data/bluetooth/uuid_list"));
+ SysTryReturn(NID_NET_BT, pUuidList != null, null, E_INVALID_ARG, "[E_INVALID_ARG] exception occurred on parsing input data.")
+
// Create an instance of BluetoothDevice.
pNewBtDevice = new (std::nothrow) BluetoothDevice();
if (pNewBtDevice == null)
@@ -582,6 +589,7 @@ BluetoothDevice::GetInstanceFromAppControlResultN(const Tizen::Base::Collection:
pNewBtDeviceImpl->SetMinorDeviceClassType((BluetoothMinorDeviceClassType) minClassType);
pNewBtDeviceImpl->SetServiceClassList(svcClassType);
pNewBtDeviceImpl->SetServiceList(svcType);
+ pNewBtDeviceImpl->SetServiceUuidList(pUuidList, true);
return pNewBtDevice;
}