X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fsync%2Finternal_api%2Fbase_node.cc;h=57dbb22f72115e58dd8221f769afe2baf78bf5fc;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=ac047686a5f1c0b9d83555230c3c12453a548f62;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/sync/internal_api/base_node.cc b/src/sync/internal_api/base_node.cc index ac04768..57dbb22 100644 --- a/src/sync/internal_api/base_node.cc +++ b/src/sync/internal_api/base_node.cc @@ -290,6 +290,16 @@ ModelType BaseNode::GetModelType() const { return GetEntry()->GetModelType(); } +const syncer::AttachmentIdList BaseNode::GetAttachmentIds() const { + AttachmentIdList result; + const sync_pb::AttachmentMetadata& metadata = + GetEntry()->GetAttachmentMetadata(); + for (int i = 0; i < metadata.record_size(); ++i) { + result.push_back(AttachmentId::CreateFromProto(metadata.record(i).id())); + } + return result; +} + void BaseNode::SetUnencryptedSpecifics( const sync_pb::EntitySpecifics& specifics) { ModelType type = GetModelTypeFromSpecifics(specifics);