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_VIMPSTSTORAGESERVICEVIEW_H |
|
19 #define S_VIMPSTSTORAGESERVICEVIEW_H |
|
20 |
|
21 #include "mvimpststorageserviceview.h" |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 #include <e32base.h> |
|
26 |
|
27 class MVIMPSTStorageContact; |
|
28 |
|
29 class vimpstserviceview_stub : public MVIMPSTStorageServiceView |
|
30 { |
|
31 public : |
|
32 static MVIMPSTStorageServiceView* NewL(); |
|
33 void AddObserverL( MVIMPSTStorageContactsObserver* aObserver ) ; |
|
34 |
|
35 void RemoveObserver( MVIMPSTStorageContactsObserver* aObserver ); |
|
36 |
|
37 |
|
38 MVIMPSTStorageContact* FindContactByUserId( const TDesC& aUserId ); |
|
39 |
|
40 |
|
41 TInt ListCount() const; |
|
42 |
|
43 MVIMPSTStorageContactList& ListAt( TInt aIndex ) const ; |
|
44 |
|
45 |
|
46 MVIMPSTStorageContactList* FindContactList( const TDesC& aListId ); |
|
47 |
|
48 MVIMPSTStorageContactList* CreateContactListL( const TDesC& aContactListId, |
|
49 const TDesC& aDisplayName ) ; |
|
50 |
|
51 void RemoveContactList( const TDesC& aContactListId ); |
|
52 |
|
53 |
|
54 TInt ContactCount(TBool aSkipOfflineContacts = EFalse ) const; |
|
55 |
|
56 |
|
57 |
|
58 MVIMPSTStorageContact* UpdatePresenceL(const TDesC& aContactId, |
|
59 TVIMPSTEnums::TOnlineStatus aStatus, |
|
60 const TDesC& aStatusText, |
|
61 const TDesC8& aAvatarData, |
|
62 TBool aIsClearingAvatar = EFalse) ; |
|
63 |
|
64 MVIMPSTStorageContact* UpdateAvatarL(const TDesC& aContactId, |
|
65 const TDesC8& aAvatarData ); |
|
66 |
|
67 MVIMPSTStorageContact* CreateNewContactL(const TDesC& aUserId, |
|
68 const TDesC& aDisplayName = KNullDesC, |
|
69 TBool aIsInvitationItem = EFalse , |
|
70 TBool aInvitationAutoAccept = EFalse); |
|
71 |
|
72 TInt CreateNewContactFromRetrivedIdL( TInt aIndexToUse ); |
|
73 |
|
74 TInt DeleteNewContactFromRetrivedIdL( TInt aIndexToUse ); |
|
75 |
|
76 TInt RemoveContactL( MVIMPSTStorageContact* aContact ); |
|
77 |
|
78 |
|
79 void CreateNewFetchContactsL( RArray <TPtrC> &aFirstNameList, |
|
80 RArray <TPtrC> &aServiceField ); |
|
81 |
|
82 |
|
83 TBool IsLocalStore() const; |
|
84 |
|
85 |
|
86 TInt RetriveLinkXSPIdsL(const TDesC8& aContactPackLink ); |
|
87 const TDesC& GetRetrieveXSPIdL(TInt aIndex ); |
|
88 |
|
89 MVIMPSTStorageContact* FindContactByLink(const MVPbkContactLink& aContactLink ); |
|
90 |
|
91 |
|
92 void Sort( const TDesC& aContactListId = KNullDesC ); |
|
93 |
|
94 MVIMPSTStorageContact& OwnContactL() ; |
|
95 |
|
96 void DeleteDatabaseL() ; |
|
97 |
|
98 void SetOwnUserIdL(const TDesC& aUserId ) ; |
|
99 |
|
100 void SetUnnamedTextL(HBufC* aUnnamedText ); |
|
101 RPointerArray< MVIMPSTStorageContactsObserver > iContactObservers; |
|
102 |
|
103 |
|
104 }; |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 #endif // S_VIMPSTSTORAGESERVICEVIEW_H |
|
110 |
|
111 |
|
112 |
|
113 // End of File |
|