diff -r 000000000000 -r 5e5d6b214f4f uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/inc/s_vimpststoragecontact.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/inc/s_vimpststoragecontact.h Tue Feb 02 10:12:18 2010 +0200 @@ -0,0 +1,133 @@ +/* +* 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 +* +*/ + +#ifndef S_VIMPSTSTORAGECONTACT_H +#define S_VIMPSTSTORAGECONTACT_H + +#include "mvimpststoragecontact.h" + +// INCLUDES +#include +#include + +_LIT(KDummy,"dummy@presence"); + +class vimpststoragecontact_stub : public MVIMPSTStorageContact + { + public : + ~vimpststoragecontact_stub(); + + static MVIMPSTStorageContact* NewL(); + + /** + * @see MVIMPSTStorageContact + */ + void SetUserIdL( const TDesC& aUserId ); + + void SetAvatarContentL( const TDesC8& aAvatarContent , + MVIMPSTStorageVPbkContactStore& aVPPkStoreHandler) ; + //void SetAvatarContentL( const TDesC8& aAvatarContent ); + + /** + * Set User ID + * @param aUserId, user id to be set. + */ + void SetNameL( const TDesC& aName ) ; + + /** + * @see MVIMPSTStorageContact + */ + MVPbkContactLink* ContactLink() const; + + + /** + * @see MVIMPSTStorageContact + */ + const TDesC8& AvatarContent() const; + + + /** + * @see MVIMPSTStorageContact + */ + const TDesC& UserId() const; + + /** + * @see MVIMPSTStorageContact + */ + const TDesC& Name() const; + + + /** + * @see MVIMPSTStorageContact + */ + TVIMPSTEnums::TOnlineStatus OnlineStatus() const; + + + /** + * @see MVIMPSTStorageContact + */ + void SetOnlineStatus( + TVIMPSTEnums::TOnlineStatus aOnlineStatus ); + + /** + * @see MVIMPSTStorageContact + */ + const TDesC& StatusText() const; + + /** + * @see MVIMPSTStorageContact + */ + void SetStatusTextL( const TDesC& aStatusText ); + + + void SetAvatarIndex(TInt aIndex ) ; + + + TInt AvatarIndex() const; + + private: + + /** + * C++ default constructor. + * @param aObserver contact data container observer + * @param aContactManager reference to virtual pbk manager + * @param aStoreContact pointer to the stored contact + * @param aContactManagementObserver - Notified of ContactOperation Add/Deleted + */ + //CVIMPSTStorageContact(); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(const TDesC& aUserId, + const TDesC& aDisplayName, + const MVPbkContactLink& aContactLink + ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(const TDesC& aUserId, + const TDesC& aDisplayName ); + private: + RPointerArray iServiceDetailArray ; + TInt iAvatarIndex; + }; + +#endif // S_VIMPSTSTORECONTACT_H + +// End of File