X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fio%2Finc%2FFIo_IpcCommonParamTraits.h;h=babed4efa2c80aa46ef5e61b323257b057307c2e;hb=3ea07245f55a5cc473d080630c50a5d9a1f74c60;hp=8d30aae02deb6c5d9dc64fbb046f9ad76b970e5b;hpb=e2d055f232772fc63316d17804dae90f4f4ad4f2;p=platform%2Fframework%2Fnative%2Fappfw.git diff --git a/src/io/inc/FIo_IpcCommonParamTraits.h b/src/io/inc/FIo_IpcCommonParamTraits.h index 8d30aae..babed4e 100644 --- a/src/io/inc/FIo_IpcCommonParamTraits.h +++ b/src/io/inc/FIo_IpcCommonParamTraits.h @@ -1,5 +1,4 @@ // -// Open Service Platform // Copyright (c) 2012 Samsung Electronics Co., Ltd. // // Licensed under the Apache License, Version 2.0 (the License); @@ -30,6 +29,7 @@ #include #include #include +#include #include #include #include "FIo_IpcCommonDataTypes.h" @@ -197,6 +197,54 @@ struct ParamTraits }; template<> +struct ParamTraits > +{ + typedef Tizen::Base::Collection::ArrayListT 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 { typedef Tizen::Base::Collection::HashMap param_type;