epoc32/include/mw/ptidefs.inl
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
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) 2007 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "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:               Inline methods for PtiDefs.h files
    15 *
    16 */
    17 
    18 
    19 
    20 
    21 
    22 
    23 
    24 
    25 
    26 
    27 
    28 
    29 
    30 
    31 
    32 // ---------------------------------------------------------------------------
    33 // PtiCoreInfo::WordCompletion
    34 // 
    35 // ---------------------------------------------------------------------------
    36 //
    37 inline TBool TPtiCoreInfo::WordCompletion() const
    38 	{
    39 	return ((iCapsBits & EWordCompletion) != 0);
    40 	}
    41 
    42 // ---------------------------------------------------------------------------
    43 // PtiCoreInfo::Reordering
    44 // 
    45 // ---------------------------------------------------------------------------
    46 //
    47 inline TBool TPtiCoreInfo::Reordering() const
    48 	{
    49 	return ((iCapsBits & EReordering) != 0);
    50 	}
    51 
    52 // ---------------------------------------------------------------------------
    53 // PtiCoreInfo::MaximumWordLength
    54 // 
    55 // ---------------------------------------------------------------------------
    56 //
    57 inline TInt TPtiCoreInfo::MaximumWordLength() const
    58 	{
    59 	return iMaxWordLength;  
    60 	}
    61 
    62 // ---------------------------------------------------------------------------
    63 // PtiCoreInfo::NextWordPrediction
    64 // 
    65 // ---------------------------------------------------------------------------
    66 //
    67 inline TBool TPtiCoreInfo::NextWordPrediction() const
    68 	{
    69 	return ((iCapsBits & ENextWordPrediction) != 0);
    70 	}
    71 
    72 // ---------------------------------------------------------------------------
    73 // PtiCoreInfo::VendorString
    74 // 
    75 // ---------------------------------------------------------------------------
    76 //
    77 inline TPtrC TPtiCoreInfo::VendorString() const
    78 	{
    79 	return iVendorIdStr;
    80 	}
    81 
    82 // ---------------------------------------------------------------------------
    83 // PtiCoreInfo::CapsBits
    84 // 
    85 // ---------------------------------------------------------------------------
    86 //
    87 inline TUint32 TPtiCoreInfo::CapsBits() const
    88 	{
    89 	return iCapsBits;
    90 	}
    91 
    92 // ---------------------------------------------------------------------------
    93 // PtiCoreInfo::SetCapsBits
    94 // 
    95 // ---------------------------------------------------------------------------
    96 //
    97 inline void TPtiCoreInfo::SetCapsBits(TUint32 aBits)
    98 	{
    99 	iCapsBits |= aBits;
   100 	}
   101 
   102 // ---------------------------------------------------------------------------
   103 // PtiCoreInfo::SetVendorString
   104 // 
   105 // ---------------------------------------------------------------------------
   106 //
   107 inline void TPtiCoreInfo::SetVendorString(const TDesC& aStr)
   108 	{
   109 	iVendorIdStr.Set(aStr);
   110 	}
   111 
   112 // ---------------------------------------------------------------------------
   113 // PtiCoreInfo::SetMaxWordLength
   114 // 
   115 // ---------------------------------------------------------------------------
   116 //
   117 inline void TPtiCoreInfo::SetMaxWordLength(TInt aMaxLen) 
   118 	{
   119 	iMaxWordLength = aMaxLen;
   120 	}
   121 	
   122 // ---------------------------------------------------------------------------
   123 // PtiCoreInfo::Uid
   124 // 
   125 // ---------------------------------------------------------------------------
   126 //
   127 inline TInt32 TPtiCoreInfo::Uid() const
   128 	{
   129 	return iUid;
   130 	}
   131 
   132 // ---------------------------------------------------------------------------
   133 // PtiCoreInfo::SetUid
   134 // 
   135 // ---------------------------------------------------------------------------
   136 //
   137 inline void TPtiCoreInfo::SetUid(TInt32 aUid)
   138 	{
   139 	iUid = aUid;
   140 	}
   141 
   142 // ---------------------------------------------------------------------------
   143 // PtiCoreInfo::MaximumNumberOfCandidates
   144 // 
   145 // ---------------------------------------------------------------------------
   146 //	
   147 inline TInt TPtiCoreInfo::MaximumNumberOfCandidates() const
   148 	{
   149 	return iMaxNumberOfCandidates;
   150 	}
   151 
   152 // ---------------------------------------------------------------------------
   153 // PtiCoreInfo::SetMaxNumberOfCandidates
   154 // 
   155 // ---------------------------------------------------------------------------
   156 //
   157 inline void TPtiCoreInfo::SetMaxNumberOfCandidates(TInt aMax)
   158 	{
   159 	iMaxNumberOfCandidates = aMax;
   160 	}
   161 
   162 // ---------------------------------------------------------------------------
   163 // PtiCoreInfo::CharConversions
   164 // 
   165 // ---------------------------------------------------------------------------
   166 //
   167 inline TUint32 TPtiCoreInfo::CharConversions() const
   168 	{
   169 	return iCharConversions;
   170 	}
   171 
   172 // ---------------------------------------------------------------------------
   173 // PtiCoreInfo::SetCharConversions
   174 // 
   175 // ---------------------------------------------------------------------------
   176 //
   177 inline void TPtiCoreInfo::SetCharConversions(TUint32 aConvs)
   178 	{
   179 	iCharConversions = aConvs;
   180 	}
   181 
   182 // ---------------------------------------------------------------------------
   183 // PtiCoreInfo::SetSpellings
   184 // 
   185 // ---------------------------------------------------------------------------
   186 //
   187 inline void TPtiCoreInfo::SetSpellings(TUint32 aSpellings)
   188 	{
   189 	iSpellings = aSpellings;
   190 	}
   191 
   192 // ---------------------------------------------------------------------------
   193 // PtiCoreInfo::Spellings
   194 // 
   195 // ---------------------------------------------------------------------------
   196 //
   197 inline TUint32 TPtiCoreInfo::Spellings() const
   198 	{
   199 	return iSpellings;
   200 	}
   201 
   202 // End of file