This page was last modified 03:46, 8 January 2008.
How to Identify Device management plug-ins
From Forum Nokia Wiki
Device management Plug-ins are Ecom plug-ins, thus you can get the plug-in information array easily by using REComSession API’s ListImplementationsL() function, the required interface UID is defined in SmlDmAdapter.h header file.
Usually Ecom plug-ins will define name & other information in their resource file, unfortunately device management plug-ins often only define their UID vale and leave other strings empty. This means that you can not know which plug-in UID corresponds to which device management plug-in by just checking the implementation array with REComSession.
And for this reason, to obtain the name of the plug-in, you actually need to construct it.
When constructing Device management plug-ins, you first construct the object with CSmlDmAdapter API’s NewL() function. This function takes the implementation UID as an argument, and it is used to load the right Ecom plug-in.
After constructing the plug-in instance, you always need to call DDFStructureL() function. This function builds the device management object tree by calling the callback you have given to the functions. A notable issue with DDFStructureL() is that it will first give the Root name to the callback function, thus you could identify each Device management plug-in by its root name.
To check which root name belongs to which device management plug-in, you could read the DDF documentation for each device management plug-in. Good amount of cdocumentation can be found from Forum Nokia Device management documentation.
Example sourse code: DM_GetPlugIns.zip
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Connection Manager cannot detect devices after Windows reboot | RESTELLI | PC Suite API and PC Connectivity SDK | 0 | 2005-08-18 11:53 |
| Starting a IPSEC connection from inside another application | srama | Symbian Networking & Messaging | 0 | 2006-08-23 08:06 |
| OMA Device Management OTA/SMS | flaviomagacho | OMA DM/DS/CP | 6 | 2007-10-03 13:40 |
| ICL: yuv422 to jpg/png/etc.. | cryptoalex | Symbian Media (Graphics & Sounds) | 5 | 2008-06-23 14:02 |
| SyncML Notification Initiated Session | HWM | OMA DM/DS/CP | 32 | 2007-10-24 18:27 |
