Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


Content Access Agent ECOM resource file

[Top]


default_data

The default_data section of an CA Agent or CA Agent proxy's resource file is used to specify three pieces of information:

The buffer size section is separated from the supplier MIME types by a '|' character and the supplier MIME types are separated from the consumer MIME types by a ':' character.

Below is an example for an OMA DRM agent.

default_data="100|application/vnd.oma.drm.message,application/vnd.oma.drm.rights+xml:application/vnd.oma.drm.content";

[Top]


opaque_data

The opaque_data section is used to specify the agent's private directory under c:\private\. This will be the SID (SecureId) of the server which owns the directory, for example

opaque_data="12345678";

If the agent does not have a corresponding private directory or does not wish to provide access to that directory, it should just leave the opaque_data section as an empty string.

[Top]


An example agent resource file

// 101FE8F1.rss 
// UIDs quick-ref 
// 
// ECOM DLL UID: 0x101FE8F1 
// CA Agent interface UID: 0x10204740 
// Test CAA Implementation: 0x101FE8F2

#include "RegistryInfo.rh" 
            
RESOURCE REGISTRY_INFO theInfo 
{

    dll_uid = 0x101FE8F1; 
                
    interfaces = 
    {
        INTERFACE_INFO 
        {
         interface_uid = 0x10204740; 
        implementations = 
            {
            IMPLEMENTATION_INFO 
                {
                implementation_uid = 0x101FE8F2; 
                version_no = 1; 
                display_name = "Test Agent"; 
                default_data = "255|application/vnd.oma.drm.message,application/vnd.oma.drm.content:application/vnd.oma.drm.content";
                // Sample CAF types 
                opaque_data = "12345678"; 
                }
            };
        }
    };
}

[Top]


Important UIDs for CA agents

When writing a new CA Agent, all other UIDs used in the above examples should be replaced by new UIDs from the Symbian UID generator.