uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_vimpststoragecontactlist.h
branchRCL_3
changeset 23 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
22:3104fc151679 23:9a48e301e94b
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Contact list container implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CVIMPSTSTORAGECONTACTLIST_H
       
    20 #define CVIMPSTSTORAGECONTACTLIST_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "tvimpstenums.h"
       
    24 #include "mvimpststoragecontactlist.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CVIMPSTStorageContactSorter;
       
    28 class MVIMPSTStorageContactsObserver;
       
    29 class MVIMPSTStorageContactList;
       
    30 class MVIMPSTStorageContact;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35  *  Contact list data implementation
       
    36  */
       
    37 class MyVIMPSTStorageContactListStub : public MVIMPSTStorageContactList
       
    38     {  
       
    39     
       
    40     public:
       
    41 	    MyVIMPSTStorageContactListStub()
       
    42 	    {
       
    43 	    	
       
    44 	    }
       
    45      /**
       
    46      * Destructor.
       
    47      */
       
    48       ~MyVIMPSTStorageContactListStub()
       
    49 	    {
       
    50 	    	
       
    51 	    }
       
    52 
       
    53   
       
    54 
       
    55         /**
       
    56          * @see MVIMPSTStorageContactList
       
    57          */
       
    58         const TDesC& ListId() const;
       
    59 
       
    60         /**
       
    61          * @see MVIMPSTStorageContactList
       
    62          */
       
    63         TPtrC DisplayName() const;
       
    64 
       
    65         /**
       
    66          * @see MVIMPSTStorageContactList
       
    67          */
       
    68         void SetDisplayNameL( const TDesC& aDisplayName );
       
    69         
       
    70 
       
    71         /**
       
    72          * @see MVIMPSTStorageContactList
       
    73          */
       
    74         TInt Count() const;
       
    75 
       
    76         /**
       
    77          * @see MVIMPSTContactList
       
    78          */
       
    79         MVIMPSTStorageContact& operator[]( TInt aIndex ) const;
       
    80 
       
    81         /**
       
    82          * @see MVIMPSTStorageContactList
       
    83          */
       
    84         MVIMPSTStorageContact& FilteredContact(
       
    85               TInt aIndex, TVIMPSTEnums::TFilterType aFilter ) const;
       
    86 
       
    87         /**
       
    88          * @see MVIMPSTStorageContactList
       
    89          */
       
    90         TInt FilteredCount(
       
    91                            TVIMPSTEnums::TFilterType aFilter ) const;
       
    92 
       
    93         
       
    94         /**
       
    95          * @see MVIMPSTStorageContactList
       
    96          */
       
    97         void Sort();
       
    98 
       
    99         /**
       
   100          * @see MVIMPSTStorageContactList
       
   101          */
       
   102         void ResortContact( MVIMPSTStorageContact* aContact );
       
   103   
       
   104         /**
       
   105          * @see MVIMPSTStorageContactList
       
   106          */
       
   107         void ResortUnKnownContact( MVIMPSTStorageContact* aContact );
       
   108         
       
   109         /**
       
   110          * @see MVIMPSTStorageContactList
       
   111          */
       
   112         TInt FindIndexOfContact(
       
   113                         const MVIMPSTStorageContact* aContact,
       
   114                         TVIMPSTEnums::TFilterType aFilter =
       
   115                                 TVIMPSTEnums::EFilterAll ) const;
       
   116 
       
   117         /**
       
   118          * @see MVIMPSTStorageContactList
       
   119          */
       
   120         TBool FilterAllowsContact( const MVIMPSTStorageContact* aContact,
       
   121                         TVIMPSTEnums::TFilterType aFilter ) const;
       
   122    
       
   123          };
       
   124 
       
   125 #endif      // CVIMPSTSTORAGECONTACTLIST_H
       
   126 
       
   127 // End of File