textinput/peninputfingerhwr/inc/peninputfingerhwrtriggerstr.h
changeset 0 eb1f2e154e89
equal deleted inserted replaced
-1:000000000000 0:eb1f2e154e89
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Trigger string
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_PENINPUTHWRTRIGGERSTR_H
       
    19 #define C_PENINPUTHWRTRIGGERSTR_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <e32base.h>
       
    23 
       
    24 const TInt KMaxTriggerStrLen = 128;
       
    25 
       
    26 /**
       
    27  *  Trigger string
       
    28  *
       
    29  *  @lib peninputhwrfscn.lib
       
    30  *  @since S60 v3.2
       
    31  */
       
    32 class CAknFepHwrTriggerStr : public CBase
       
    33     {
       
    34 public:
       
    35 
       
    36     /**
       
    37      * destructor
       
    38      *
       
    39      * @since S60 v3.2
       
    40      * @return None
       
    41      */
       
    42     virtual ~CAknFepHwrTriggerStr();
       
    43 
       
    44     /**
       
    45      * Append the char code to trigger string 
       
    46      *
       
    47      * @since S60 v3.2
       
    48      * @param aChar The char code.
       
    49      * @return None
       
    50      */
       
    51     void Append(const TDesC& aChar);
       
    52     
       
    53     /**
       
    54      * Set the char code to trigger string 
       
    55      *
       
    56      * @since S60 v3.2
       
    57      * @param aChar The char code.
       
    58      * @return None
       
    59      */
       
    60     void Set( const TDesC& aChar );
       
    61     
       
    62     /**
       
    63      * Get trigger string
       
    64      *
       
    65      * @since S60 v3.2
       
    66      * @param aString Carry trigger string on return
       
    67      * @return None
       
    68      */            
       
    69     TDesC& GetString();
       
    70     
       
    71     /**
       
    72      * Delete the last char
       
    73      *
       
    74      * @since S60 v3.2
       
    75      * @return None
       
    76      */            
       
    77     void DeleteLast();    
       
    78     
       
    79     /**
       
    80      * Delete all chars
       
    81      *
       
    82      * @since S60 v3.2
       
    83      * @return None
       
    84      */    
       
    85     void DeleteAll();
       
    86     
       
    87     /**
       
    88      * Is empty of the trigger string
       
    89      *
       
    90      * @since S60 v3.2
       
    91      * @return None
       
    92      */
       
    93     TBool IsEmpty();
       
    94     
       
    95     
       
    96 private://data
       
    97     
       
    98     /**
       
    99      * trigger string
       
   100      */
       
   101     TBuf<KMaxTriggerStrLen> iString;
       
   102 
       
   103     };
       
   104 
       
   105 #endif // C_PENINPUTHWRTRIGGERSTR_H
       
   106 
       
   107 // End Of File