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 #ifndef S_VIMPSTSTORECONTACT_H |
|
19 #define S_VIMPSTSTORECONTACT_H |
|
20 |
|
21 #include "mvimpststoragecontact.h" |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 #include <e32base.h> |
|
26 |
|
27 _LIT(KDummy,"dummy"); |
|
28 class MVPbkStoreContact; |
|
29 class MVPbkContactObserver; |
|
30 class MVIMPSTContactOperationCompleteObserver; |
|
31 class MVIMPSTStorageVPbkContactStore; |
|
32 |
|
33 class vimpststorecontact_stub : public MVIMPSTStorageContact |
|
34 { |
|
35 public : |
|
36 |
|
37 void SetNameL( const TDesC& aName ); |
|
38 void SetAvatarContentL( const TDesC8& aAvatarContent , |
|
39 MVIMPSTStorageVPbkContactStore& aVPPkStoreHandler); |
|
40 |
|
41 static MVIMPSTStorageContact* NewL(); |
|
42 |
|
43 const TDesC8& AvatarContent() const ; |
|
44 |
|
45 TInt AvatarIndex() const ; |
|
46 |
|
47 void SetAvatarIndex( TInt avatarIndex); |
|
48 |
|
49 const TDesC& UserId() const ; |
|
50 |
|
51 TVIMPSTEnums::TOnlineStatus OnlineStatus() const ; |
|
52 |
|
53 void SetOnlineStatus( TVIMPSTEnums::TOnlineStatus aOnlineStatus ) ; |
|
54 |
|
55 void SignalChanges() ; |
|
56 |
|
57 const TDesC& Name() const; |
|
58 |
|
59 void SignalAvatarChange() ; |
|
60 |
|
61 void SetUserIdL( const TDesC& aUserId ) ; |
|
62 |
|
63 const TDesC& StatusText() const ; |
|
64 |
|
65 void SetStatusTextL( const TDesC& aStatusText ) ; |
|
66 |
|
67 MVPbkContactLink* ContactLink() const; |
|
68 |
|
69 MVPbkStoreContact* VPbkStoreContact() const ; |
|
70 |
|
71 RPointerArray<HBufC>& ServiceDetails() ; |
|
72 /** |
|
73 * Get the impp field for the contact |
|
74 * @return TDesC& reference to the impp field. |
|
75 */ |
|
76 const TDesC& ImppField(); |
|
77 |
|
78 void Commit(MVPbkContactObserver* aObserver = NULL, |
|
79 MVIMPSTContactOperationCompleteObserver* aContactOperationObserver = NULL) ; |
|
80 |
|
81 void ResetAvatarContent() ; |
|
82 |
|
83 void SetContactOperationObserver( MVIMPSTContactOperationCompleteObserver* |
|
84 aContactOperationObserver ); |
|
85 |
|
86 ~vimpststorecontact_stub(); |
|
87 |
|
88 HBufC* GetContactFieldDataLC( const TDesC& aDefaultDomain /*= KNullDesC */, |
|
89 TInt aFieldResId /*= R_VPBK_FIELD_TYPE_IMPP*/); |
|
90 |
|
91 private: |
|
92 RPointerArray<HBufC> iServiceDetailArray ; |
|
93 }; |
|
94 |
|
95 #endif // S_VIMPSTSTORECONTACT_H |
|
96 |
|
97 // End of File |
|