Hi Jaako, > > > Is there already a specification/draft of the format of this dict? If > > not, I would be tempted to use the 27.007 +CPBR/W field names as keys > > (e.g. index, number, type, text, adnumber, secondtext, sip_uri, etc.) > > > > there is not. So you need to propose one here. > > For simplicity, I would propose that both import and export would use an > array of dict's with the 27.007 keys: > > index: type=integer, import=always export=ignored
no index number. We will never use them. It is either the full phonebook at once or nothing. The write function has to empty out left over entries. > number: type=string, import=always/empty export=optional/empty > type: type=integer, import=always export=mandatory > text: type=string, import=always/empty export=optional/empty > hidden: type=int, import=always, export=optional/default=0 > group: type=string, import=if nonempty, export=optional > adnumber: type=string, import=if nonempty, export=optional > adtype: type=integer, import/export=mandatory if adnumber nonempty > secondtext: type=string, import=if nonempty, export=optional > email: type=string, import=if nonempty, export=optional > sip_uri: type=string, import=if nonempty, export=optional > tel_uri: type=string, import=if nonempty, export=optional Actually I prefer we use proper Dict field names. We never use anything literally from the specifications in this area. So why start now. Please propose proper human readable names. Regards Marcel _______________________________________________ ofono mailing list [email protected] http://lists.ofono.org/listinfo/ofono
