meetingrequest/mrgui/mrfieldbuilderpluginextension/inc/cesmrncsaifeditor.inl
changeset 0 8466d47a6819
child 16 4ce476e64c59
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     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 implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // ---------------------------------------------------------------------------
       
    20 // CESMRNcsAifEditor::SetPopupList
       
    21 // ---------------------------------------------------------------------------
       
    22 //
       
    23 inline void CESMRNcsAifEditor::SetPopupList( MESMRNcsAddressPopupList* aPopupList )
       
    24     {
       
    25     iAddressPopupList = aPopupList;
       
    26     }
       
    27 
       
    28 // ---------------------------------------------------------------------------
       
    29 // CESMRNcsAifEntry::DisplayLength
       
    30 // ---------------------------------------------------------------------------
       
    31 //
       
    32 inline TInt CESMRNcsAifEntry::DisplayLength() const
       
    33     {
       
    34     return iDisplayString->Length();
       
    35     }
       
    36 
       
    37 // ---------------------------------------------------------------------------
       
    38 // CESMRNcsAifEntry::DisplayString
       
    39 // ---------------------------------------------------------------------------
       
    40 //
       
    41 inline const TDesC& CESMRNcsAifEntry::DisplayString() const
       
    42     {
       
    43     return *iDisplayString;
       
    44     }
       
    45 
       
    46 // ---------------------------------------------------------------------------
       
    47 // CESMRNcsAifEntry::SetPos
       
    48 // ---------------------------------------------------------------------------
       
    49 //
       
    50 inline TInt CESMRNcsAifEntry::SetPos( TInt aPos )
       
    51     {
       
    52     iCursorPos = aPos;
       
    53     iAnchorPos = aPos + DisplayLength();
       
    54     return iAnchorPos;
       
    55     }
       
    56 
       
    57 // ---------------------------------------------------------------------------
       
    58 // CESMRNcsAifEntry::Includes
       
    59 // ---------------------------------------------------------------------------
       
    60 //
       
    61 inline TBool CESMRNcsAifEntry::Includes( TInt aPos ) const
       
    62     {
       
    63     return ( aPos >= LowerPos() && aPos < HigherPos() );
       
    64     }
       
    65 
       
    66 // ---------------------------------------------------------------------------
       
    67 // CESMRNcsAifEntry::Start
       
    68 // ---------------------------------------------------------------------------
       
    69 //
       
    70 inline TInt CESMRNcsAifEntry::Start() const
       
    71     {
       
    72     return LowerPos();
       
    73     }
       
    74 	
       
    75 // ---------------------------------------------------------------------------
       
    76 // CESMRNcsAifEntry::End
       
    77 // ---------------------------------------------------------------------------
       
    78 //
       
    79 inline TInt CESMRNcsAifEntry::End() const
       
    80     {
       
    81     return HigherPos();
       
    82     }
       
    83 	
       
    84 // ---------------------------------------------------------------------------
       
    85 // CESMRNcsAifEntry::Address
       
    86 // ---------------------------------------------------------------------------
       
    87 //
       
    88 inline const CESMRNcsEmailAddressObject& CESMRNcsAifEntry::Address() const
       
    89     {
       
    90     return *iAddress;
       
    91     }
       
    92 	
       
    93 // ---------------------------------------------------------------------------
       
    94 // CESMRNcsAifEntry::IsSameDN
       
    95 // ---------------------------------------------------------------------------
       
    96 //
       
    97 inline TBool CESMRNcsAifEntry::IsSameDN( const CESMRNcsAifEntry& entry ) const
       
    98     {
       
    99     return iDisplayString->Compare(entry.DisplayString()) == 0;
       
   100     }
       
   101 
       
   102 // ---------------------------------------------------------------------------
       
   103 // CESMRNcsAifEntry::IsDup
       
   104 // ---------------------------------------------------------------------------
       
   105 //
       
   106 inline TBool CESMRNcsAifEntry::IsDup() const 
       
   107     {
       
   108     return iIsDup;
       
   109     }
       
   110 
       
   111 // ---------------------------------------------------------------------------
       
   112 // CESMRNcsAifEntry::SetDup
       
   113 // ---------------------------------------------------------------------------
       
   114 //
       
   115 inline void CESMRNcsAifEntry::SetDup( TBool aDup ) 
       
   116     {
       
   117     iIsDup = aDup;
       
   118     SetDisplayStringL();
       
   119     }