uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/src/stub/s_vimpstprocessarrayItem.cpp
branchRCL_3
changeset 29 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
28:3104fc151679 29:9a48e301e94b
       
     1 /*
       
     2 * Copyright (c) 2006, 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:  s_enginecontmgtextfeatures.cpp
       
    15 *
       
    16 */
       
    17 
       
    18 #include "s_vimpstprocessarrayItem.h"
       
    19 #include "tvimpstenums.h"
       
    20 
       
    21     
       
    22     
       
    23     MVIMPSTProcessArrayItem* vimpstprocessarrayitem_stub::NewL(TDesC & aItemName)
       
    24 	    {
       
    25 	    MVIMPSTProcessArrayItem* item = new(ELeave) vimpstprocessarrayitem_stub(aItemName);
       
    26 	    return item;
       
    27 	    }
       
    28   
       
    29   vimpstprocessarrayitem_stub::vimpstprocessarrayitem_stub(TDesC & aItemName)
       
    30   :iItemName(aItemName)
       
    31   {
       
    32   	
       
    33   }
       
    34   
       
    35   
       
    36   
       
    37      
       
    38      
       
    39      /**
       
    40       * Sets the name of the listbox item 
       
    41       * @param aName: Name of the listbox item to be set
       
    42       * @return void
       
    43       */
       
    44 
       
    45      
       
    46 
       
    47      /**
       
    48       * gets the messages pending status of the contact item 
       
    49       * @return iSMsgPending: true if the contact has pending messages 
       
    50       * else false
       
    51       */
       
    52      
       
    53          
       
    54 
       
    55    TBool vimpstprocessarrayitem_stub::IsMsgPending() 
       
    56       {
       
    57       return EFalse;
       
    58       }
       
    59   
       
    60    void vimpstprocessarrayitem_stub::SetMsgPending(TBool aMsgPending) 
       
    61       {
       
    62       
       
    63       }
       
    64     /**
       
    65     * Returns the default type of the listbox item 
       
    66     * @return TEnumsPC::TItem: type of the listbox item as either EContactitem, EContactListItem etc
       
    67     */
       
    68      TVIMPSTEnums::TItem vimpstprocessarrayitem_stub::Type() 
       
    69 	     {
       
    70 	     return TVIMPSTEnums::EContactItem;
       
    71 	     }
       
    72     
       
    73     /**
       
    74     * Returns the name of the listbox item 
       
    75     * @return TPtrC: name of the listbox item to be displayed
       
    76     */
       
    77      
       
    78     /**
       
    79     * Sets the name of the listbox item 
       
    80     * @param aName: Name of the listbox item to be set
       
    81     * @return void
       
    82     */
       
    83     //virtual void SetItemNameText(const TDesC& aName) = 0;
       
    84         
       
    85     /**
       
    86     * Returns the array index of the listbox item on engine/storage side
       
    87     * @return TInt: index of the listbox item on engine/storage side
       
    88     */
       
    89      TInt vimpstprocessarrayitem_stub::GetItemIndex() 
       
    90      {
       
    91      	return 0;
       
    92      }
       
    93     
       
    94     /**
       
    95     * return the VPBK Contact Link
       
    96     */
       
    97      MVPbkContactLink* vimpstprocessarrayitem_stub::ContactLink() 
       
    98      {
       
    99      	return NULL;
       
   100      }
       
   101     
       
   102     
       
   103     /**
       
   104     * Sets the on engine/storage side index of the listbox item 
       
   105     * @param aIndex: index of the listbox item on engine/storage side
       
   106     * @return void
       
   107     */
       
   108     void vimpstprocessarrayitem_stub::SetItemIndex(TInt aIndex) 
       
   109     {
       
   110     	
       
   111     }
       
   112     
       
   113     /**
       
   114     * Returns the user id of the listbox item 
       
   115     * @return TPtrC: user id of the listbox item.
       
   116     */
       
   117     TPtrC vimpstprocessarrayitem_stub::GetItemUserId() 
       
   118     {
       
   119     TPtrC ptr;
       
   120     return ptr;	
       
   121     }
       
   122     /**
       
   123      * Returns the avatar index of the listbox item 
       
   124      * @return TInt: avatar index of the listbox item.
       
   125      */
       
   126     TInt  vimpstprocessarrayitem_stub::AvatarIndex() 
       
   127     {
       
   128     	return 0;
       
   129     }
       
   130     
       
   131     /**
       
   132      * sets the avatar index of the listbox item 
       
   133      * @param aAvatarIndex: avatar index to be set 
       
   134      */
       
   135     void  vimpstprocessarrayitem_stub::SetAvatarIndex(TInt aAvatarIndex )
       
   136     {
       
   137     	
       
   138     }
       
   139    
       
   140    
       
   141     
       
   142     
       
   143     
       
   144 
       
   145 // End of File