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