equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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: Monitors Obex ServiceMan errors. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef COBEXSMWATCHER_H |
|
19 #define COBEXSMWATCHER_H |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <e32base.h> |
|
23 #include <e32def.h> |
|
24 #include <e32property.h> //Publish & Subscribe header |
|
25 #include "mobexsmwatcher.h" |
|
26 |
|
27 /** |
|
28 * CObexSMWatcher class |
|
29 * Subscribes to ObexServiceMan property changes to monitor initialization errors |
|
30 */ |
|
31 class CObexSMWatcher : public CActive |
|
32 { |
|
33 public: |
|
34 static CObexSMWatcher* NewL(MObexSMObserver& aObserver); |
|
35 virtual ~CObexSMWatcher(); |
|
36 |
|
37 // From CActive |
|
38 virtual void RunL(); |
|
39 virtual void DoCancel(); |
|
40 |
|
41 protected: |
|
42 CObexSMWatcher(MObexSMObserver& aObserver); |
|
43 void ConstructL(); |
|
44 |
|
45 private: |
|
46 // An observer object for obexseviceman P&S keys |
|
47 MObexSMObserver& iObserver; |
|
48 // A property object for obexseviceman P&S keys |
|
49 RProperty iObexSMPostInit; |
|
50 }; |
|
51 |
|
52 #endif |