Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


How to write a converter information file

Each converter DLL requires an associated information file. This file allows the converter architecture to read the properties of the converters in the DLL without having to load the DLL itself.

The information is written in a resource file. It contains:

The resource file is included within a start resource ... end block in the project file. Its targetpath should be \resource\convert\.

Example

The following example is an information file for a converter DLL that contains one converter:

#include <conplugin.rh>
#include "ExampleConv.hrh"

RESOURCE CONARC_RESOURCE_FILE
    {
    converter_list=
        {
        CONVERTER_DATA
            {
            conv_uid=KExampleConvImplementationUid; // UID of the converter, as returned by CConverterBase2::Uid()
            from_list=
                {
                MIME 
                    { 
                    type="example/qp"; 
                    lang_list=
                        {
      // lang_id is a value from the TLanguage enumeration. 01 is English.
                        LANG_DATA{lang_id=01;translation="quoted-printable";}
                        };
                    }
                };
            to_list=
                {
                MIME 
                    { 
                    type="example/text";
                    lang_list=
                        {
                        LANG_DATA{lang_id=01;translation="text";}
                        };
                    }
                };
            }
        };
    }