17 |
17 |
18 |
18 |
19 #ifndef C_AIMULTICONTENTOBSERVER_H |
19 #ifndef C_AIMULTICONTENTOBSERVER_H |
20 #define C_AIMULTICONTENTOBSERVER_H |
20 #define C_AIMULTICONTENTOBSERVER_H |
21 |
21 |
|
22 // System includes |
|
23 #include <e32base.h> |
22 |
24 |
23 #include <e32base.h> |
25 // User includes |
24 #include "aicontentobserver.h" |
26 #include "aicontentobserver.h" |
25 |
|
26 |
27 |
27 // Forward declarations |
28 // Forward declarations |
28 class CAiContentObserverOptimizer; |
29 class CAiContentObserverOptimizer; |
|
30 class CHsContentPublisher; |
|
31 |
29 /** |
32 /** |
30 * @ingroup group_devicestatusplugin |
33 * @ingroup group_devicestatusplugin |
31 * |
34 * |
32 * Active Idle Content Observer interface multiplexer. |
35 * Active Idle Content Observer interface multiplexer. |
33 * |
36 * |
34 * @see MAiContentObserver |
37 * @see MAiContentObserver |
35 * @since S60 3.2 |
38 * @since S60 3.2 |
36 */ |
39 */ |
37 class CAiMultiContentObserver : |
40 NONSHARABLE_CLASS( CAiMultiContentObserver ) : public CBase, |
38 public CBase, |
41 public MAiContentObserver |
39 public MAiContentObserver |
|
40 { |
42 { |
41 public: |
43 public: |
42 static CAiMultiContentObserver* NewL(); |
44 static CAiMultiContentObserver* NewL(); |
43 ~CAiMultiContentObserver(); |
45 ~CAiMultiContentObserver(); |
44 |
46 |
49 |
51 |
50 //from base class MAiContentObserver |
52 //from base class MAiContentObserver |
51 TInt StartTransaction( TInt aTxId ); |
53 TInt StartTransaction( TInt aTxId ); |
52 TInt Commit( TInt aTxId ); |
54 TInt Commit( TInt aTxId ); |
53 TInt CancelTransaction( TInt aTxId ); |
55 TInt CancelTransaction( TInt aTxId ); |
54 TBool CanPublish( MAiPropertyExtension& aPlugin, TInt aContent, TInt aIndex ); |
56 TBool CanPublish( CHsContentPublisher& aPlugin, TInt aContent, TInt aIndex ); |
55 TInt Publish( MAiPropertyExtension& aPlugin, TInt aContent, |
57 TInt Publish( CHsContentPublisher& aPlugin, TInt aContent, |
56 TInt aResource, TInt aIndex ); |
58 TInt aResource, TInt aIndex ); |
57 TInt Publish( MAiPropertyExtension& aPlugin, TInt aContent, |
59 TInt Publish( CHsContentPublisher& aPlugin, TInt aContent, |
58 const TDesC16& aText, TInt aIndex ); |
60 const TDesC16& aText, TInt aIndex ); |
59 TInt Publish( MAiPropertyExtension& aPlugin, TInt aContent, |
61 TInt Publish( CHsContentPublisher& aPlugin, TInt aContent, |
60 const TDesC8& aBuf, TInt aIndex ); |
62 const TDesC8& aBuf, TInt aIndex ); |
61 TInt Publish( MAiPropertyExtension& aPlugin, TInt aContent, |
63 TInt Publish( CHsContentPublisher& aPlugin, TInt aContent, |
62 RFile& aFile, TInt aIndex ); |
64 RFile& aFile, TInt aIndex ); |
63 TInt Clean( MAiPropertyExtension& aPlugin, TInt aContent, TInt aIndex ); |
65 TInt Clean( CHsContentPublisher& aPlugin, TInt aContent, TInt aIndex ); |
64 TAny* Extension( TUid aUid ); |
66 TAny* Extension( TUid aUid ); |
65 TBool RequiresSubscription( const TAiPublisherInfo& aPublisherInfo ) const; |
67 TBool RequiresSubscription( const THsPublisherInfo& aPublisherInfo ) const; |
66 |
68 |
67 TInt SetProperty( MAiPropertyExtension& aPlugin, |
69 TInt SetProperty( CHsContentPublisher& aPlugin, |
68 const TDesC8& aElementId, |
70 const TDesC8& aElementId, |
69 const TDesC8& aPropertyName, |
71 const TDesC8& aPropertyName, |
70 const TDesC8& aPropertyValue ); |
72 const TDesC8& aPropertyValue ); |
71 |
73 |
72 TInt SetProperty( MAiPropertyExtension& aPlugin, |
74 TInt SetProperty( CHsContentPublisher& aPlugin, |
73 const TDesC8& aElementId, |
75 const TDesC8& aElementId, |
74 const TDesC8& aPropertyName, |
76 const TDesC8& aPropertyName, |
75 const TDesC8& aPropertyValue, |
77 const TDesC8& aPropertyValue, |
76 MAiContentObserver::TValueType aValueType); |
78 MAiContentObserver::TValueType aValueType); |
77 |
79 |