uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/src/stub/s_vimpststorageserviceview.cpp
branchRCL_3
changeset 29 9a48e301e94b
parent 0 5e5d6b214f4f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/src/stub/s_vimpststorageserviceview.cpp	Wed Sep 01 12:33:36 2010 +0100
@@ -0,0 +1,201 @@
+/*
+* Copyright (c) 2006, 2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  s_enginecontmgtextfeatures.cpp
+*
+*/
+
+#include "s_vimpststorageserviceview.h"
+#include "s_vimpststoragecontact.h"
+
+MVIMPSTStorageServiceView* vimpstserviceview_stub::NewL()
+    {
+    MVIMPSTStorageServiceView* ob = new(ELeave)vimpstserviceview_stub;
+        return ob;
+    }
+
+void vimpstserviceview_stub::AddObserverL( MVIMPSTStorageContactsObserver* aObserver ) 
+    {
+    User::LeaveIfError( iContactObservers.Append( aObserver ) );    
+    }
+
+void vimpstserviceview_stub::RemoveObserver( MVIMPSTStorageContactsObserver* aObserver )
+    {
+    iContactObservers.Remove( 0 );
+    iContactObservers.Compress();
+    }
+
+
+MVIMPSTStorageContact* vimpstserviceview_stub::FindContactByUserId( const TDesC& aUserId )
+    {
+    if(aUserId.Compare(_L("dummy@presence"))==0)
+        {
+    MVIMPSTStorageContact* contact = vimpststoragecontact_stub::NewL();
+    return contact;
+        }
+    return NULL;
+    }
+
+
+TInt vimpstserviceview_stub::ListCount() const
+{
+return 1;
+}
+
+MVIMPSTStorageContactList& vimpstserviceview_stub::ListAt( TInt aIndex ) const 
+{
+MVIMPSTStorageContactList *abc = NULL;
+    
+return *abc;
+}
+
+
+MVIMPSTStorageContactList* vimpstserviceview_stub::FindContactList( const TDesC& aListId )
+    {
+    return NULL;
+    }
+
+MVIMPSTStorageContactList* vimpstserviceview_stub::CreateContactListL( const TDesC& aContactListId, 
+        const TDesC& aDisplayName ) 
+    {
+    MVIMPSTStorageContactList *abc = NULL;
+        
+    return abc;
+    }
+
+void vimpstserviceview_stub::RemoveContactList( const TDesC& aContactListId )
+    {
+    
+    }
+
+
+TInt vimpstserviceview_stub::ContactCount(TBool aSkipOfflineContacts ) const
+{
+return 0;
+}
+
+
+
+MVIMPSTStorageContact* vimpstserviceview_stub::UpdatePresenceL(const TDesC& aContactId, 
+        TVIMPSTEnums::TOnlineStatus aStatus, 
+        const TDesC& aStatusText,
+        const TDesC8& aAvatarData,
+        TBool aIsClearingAvatar ) 
+    {
+    return NULL;
+    }
+
+MVIMPSTStorageContact* vimpstserviceview_stub::UpdateAvatarL(const TDesC& aContactId,
+        const TDesC8& aAvatarData )
+    {
+    return NULL;
+    }
+
+MVIMPSTStorageContact* vimpstserviceview_stub::CreateNewContactL(const TDesC& aUserId, 
+        const TDesC& aDisplayName,
+        TBool aIsInvitationItem ,
+        TBool aInvitationAutoAccept)
+    {
+    MVIMPSTStorageContact* contact = NULL;
+    return  contact;
+    }
+
+TInt vimpstserviceview_stub::CreateNewContactFromRetrivedIdL(  TInt aIndexToUse  )
+    {
+    return 1;
+    }
+
+TInt vimpstserviceview_stub::DeleteNewContactFromRetrivedIdL(  TInt aIndexToUse  )
+    {
+    return 0;
+    }
+
+TInt vimpstserviceview_stub::RemoveContactL( MVIMPSTStorageContact* aContact  )
+    {
+    return 0;
+    }
+
+
+void vimpstserviceview_stub::CreateNewFetchContactsL( RArray <TPtrC> &aFirstNameList, 
+        RArray <TPtrC> &aServiceField )
+    {
+    
+    }
+
+
+TBool  vimpstserviceview_stub::IsLocalStore() const
+{
+return ETrue;
+}
+
+
+TInt vimpstserviceview_stub::RetriveLinkXSPIdsL(const TDesC8& aContactPackLink )
+    {
+    return 3;
+    }
+const TDesC& vimpstserviceview_stub::GetRetrieveXSPIdL(TInt aIndex )
+    {
+    if(aIndex ==0)
+        {
+        _LIT(KText1,"blocked@presence");
+        return KText1();
+        }
+    if(aIndex ==1)
+        {
+        _LIT(KText2,"dummy@presence");
+        return KText2();
+        }
+    if(aIndex ==2)
+        {
+        _LIT(KText3,"contact@presence");
+        return KText3();
+        }
+
+    }
+
+MVIMPSTStorageContact* vimpstserviceview_stub::FindContactByLink(const MVPbkContactLink& aContactLink )
+    {
+    return NULL;
+    }
+
+
+void vimpstserviceview_stub::Sort( const TDesC& aContactListId)
+    {
+    
+    }
+
+MVIMPSTStorageContact& vimpstserviceview_stub::OwnContactL() 
+    {
+    MVIMPSTStorageContact *abc = vimpststoragecontact_stub::NewL();
+        
+    return *abc;
+    }
+
+void vimpstserviceview_stub::DeleteDatabaseL() 
+    {
+    
+    }
+
+void vimpstserviceview_stub::SetOwnUserIdL(const TDesC& aUserId ) 
+    {
+    
+    }
+
+void vimpstserviceview_stub::SetUnnamedTextL(HBufC* aUnnamedText )
+    {
+    
+    }
+
+
+
+// End of File