equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2003 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: Defines screensaver shared data Subscriber. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_SCREENSAVERSUBSCRIBER_H |
|
21 #define C_SCREENSAVERSUBSCRIBER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <e32property.h> |
|
25 |
|
26 /** |
|
27 * CSubscriber |
|
28 */ |
|
29 class CSubscriber : public CActive |
|
30 { |
|
31 public: |
|
32 CSubscriber(TCallBack aCallBack, RProperty& aProperty); |
|
33 ~CSubscriber(); |
|
34 |
|
35 public: |
|
36 // New functions |
|
37 void SubscribeL(); |
|
38 void StopSubscribe(); |
|
39 |
|
40 private: |
|
41 // from CActive |
|
42 void RunL(); |
|
43 void DoCancel(); |
|
44 |
|
45 private: |
|
46 TCallBack iCallBack; |
|
47 RProperty& iProperty; |
|
48 }; |
|
49 |
|
50 #endif // C_SCREENSAVERSUBSCRIBER_H |