|
1 /* |
|
2 * Copyright (c) 2008 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: observer class for contact |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MVIMPSTDETAILSPRESENCEHANDLER_H |
|
20 #define MVIMPSTDETAILSPRESENCEHANDLER_H |
|
21 |
|
22 #include "tvimpstenums.h" |
|
23 |
|
24 /** |
|
25 * presence observer interface. |
|
26 * @lib vimpstdetailsviewplugin.dll |
|
27 * @since 5.0 |
|
28 */ |
|
29 class MVIMPSTDetailsPresenceObserver |
|
30 { |
|
31 public: // Interface |
|
32 |
|
33 /** |
|
34 * notification call back from presence handler about presence change |
|
35 * @since s60 v5.0 |
|
36 */ |
|
37 virtual void HandlePresenceChangedL() = 0 ; |
|
38 |
|
39 protected: // Disabled functions |
|
40 /** |
|
41 * virtual destructor. |
|
42 * @since 5.0 |
|
43 */ |
|
44 virtual ~MVIMPSTDetailsPresenceObserver() |
|
45 {} |
|
46 }; |
|
47 |
|
48 |
|
49 /** |
|
50 * presence handlere interface. |
|
51 * @lib vimpstdetailsviewplugin.dll |
|
52 * @since 5.0 |
|
53 */ |
|
54 class MVIMPSTDetailsPresenceHandler |
|
55 { |
|
56 public: // Interface |
|
57 |
|
58 /** |
|
59 * fetch presence from cache |
|
60 * @since S60 v5.0 |
|
61 */ |
|
62 virtual void SubscribePresenceL(const TDesC& aUserId ) = 0 ; |
|
63 |
|
64 |
|
65 /** |
|
66 * return the presence status |
|
67 * @since S60 v5.0 |
|
68 */ |
|
69 virtual TVIMPSTEnums::TOnlineStatus GetPresenceStatus() = 0 ; |
|
70 |
|
71 /** |
|
72 * @param aIndex , index of the control |
|
73 * @return Label for control |
|
74 * @since S60 v5.0 |
|
75 */ |
|
76 virtual const TDesC& GetHeaderLabelDataL( TInt aIndex ) = 0 ; |
|
77 |
|
78 /** |
|
79 * @return the presence status message |
|
80 * @since S60 v5.0 |
|
81 */ |
|
82 virtual const TDesC& GetStatusMessageL() = 0; |
|
83 |
|
84 /** |
|
85 * function to get supported or not |
|
86 * @since S60 v5.0 |
|
87 * @return ETrue if supported |
|
88 */ |
|
89 virtual TBool IsSupported() const = 0 ; |
|
90 |
|
91 public: // Disabled functions |
|
92 /** |
|
93 * virtual destructor. |
|
94 */ |
|
95 virtual ~MVIMPSTDetailsPresenceHandler() |
|
96 {} |
|
97 }; |
|
98 |
|
99 |
|
100 #endif // MVIMPSTDETAILSPRESENCEHANDLER_H |
|
101 |
|
102 // End of File |
|
103 |