epoc32/include/mw/osscombination.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/mw/osscombination.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,81 @@
     1.4 +/*
     1.5 +* Copyright (c) 2005,2006 Choe Hwanjin
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of the License "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +#ifndef OSSCOMBINATION_H
    1.23 +#define OSSCOMBINATION_H
    1.24 +
    1.25 +// INCLUDES
    1.26 +#include <e32std.h>
    1.27 +#include <e32base.h>
    1.28 +
    1.29 +typedef struct _HangulCombination HangulCombination;
    1.30 +
    1.31 +class TOssCombinationItem
    1.32 +    {
    1.33 +    public:
    1.34 +        
    1.35 +        TBool operator == (const TOssCombinationItem& aCombination) const;
    1.36 +        
    1.37 +    public:
    1.38 +        
    1.39 +        TUint iFirst;
    1.40 +        
    1.41 +        TUint iSecond;
    1.42 +        
    1.43 +        TUint iResult;
    1.44 +    };
    1.45 +
    1.46 +class COssCombination : public CBase
    1.47 +    {
    1.48 +public:
    1.49 +        
    1.50 +    IMPORT_C static COssCombination* NewLC();
    1.51 +
    1.52 +    IMPORT_C static COssCombination* NewL();
    1.53 +
    1.54 +    IMPORT_C virtual ~COssCombination();
    1.55 +    
    1.56 +public:
    1.57 +    
    1.58 +    IMPORT_C TInt AddCombinationL(const TOssCombinationItem& aCombination);
    1.59 +    
    1.60 +    IMPORT_C TInt RemoveCombination(const TOssCombinationItem& aCombination);
    1.61 +
    1.62 +    IMPORT_C TInt FindCombination(const TOssCombinationItem& aCombination); 
    1.63 +    
    1.64 +private:
    1.65 +
    1.66 +    COssCombination();
    1.67 +
    1.68 +    void ConstructL();
    1.69 +    
    1.70 +private:
    1.71 +    
    1.72 +    TBool PopulateListL();
    1.73 +    
    1.74 +private:
    1.75 +    
    1.76 +    HangulCombination* iHangulCombination;
    1.77 +    
    1.78 +    RArray<TOssCombinationItem> iCombinationList;
    1.79 +
    1.80 +    friend class COssHangulInputContext;
    1.81 +    
    1.82 +    };
    1.83 +
    1.84 +#endif // OSSCOMBINATION_H