charconvfw/Charconv/ongoing/Include/PictographObserver.h
changeset 16 56cd22a7a1cb
parent 0 1fb32624e06b
equal deleted inserted replaced
0:1fb32624e06b 16:56cd22a7a1cb
     1 /*
     1 /*
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     8 *
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:        This header file defines functions for conversion of pictograph.
    14 * Description:        This header file defines functions for conversion of pictograph.
    15 
       
    16 *
    15 *
    17 */
    16 */
    18 
    17 
    19 
    18 
    20 
    19 
    22 
    21 
    23 
    22 
    24 
    23 
    25 
    24 
    26 
    25 
    27 
       
    28 
       
    29 
       
    30 #ifndef PICTOGRAPHOBSERVER_H
    26 #ifndef PICTOGRAPHOBSERVER_H
    31 
       
    32 #define PICTOGRAPHOBSERVER_H
    27 #define PICTOGRAPHOBSERVER_H
    33 
       
    34 #include <e32def.h>
    28 #include <e32def.h>
    35 
       
    36 #include <e32std.h>
    29 #include <e32std.h>
    37 
       
    38 #include <convutils.h>
    30 #include <convutils.h>
    39 
    31 
    40 
    32 
    41 
       
    42 
       
    43 
       
    44 enum TOriginalCharset
    33 enum TOriginalCharset
    45 
       
    46     {
    34     {
    47 
       
    48     ECharsetShiftJis,
    35     ECharsetShiftJis,
    49 
       
    50     ECharsetEucJp,
    36     ECharsetEucJp,
    51 
       
    52     ECharsetOthers
    37     ECharsetOthers
    53 
       
    54     };
    38     };
    55 
    39 
    56 
    40 
    57 
       
    58 
       
    59 
       
    60 _LIT(KLitPictographConverterPath, "z:\\system\\libs\\");
    41 _LIT(KLitPictographConverterPath, "z:\\system\\libs\\");
    61 
       
    62 _LIT(KLitPictographConverter, "CnvPictographShared.dll");
    42 _LIT(KLitPictographConverter, "CnvPictographShared.dll");
    63 
    43 
    64 
    44 
    65 
    45 
    66 
    46 /**
    67 
    47 * It sets parameters to SCharacterSet array.
    68 
    48 * It called in ConvertFromUnicode().
       
    49 * It makes possible that pictograph conversion is called from other
       
    50 * conversion plug-ins.
       
    51 * @since 2.6
       
    52 * @param aArrayOfCharacterSets The conversion table array
       
    53 */
       
    54 IMPORT_C void SetCharacterSetsForPictograph(
       
    55     RArray<CnvUtilities::SCharacterSet>& aArrayOfCharacterSets);
    69 
    56 
    70 /**
    57 /**
    71 
       
    72 * It sets parameters to SCharacterSet array.
    58 * It sets parameters to SCharacterSet array.
    73 
       
    74 * It called in ConvertFromUnicode().
    59 * It called in ConvertFromUnicode().
    75 
       
    76 * It makes possible that pictograph conversion is called from other
    60 * It makes possible that pictograph conversion is called from other
    77 
       
    78 * conversion plug-ins.
    61 * conversion plug-ins.
    79 
       
    80 * @since 2.6
    62 * @since 2.6
    81 
       
    82 * @param aArrayOfCharacterSets The conversion table array
    63 * @param aArrayOfCharacterSets The conversion table array
    83 
    64 * @param aOriginalCharset The character set
    84 */
    65 */
    85 
       
    86 IMPORT_C void SetCharacterSetsForPictograph(
    66 IMPORT_C void SetCharacterSetsForPictograph(
    87 
    67     RArray<CnvUtilities::SCharacterSet>& aArrayOfCharacterSets,
    88     RArray<CnvUtilities::SCharacterSet>& aArrayOfCharacterSets);
    68     TOriginalCharset aOriginalCharset);
    89 
       
    90 
       
    91 
    69 
    92 /**
    70 /**
    93 
    71 * It sets parameters to SMethod array.
    94 * It sets parameters to SCharacterSet array.
    72 * It called in ConvertToUnicode().
    95 
       
    96 * It called in ConvertFromUnicode().
       
    97 
       
    98 * It makes possible that pictograph conversion is called from other
    73 * It makes possible that pictograph conversion is called from other
    99 
       
   100 * conversion plug-ins.
    74 * conversion plug-ins.
   101 
       
   102 * @since 2.6
    75 * @since 2.6
   103 
    76 * @param aArrayOfMethods The conversion table array
   104 * @param aArrayOfCharacterSets The conversion table array
       
   105 
       
   106 * @param aOriginalCharset The character set
    77 * @param aOriginalCharset The character set
   107 
       
   108 */
    78 */
   109 
    79 IMPORT_C void SetMethodsForPictograph(
   110 IMPORT_C void SetCharacterSetsForPictograph(
    80     RArray<CnvUtilities::SMethod>& aArrayOfMethods, TOriginalCharset aOriginalCharset);
   111 
       
   112     RArray<CnvUtilities::SCharacterSet>& aArrayOfCharacterSets,
       
   113 
       
   114     TOriginalCharset aOriginalCharset);
       
   115 
       
   116 
       
   117 
    81 
   118 /**
    82 /**
   119 
    83 * It sets parameters to SState array.
   120 * It sets parameters to SMethod array.
       
   121 
       
   122 * It called in ConvertToUnicode().
    84 * It called in ConvertToUnicode().
   123 
       
   124 * It makes possible that pictograph conversion is called from other
    85 * It makes possible that pictograph conversion is called from other
   125 
       
   126 * conversion plug-ins.
    86 * conversion plug-ins.
   127 
       
   128 * @since 2.6
    87 * @since 2.6
   129 
       
   130 * @param aArrayOfMethods The conversion table array
    88 * @param aArrayOfMethods The conversion table array
   131 
       
   132 * @param aOriginalCharset The character set
       
   133 
       
   134 */
    89 */
   135 
       
   136 IMPORT_C void SetMethodsForPictograph(
       
   137 
       
   138     RArray<CnvUtilities::SMethod>& aArrayOfMethods, TOriginalCharset aOriginalCharset);
       
   139 
       
   140 
       
   141 
       
   142 /**
       
   143 
       
   144 * It sets parameters to SState array.
       
   145 
       
   146 * It called in ConvertToUnicode().
       
   147 
       
   148 * It makes possible that pictograph conversion is called from other
       
   149 
       
   150 * conversion plug-ins.
       
   151 
       
   152 * @since 2.6
       
   153 
       
   154 * @param aArrayOfMethods The conversion table array
       
   155 
       
   156 */
       
   157 
       
   158 IMPORT_C void SetStatesForPictograph(RArray<CnvUtilities::SState>& aArrayOfStates);
    90 IMPORT_C void SetStatesForPictograph(RArray<CnvUtilities::SState>& aArrayOfStates);
   159 
    91 
   160 
       
   161 
       
   162 #endif // PICTOGRAPHOBSERVER_H
    92 #endif // PICTOGRAPHOBSERVER_H
   163