DATA RECOGNIZER-- Help

Login to reply to this topic.
Sat, 2008-07-12 17:16
Joined: 2008-04-29
Forum posts: 6

I tried to write data recognizer for non-native file:following is the .RSS file

#include

RESOURCE REGISTRY_INFO r_registry
{
dll_uid = 0xE8000002; // should match name of this file
interfaces =
{
INTERFACE_INFO
{
interface_uid = 0x101F7D87; // need to create this uid in the uid database
implementations =
{
IMPLEMENTATION_INFO
{
implementation_uid = 0x101F7DA1;
version_no = 1; display_name= "ExampleRecognizer";
default_data = "";
opaque_data = "";
}
};
}
};
}
1.In the above code what value I should set for "implementation_uid"? Is it the application uid by which file is supposed to open?
2.How to associate the (Eg *.awg)no-native file with a perticular application.
3. What should be the MIME type for a non-native file type while implementing DoRecognizeL()?


Sat, 2008-07-12 17:54
Joined: 2005-11-20
Forum posts: 1241
Re: DATA RECOGNIZER-- Help

1. The recognizer has an UID of its own
2. Declare the MIME type in the rss file for the AIF of your application, Symbian will do the rest automatically
3. Well, what kind of data file is it? Regardless of recognizer or not, Symbian or Windows or whatever, the MIME type is a property of the *file* to recognize, so it all depends on what it is.


René Brunner

Sat, 2008-07-12 18:15
Joined: 2008-04-29
Forum posts: 6
Re: DATA RECOGNIZER-- Help

It's an xml file.

Sat, 2008-07-12 20:40
Joined: 2005-11-20
Forum posts: 1241
Re: DATA RECOGNIZER-- Help

In this case, maybe the info here will be useful:
http://en.wikipedia.org/wiki/XML_and_MIME


René Brunner

  • Login to reply to this topic.