uiservicetab/vimpststorage/tsrc/vimpststorage_ut/stubs/CVPbkContactStoreUriArrayStub.cpp
branchRCL_3
changeset 29 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
28:3104fc151679 29:9a48e301e94b
       
     1 /*
       
     2 * Copyright (c) 2002-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 <CVPbkContactStoreUriArray.h>
       
    22 
       
    23 #include <TVPbkContactStoreUriPtr.h>
       
    24 /**
       
    25  * Creates a new instance of this class.
       
    26  * @return Newly created instance of this class.
       
    27  */
       
    28 EXPORT_C CVPbkContactStoreUriArray* CVPbkContactStoreUriArray::NewL()
       
    29 {
       
    30 return new (ELeave) CVPbkContactStoreUriArray();
       
    31 }
       
    32 
       
    33 /**
       
    34  * Creates a new instance of this class. Leaves
       
    35  * the instance to the cleanup stack.
       
    36  * @return Newly created instance of this class.
       
    37  */
       
    38 EXPORT_C CVPbkContactStoreUriArray* CVPbkContactStoreUriArray::NewLC()
       
    39 	{ 
       
    40 	CVPbkContactStoreUriArray *temp = new (ELeave) CVPbkContactStoreUriArray();
       
    41 	CleanupStack::PushL(temp);
       
    42 	return temp; 
       
    43 	}
       
    44 
       
    45 /**
       
    46  * Creates a new instance of this class internalizing the
       
    47  * contents of the descriptor.
       
    48  * @param aPackedUris	Packed URIs created by using the 
       
    49  * 						PackLC functionality of this class.
       
    50  * @return Newly created instance of this class.
       
    51  */
       
    52 EXPORT_C CVPbkContactStoreUriArray* CVPbkContactStoreUriArray::NewLC(const TDesC8& /*aPackedUris*/){ return NULL; }
       
    53         
       
    54 /**
       
    55  * Destructor.
       
    56  */
       
    57 CVPbkContactStoreUriArray::~CVPbkContactStoreUriArray(){}
       
    58 
       
    59 
       
    60 /**
       
    61  * Appends StoreUriPtr to this array.
       
    62  *
       
    63  * @param aStoreUri	Store URI to add array.
       
    64  */
       
    65 EXPORT_C void CVPbkContactStoreUriArray::AppendL(const TVPbkContactStoreUriPtr& /*aStoreUri*/){}
       
    66 
       
    67 /**
       
    68  * Appends array of StoreUriPtr to this array.
       
    69  *
       
    70  * @param aUriArray	Array of Store URIs to add array.
       
    71  */
       
    72 EXPORT_C void CVPbkContactStoreUriArray::AppendAllL(const CVPbkContactStoreUriArray& /*aUriArray*/){}
       
    73 
       
    74 /**
       
    75  * Removes StoreUriPtr from this array.
       
    76  *
       
    77  * @param aStoreUri Store Uri to add array.
       
    78  */
       
    79 EXPORT_C void CVPbkContactStoreUriArray::Remove(const TVPbkContactStoreUriPtr& /*aStoreUri*/){}
       
    80 
       
    81 /**
       
    82  * Returns the count of Store URIs in this array.
       
    83  *
       
    84  * @return Count of Store URIs in array.
       
    85  */
       
    86 EXPORT_C TInt CVPbkContactStoreUriArray::Count() const{ return 0; }
       
    87 
       
    88 /**
       
    89  * Gets the URI pointer descriptor from this array at 
       
    90  * the given index.
       
    91  *
       
    92  * @param aIndex Index which URI Ptr is needed
       
    93  * @return URI pointer descriptor.
       
    94  */
       
    95 EXPORT_C TVPbkContactStoreUriPtr CVPbkContactStoreUriArray::operator[](TInt /*aIndex*/) const
       
    96 {
       
    97 TVPbkContactStoreUriPtr ret;
       
    98 return ret;
       
    99 }
       
   100 
       
   101 /**
       
   102  * Packs this URI array to a heap descriptor.
       
   103  *
       
   104  * @return Packed URI array in a heap descriptor.
       
   105  */        
       
   106 EXPORT_C HBufC8* CVPbkContactStoreUriArray::PackLC() const{ return NULL; }
       
   107 
       
   108 /**
       
   109  * Checks whether the given URI is already in this array.
       
   110  *
       
   111  * @param aStoreUri Store URI to check.
       
   112  * @return ETrue if Store URI is in this array, EFalse if not.
       
   113  */        
       
   114 EXPORT_C TBool CVPbkContactStoreUriArray::IsIncluded(const TVPbkContactStoreUriPtr& /*aStoreUri*/) const{ return EFalse; }
       
   115 
       
   116 CVPbkContactStoreUriArray::CVPbkContactStoreUriArray(){}
       
   117 void CVPbkContactStoreUriArray::ConstructL(){}
       
   118 void CVPbkContactStoreUriArray::ConstructL(const TDesC8& /*aPackedUris*/){}
       
   119 TInt CVPbkContactStoreUriArray::CalculateExternalizedSize() const{ return 0; }
       
   120 
       
   121 // End of File