uiservicetab/vimpststorage/tsrc/vimpststorage_ut/stubs/s_CPbk2SortOrderManager.cpp
branchRCL_3
changeset 23 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
22:3104fc151679 23:9a48e301e94b
       
     1 /*
       
     2 * Copyright (c) 2005-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:  
       
    15 :                
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include <CPbk2SortOrderManager.h>
       
    23 
       
    24 
       
    25 /**
       
    26  * Creates a new instance of this class.
       
    27  *
       
    28  * @param aMasterFieldTypeList      Master field type list.
       
    29  *                                  Can be retrieved from Virtual
       
    30  *                                  Phonebook contact manager.
       
    31  * @param aFs                       A file system session
       
    32  *                                  reference for resource file
       
    33  *                                  handling. If NULL then
       
    34  *                                  an own session is created.
       
    35  * @return  A new instance of this class.
       
    36  */
       
    37 EXPORT_C CPbk2SortOrderManager* CPbk2SortOrderManager::NewL(
       
    38         const MVPbkFieldTypeList& /*aMasterFieldTypeList*/,
       
    39         RFs* /*aFs = NULL*/ )
       
    40 	{
       
    41 	return new (ELeave) CPbk2SortOrderManager;
       
    42 	}
       
    43 
       
    44 /**
       
    45  * Destructor.
       
    46  */
       
    47 CPbk2SortOrderManager::~CPbk2SortOrderManager(){ }
       
    48 
       
    49 /**
       
    50  * Sets the contact view that this manager manages.
       
    51  * Takes in use the sort order from the given view.
       
    52  *
       
    53  * @param aContactView  The contact view to manage.
       
    54  */
       
    55 EXPORT_C void CPbk2SortOrderManager::SetContactViewL(
       
    56         MVPbkContactViewBase& /*aContactView*/ ){ }
       
    57 
       
    58 /**
       
    59  * Adds an observer.
       
    60  *
       
    61  * @param aObserver     The observer to add.
       
    62  */
       
    63 EXPORT_C void CPbk2SortOrderManager::AddObserverL(
       
    64         MPbk2SortOrderObserver& /*aObserver*/ ){ }
       
    65 
       
    66 /**
       
    67  * Removes an observer.
       
    68  *
       
    69  * @param aObserver     The observer to remove.
       
    70  */
       
    71 EXPORT_C void CPbk2SortOrderManager::RemoveObserver(
       
    72         MPbk2SortOrderObserver& /*aObserver*/ ){ }
       
    73 
       
    74 /**
       
    75  * Sets the name displaying order for the managed contact view.
       
    76  *
       
    77  * @param aNameDisplayOrder     New name display order for
       
    78  *                              the managed contact view.
       
    79  * @param aSeparator            Custom separator to be used between
       
    80  *                              lastname and firstname if it exists.
       
    81  *                              If KNullDesC is given, space is used
       
    82  *                              as separator.
       
    83  */
       
    84 EXPORT_C void CPbk2SortOrderManager::SetNameDisplayOrderL(
       
    85         TPbk2NameDisplayOrder /*aNameDisplayOrder*/,
       
    86         const TDesC& /*aSeparator = KNullDesC*/ ) 
       
    87 {
       
    88 	
       
    89 }
       
    90 
       
    91 /**
       
    92  * Returns the current name display order.
       
    93  *
       
    94  * @return  Current name display order.
       
    95  */
       
    96 EXPORT_C CPbk2SortOrderManager::TPbk2NameDisplayOrder CPbk2SortOrderManager::NameDisplayOrder() const
       
    97 {
       
    98 
       
    99 return EPbk2NameDisplayOrderLastNameFirstName; 
       
   100 }
       
   101 
       
   102 /**
       
   103  * Returns the current sort order.
       
   104  *
       
   105  * @return  Current sort order.
       
   106  */
       
   107 EXPORT_C const MVPbkFieldTypeList& CPbk2SortOrderManager::SortOrder() const
       
   108 { 
       
   109 MVPbkFieldTypeList* ret = NULL;
       
   110 return *ret;
       
   111 }
       
   112 
       
   113 /**
       
   114  * Returns the language specific default separator.
       
   115  * This can not be changed run time.
       
   116  *
       
   117  * @return the language specific default separator.
       
   118  */
       
   119 EXPORT_C const TDesC& CPbk2SortOrderManager::DefaultSeparator(){ return KNullDesC(); }
       
   120 
       
   121 /**
       
   122  * Returns the current separator. This the separator that
       
   123  * can be changed run time and saved to Central Repository.
       
   124  *
       
   125  * @return A current separator.
       
   126  */
       
   127 EXPORT_C const TDesC& CPbk2SortOrderManager::CurrentSeparator() const{ return KNullDesC(); }
       
   128 
       
   129 
       
   130 void CPbk2SortOrderManager::ConstructL(
       
   131         const MVPbkFieldTypeList& /*aMasterFieldTypeList*/,
       
   132         RFs* /*aFs*/ ){ }
       
   133 
       
   134     
       
   135 // End of File