epoc32/include/mw/osscombination.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     1 /*
     2 * Copyright (c) 2005,2006 Choe Hwanjin
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 *
    16 */
    17 
    18 
    19 #ifndef OSSCOMBINATION_H
    20 #define OSSCOMBINATION_H
    21 
    22 // INCLUDES
    23 #include <e32std.h>
    24 #include <e32base.h>
    25 
    26 typedef struct _HangulCombination HangulCombination;
    27 
    28 class TOssCombinationItem
    29     {
    30     public:
    31         
    32         TBool operator == (const TOssCombinationItem& aCombination) const;
    33         
    34     public:
    35         
    36         TUint iFirst;
    37         
    38         TUint iSecond;
    39         
    40         TUint iResult;
    41     };
    42 
    43 class COssCombination : public CBase
    44     {
    45 public:
    46         
    47     IMPORT_C static COssCombination* NewLC();
    48 
    49     IMPORT_C static COssCombination* NewL();
    50 
    51     IMPORT_C virtual ~COssCombination();
    52     
    53 public:
    54     
    55     IMPORT_C TInt AddCombinationL(const TOssCombinationItem& aCombination);
    56     
    57     IMPORT_C TInt RemoveCombination(const TOssCombinationItem& aCombination);
    58 
    59     IMPORT_C TInt FindCombination(const TOssCombinationItem& aCombination); 
    60     
    61 private:
    62 
    63     COssCombination();
    64 
    65     void ConstructL();
    66     
    67 private:
    68     
    69     TBool PopulateListL();
    70     
    71 private:
    72     
    73     HangulCombination* iHangulCombination;
    74     
    75     RArray<TOssCombinationItem> iCombinationList;
    76 
    77     friend class COssHangulInputContext;
    78     
    79     };
    80 
    81 #endif // OSSCOMBINATION_H