Change-Id: Id47ea1dcddff38717f1aecc8acd8a2cb15bef7a7
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
ContextStoreSearchQuery::ContextStoreSearchQuery(const std::string& projection,
const std::string& selection, const std::string& sortOrder,
unsigned int limit) :
- __limit(0)
+ __projection(projection),
+ __selection(selection),
+ __sortOrder(sortOrder),
+ __limit(limit)
{
}
int error = __proxy->call(METHOD_RETRIEVE, param, &outParam);
IF_FAIL_RETURN_TAG(error == E_NONE, error, _E, "%s", CTX_ERROR_STR(error));
- result = Tuple::buildFrom(g_variant_get_child_value(outParam, IDX_RETRIEVE_RESULT));
+ GVariant* vals = NULL;
+ g_variant_get(outParam, "(v)", &vals);
+
+ result = Tuple::buildFrom(vals);
return E_NONE;
}