filehandling/fileconverterfw/INC/CONPLUGIN.RH
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // HEADER INFO
       
    15 // Describes the converter.
       
    16 // 
       
    17 //
       
    18 
       
    19 /**
       
    20  @publishedAll 
       
    21  @released 
       
    22 */
       
    23 STRUCT CONARC_RESOURCE_FILE
       
    24 	{
       
    25 	/** Future use, do not use */
       
    26 	LLINK extension = 0;
       
    27 	//
       
    28 	LEN WORD STRUCT converter_list[]; // Converter_data
       
    29 	}
       
    30 
       
    31 STRUCT CONVERTER_DATA
       
    32 /** Describes a converter within a converter DLL.
       
    33 
       
    34 @publishedAll 
       
    35 @released */
       
    36 	{
       
    37 	/** Future use, do not use */
       
    38 	LLINK extension = 0;
       
    39 	/** The UID of the converter. */
       
    40 	LONG conv_uid;
       
    41 	//
       
    42 	/** Array of MIME resources describing the data types that the converter can convert. 
       
    43 	
       
    44 	Target type: MIME */
       
    45 	LEN WORD STRUCT from_list[]; // Mime Type
       
    46 	/** Array of MIME resources describing the data types to which the converter can convert. 
       
    47 	
       
    48 	Target type: MIME */
       
    49 	LEN WORD STRUCT to_list[]; // Mime Type
       
    50 	//
       
    51 	}
       
    52 
       
    53 /**
       
    54 @publishedAll 
       
    55 @released 
       
    56 */
       
    57 #define KMaxMimeType 256
       
    58 
       
    59 /**
       
    60 @publishedAll 
       
    61 @released 
       
    62 */
       
    63 #define KMaxTranslation 50
       
    64 
       
    65 STRUCT MIME
       
    66 /** Describes a data type that a converter can convert to or from.
       
    67 
       
    68 @publishedAll 
       
    69 @released */
       
    70 	{
       
    71 	/** Future use, do not use */
       
    72 	LLINK extension = 0;
       
    73 	/** The supported MIME type, e.g. text/html. */
       
    74 	LTEXT8 type(KMaxMimeType);
       
    75 	/** Array of LANG_DATA resources giving localised human-readable names for the MIME type. 
       
    76 	
       
    77 	Target type: LANG_DATA */
       
    78 	LEN WORD STRUCT lang_list[] ; //lang_data
       
    79 	}
       
    80 
       
    81 STRUCT LANG_DATA
       
    82 /** A localised human-readable name for a MIME type.
       
    83 
       
    84 @publishedAll 
       
    85 @released */
       
    86 	{
       
    87 	/** Future use, do not use */
       
    88 	LLINK extension = 0;
       
    89 	/** The ID of the language being used.Values should be as defined in TLanguage. */
       
    90 	WORD lang_id;
       
    91 	/** The human-readable name for the MIME type. */
       
    92 	LTEXT	translation(KMaxTranslation);
       
    93 	}