0

C++ custom property store key possible ?

asked 2014-11-19 19:31:34 -0700

tashi gravatar image

Can we have as many PropertyStoreKey as we wish. or Its fixed as below

typedef enum { DEVICE_ID = 0, DEVICE_NAME = 1, APP_ID = 2, APP_NAME = 3, DEFAULT_LANG = 4, SUPPORTED_LANGS = 5, DESCRIPTION = 6, MANUFACTURER = 7, DATE_OF_MANUFACTURE = 8, MODEL_NUMBER = 9, SOFTWARE_VERSION = 10, AJ_SOFTWARE_VERSION = 11, HARDWARE_VERSION = 12, SUPPORT_URL = 13, NUMBER_OF_KEYS = 14 } PropertyStoreKey;

Android is allowing us to have custom property store. But C++ seems to restrict to above enum.

Kindly shed some light.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-11-21 14:54:43 -0700

bspencer gravatar image

The Property Store is just a data structure to hold the values that you want to have exposed. The actual value that travels over AllJoyn in the Announce signal and the GetAboutData bus method call is a "a{sv}" which is an array of key value pairs (hash). You are welcome to add new entries into that data structure to suite your needs.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-11-19 19:31:34 -0700

Seen: 63 times

Last updated: Nov 21 '14