uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/src/stub/s_vimpststorecontact.cpp
branchRCL_3
changeset 23 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
22:3104fc151679 23:9a48e301e94b
       
     1 /*
       
     2 * Copyright (c) 2006, 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:  s_enginecontmgtextfeatures.cpp
       
    15 *
       
    16 */
       
    17 
       
    18 //  INCLUDES
       
    19 #include "s_vimpststorecontact.h"
       
    20 
       
    21 MVIMPSTStorageContact* vimpststorecontact_stub::NewL()
       
    22 	{
       
    23 	MVIMPSTStorageContact* contact = new(ELeave)vimpststorecontact_stub;
       
    24 	return contact;
       
    25 	}
       
    26 
       
    27  void vimpststorecontact_stub::SetNameL( const TDesC& aName ) 
       
    28     {
       
    29     
       
    30     }
       
    31 
       
    32  void vimpststorecontact_stub::SetAvatarContentL( const TDesC8& aAvatarContent ,
       
    33                MVIMPSTStorageVPbkContactStore& aVPPkStoreHandler)
       
    34     {
       
    35     
       
    36     }
       
    37 
       
    38 const TDesC& vimpststorecontact_stub::Name()const 
       
    39     {
       
    40     return KNullDesC();
       
    41     }
       
    42          
       
    43 TInt vimpststorecontact_stub::AvatarIndex() const 
       
    44 	{
       
    45 		return 0;
       
    46 	}
       
    47 
       
    48 void vimpststorecontact_stub::SetAvatarIndex( TInt avatarIndex)
       
    49 	{
       
    50 		
       
    51 	}
       
    52 
       
    53 const TDesC8& vimpststorecontact_stub::AvatarContent() const 
       
    54 	{
       
    55 	return KNullDesC8();
       
    56 	}
       
    57 
       
    58 const TDesC& vimpststorecontact_stub::UserId() const 
       
    59 	{
       
    60 		return KDummy();
       
    61 	}
       
    62 
       
    63 TVIMPSTEnums::TOnlineStatus vimpststorecontact_stub::OnlineStatus() const 
       
    64 	{
       
    65 		TVIMPSTEnums::TOnlineStatus status;
       
    66 		return status;
       
    67 	}
       
    68 
       
    69 void vimpststorecontact_stub::SetOnlineStatus( TVIMPSTEnums::TOnlineStatus aOnlineStatus ) 
       
    70 	{
       
    71 		
       
    72 	}
       
    73 
       
    74 void vimpststorecontact_stub::SignalChanges() 
       
    75 	{
       
    76 		
       
    77 	}
       
    78 
       
    79 void vimpststorecontact_stub::SignalAvatarChange() 
       
    80 	{
       
    81 		
       
    82 	}
       
    83 
       
    84 void vimpststorecontact_stub::SetUserIdL( const TDesC& aUserId ) 
       
    85 	{
       
    86 		
       
    87 	}
       
    88 
       
    89 const TDesC& vimpststorecontact_stub::StatusText() const 
       
    90 	{
       
    91 	return KDummy();
       
    92 	}
       
    93 
       
    94 void vimpststorecontact_stub::SetStatusTextL( const TDesC& aStatusText )
       
    95 	{
       
    96 		
       
    97 	}
       
    98 
       
    99 MVPbkContactLink* vimpststorecontact_stub::ContactLink() const
       
   100 	{
       
   101 		return NULL;
       
   102 	}
       
   103 
       
   104 MVPbkStoreContact* vimpststorecontact_stub::VPbkStoreContact() const
       
   105 	{
       
   106 		return NULL;
       
   107 	}
       
   108 
       
   109 RPointerArray<HBufC>& vimpststorecontact_stub::ServiceDetails() 
       
   110 	{
       
   111 		_LIT(KText1, "xyz");
       
   112 		TBufC16<5> buf11(KText1);
       
   113 		HBufC* buf1;
       
   114 		TRAP_IGNORE(buf1 = buf11.AllocL());
       
   115 		iServiceDetailArray.Append(buf1);
       
   116 		TInt count  = iServiceDetailArray.Count();
       
   117 		return iServiceDetailArray;
       
   118 	}
       
   119 
       
   120 const TDesC& vimpststorecontact_stub::ImppField() 
       
   121     {
       
   122     return KDummy();
       
   123     }
       
   124 void vimpststorecontact_stub::Commit(MVPbkContactObserver* aObserver /*= NULL*/,
       
   125 			MVIMPSTContactOperationCompleteObserver* aContactOperationObserver /*= NULL*/) 
       
   126 	{
       
   127 		
       
   128 	}
       
   129 
       
   130 void vimpststorecontact_stub::ResetAvatarContent() 
       
   131 	{
       
   132 		
       
   133 	}
       
   134 void vimpststorecontact_stub::SetContactOperationObserver( MVIMPSTContactOperationCompleteObserver* 
       
   135 	    								aContactOperationObserver )
       
   136 	{
       
   137 		
       
   138 	}
       
   139 	
       
   140 vimpststorecontact_stub::~vimpststorecontact_stub()
       
   141 	{
       
   142 	//buf1.	
       
   143 	}
       
   144 
       
   145 HBufC* vimpststorecontact_stub::GetContactFieldDataLC( const TDesC& aDefaultDomain /*= KNullDesC */,TInt aFieldResId /*= R_VPBK_FIELD_TYPE_IMPP*/)
       
   146     {
       
   147     HBufC* retVal= NULL;
       
   148     return retVal;
       
   149     }
       
   150 // End of File