//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
#include <FBaseString.h>
#include <FBaseByteBuffer.h>
#include <FBaseColArrayList.h>
+#include <FBaseColArrayListT.h>
#include <FBaseColHashMap.h>
#include <FBaseSysLog.h>
#include "FIo_IpcCommonDataTypes.h"
};
template<>
+struct ParamTraits <Tizen::Base::Collection::ArrayListT<Tizen::Base::String> >
+{
+ typedef Tizen::Base::Collection::ArrayListT<Tizen::Base::String> param_type;
+
+ static void Write(Message* m, const param_type& p)
+ {
+ int count = p.GetCount();
+ Tizen::Base::String str;
+
+ WriteParam(m, count);
+
+ for (int i = 0; i < count; i++)
+ {
+ p.GetAt(i, str);
+ WriteParam(m, str);
+ }
+ }
+
+ static bool Read(const Message* m, void** iter, param_type* r)
+ {
+ Tizen::Base::String str;
+ int count = 0;
+
+ if (!m->ReadLength(iter, &count))
+ {
+ return false;
+ }
+
+ r->Construct(count);
+
+ for (int i = 0; i < count; i++)
+ {
+ if (!ReadParam(m, iter, &str))
+ {
+ return false;
+ }
+ r->Add(str);
+ }
+
+ return true;
+ }
+
+ static void Log(const param_type& p, std::string* l)
+ {
+ }
+};
+
+template<>
struct ParamTraits <Tizen::Base::Collection::HashMap>
{
typedef Tizen::Base::Collection::HashMap param_type;