instantmessagesalert/tsrc/testinstantmsgalert/src/stubs/s_vimpststoragecontactlist.cpp
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     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 // INCLUDE FILES
       
    21 #include "s_vimpststoragecontactlist.h"
       
    22 
       
    23     
       
    24 // -----------------------------------------------------------------------------
       
    25 // MyVIMPSTStorageContactListStub::ListId
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 const TDesC& MyVIMPSTStorageContactListStub::ListId() const
       
    29     {
       
    30     return KNullDesC;     
       
    31     }
       
    32     
       
    33         
       
    34 // -----------------------------------------------------------------------------
       
    35 // MyVIMPSTStorageContactListStub::DisplayName
       
    36 // -----------------------------------------------------------------------------
       
    37 //
       
    38 TPtrC MyVIMPSTStorageContactListStub::DisplayName() const
       
    39     {
       
    40     const TDesC& des ( KNullDesC ) ;
       
    41     return des;  
       
    42     }
       
    43     
       
    44 // -----------------------------------------------------------------------------
       
    45 // MyVIMPSTStorageContactListStub::SetDisplayName
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 void MyVIMPSTStorageContactListStub::SetDisplayNameL( const TDesC& /*aDisplayName*/ )
       
    49     {
       
    50    
       
    51     }
       
    52  
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // MyVIMPSTStorageContactListStub::Sort
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 void MyVIMPSTStorageContactListStub::Sort()
       
    59     {
       
    60    
       
    61     }
       
    62 
       
    63 // -----------------------------------------------------------------------------
       
    64 // MyVIMPSTStorageContactListStub::ResortContact
       
    65 // -----------------------------------------------------------------------------
       
    66 //
       
    67 void MyVIMPSTStorageContactListStub::ResortContact( MVIMPSTStorageContact* /*aContact*/ )
       
    68     {
       
    69     }
       
    70 
       
    71 // -----------------------------------------------------------------------------
       
    72 // MyVIMPSTStorageContactListStub::ContactFindById
       
    73 // -----------------------------------------------------------------------------
       
    74 //
       
    75 void MyVIMPSTStorageContactListStub::ResortUnKnownContact( MVIMPSTStorageContact* /*aContact*/ )
       
    76     {
       
    77     }
       
    78     
       
    79    
       
    80 // -----------------------------------------------------------------------------
       
    81 // MyVIMPSTStorageContactListStub::FindIndexOfContact
       
    82 // From MVIMPSTContactList
       
    83 // -----------------------------------------------------------------------------
       
    84 //
       
    85 TInt MyVIMPSTStorageContactListStub::FindIndexOfContact( const MVIMPSTStorageContact* /*aContact*/,
       
    86                             TVIMPSTEnums::TFilterType /*aFilter*/  ) const
       
    87     {    
       
    88     return KErrNotFound;
       
    89     }
       
    90        
       
    91 // -----------------------------------------------------------------------------
       
    92 // MyVIMPSTStorageContactListStub::Count
       
    93 // From MVIMPSTStorageContactList
       
    94 // -----------------------------------------------------------------------------
       
    95 //
       
    96 TInt MyVIMPSTStorageContactListStub::Count() const
       
    97     {
       
    98     return 0;
       
    99     }
       
   100 
       
   101 
       
   102 // -----------------------------------------------------------------------------
       
   103 // MyVIMPSTStorageContactListStub::operator[]
       
   104 // From MVIMPSTStorageContactList
       
   105 // -----------------------------------------------------------------------------
       
   106 //
       
   107 MVIMPSTStorageContact& MyVIMPSTStorageContactListStub::operator[]( TInt /*aIndex */) const
       
   108     {
       
   109 	MVIMPSTStorageContact* contact = NULL;
       
   110 	return *contact;
       
   111     }
       
   112 
       
   113 
       
   114 // -----------------------------------------------------------------------------
       
   115 // MyVIMPSTStorageContactListStub::FilteredContact
       
   116 // From MVIMPSTContactList
       
   117 // -----------------------------------------------------------------------------
       
   118 //
       
   119 MVIMPSTStorageContact& MyVIMPSTStorageContactListStub::FilteredContact( 
       
   120                 TInt /*aIndex*/, TVIMPSTEnums::TFilterType /*aFilter*/ ) const
       
   121 	{
       
   122     MVIMPSTStorageContact* contact = NULL;
       
   123 	return *contact;
       
   124 	}
       
   125 
       
   126 // -----------------------------------------------------------------------------
       
   127 // MyVIMPSTStorageContactListStub::FilteredCount
       
   128 // From MVIMPSTContactList
       
   129 // -----------------------------------------------------------------------------
       
   130 //
       
   131 TInt MyVIMPSTStorageContactListStub::FilteredCount( 
       
   132                             TVIMPSTEnums::TFilterType /*aFilter*/ ) const
       
   133 	{
       
   134     return 0;
       
   135 	}
       
   136 
       
   137 // -----------------------------------------------------------------------------
       
   138 // MyVIMPSTStorageContactListStub::FilterAllowsContact
       
   139 // -----------------------------------------------------------------------------
       
   140 //
       
   141 TBool MyVIMPSTStorageContactListStub::FilterAllowsContact( const MVIMPSTStorageContact* /*aContact*/,
       
   142                              TVIMPSTEnums::TFilterType /*aFilter*/ ) const
       
   143     {
       
   144     TBool showContact( EFalse );
       
   145     
       
   146     return showContact;   
       
   147     }
       
   148 //  End of File