|
1 /* |
|
2 * Copyright (c) 2006 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: Owner of publishers. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef M_AIPUBLISHERBROADCASTER_H |
|
21 #define M_AIPUBLISHERBROADCASTER_H |
|
22 |
|
23 /** |
|
24 * @ingroup group_devicestatusplugin |
|
25 * |
|
26 * Broadcaster for Device Status Plug-in. |
|
27 * |
|
28 * This class should be implemented by an instance that owns Device Status |
|
29 * Plug-in publishers. The purpose of this class is to offer a method for |
|
30 * single publisher to broadcast events to all other publishers. |
|
31 * |
|
32 * @since S60 3.2 |
|
33 */ |
|
34 class MAiPublisherBroadcaster |
|
35 { |
|
36 |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Invoke a refresh call for publishers that publish specific content |
|
41 * with specific priority. |
|
42 * |
|
43 * This has the same effect as the publisher would get content update from system. |
|
44 * Publisher publishes content if it is available and has correct priority. |
|
45 * @param aContentId Id of the content item that is requested to republish. |
|
46 * @param aPriority Priority of the content that needs to be refreshed. |
|
47 * @return true if content was republished. |
|
48 */ |
|
49 virtual TBool RefreshPriorizedPublishersL( TInt aContentId, TInt aPriority ) = 0; |
|
50 }; |
|
51 |
|
52 |
|
53 #endif // M_AIPUBLISHERBROADCASTER_H |