|
1 /* |
|
2 * Copyright (c) 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: |
|
15 * This class the handles the received indications from the Public and |
|
16 * Subscribe. |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef TSCPUBSUBOBSERVER_H |
|
21 #define TSCPUBSUBOBSERVER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32property.h> |
|
25 #include "MTSCPropertyResponder.h" |
|
26 #include "tscstartupextension.h" |
|
27 |
|
28 |
|
29 |
|
30 // CLASS DECLARATION |
|
31 class CTSCStartupExtension; |
|
32 class CTSCSubscriber; |
|
33 |
|
34 class CTSCPubSubObserver : public CBase, public MTSCPropertyResponder |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * C++ constructor. |
|
40 */ |
|
41 CTSCPubSubObserver( CTSCStartupExtension* aTSCStartupExtension ); |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 */ |
|
46 static CTSCPubSubObserver* NewL( CTSCStartupExtension* aTSCStartupExtension ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 ~CTSCPubSubObserver(); |
|
52 |
|
53 private: |
|
54 |
|
55 /** |
|
56 * By default EPOC constructor is private. |
|
57 */ |
|
58 void ConstructL(); |
|
59 |
|
60 CTSCPubSubObserver(); |
|
61 |
|
62 protected: // From MTSCPropertyResponder |
|
63 |
|
64 void HandlePropertyChangedL( const TUid& aCategory, TUint aKey ); |
|
65 |
|
66 private: // Data |
|
67 //reference to application class |
|
68 CTSCStartupExtension * iTSCStartupExtension; //uses |
|
69 |
|
70 RProperty iProperty; |
|
71 CTSCSubscriber* iTSCSyncSubscriber; |
|
72 }; |
|
73 |
|
74 #endif // TSCPUBSUBOBSERVER_H |
|
75 |
|
76 // End of File |