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