equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008-2009 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 * |
|
16 */ |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef OTGSTATEWATCHER_H |
|
24 #define OTGSTATEWATCHER_H |
|
25 |
|
26 #include <e32def.h> |
|
27 #include <e32property.h> //Publish & Subscribe header |
|
28 #include <e32cmn.h> |
|
29 #include <e32base.h> |
|
30 #include <usbotgdefs.h> |
|
31 #include "motgobserver.h" |
|
32 |
|
33 NONSHARABLE_CLASS(COtgStateWatcher) : public CActive |
|
34 { |
|
35 public: |
|
36 static COtgStateWatcher* NewL(MOtgPropertiesObserver* aObserver); |
|
37 ~COtgStateWatcher(); |
|
38 |
|
39 TUsbOtgState OtgState() const; |
|
40 |
|
41 private: |
|
42 COtgStateWatcher(MOtgPropertiesObserver* aObserver); |
|
43 void ConstructL(); |
|
44 |
|
45 private: |
|
46 void RunL(); |
|
47 void DoCancel(); |
|
48 |
|
49 private: |
|
50 MOtgPropertiesObserver* iObserver; |
|
51 RProperty iOtgStateProp; |
|
52 TUsbOtgState iOtgState; |
|
53 }; |
|
54 |
|
55 #endif //OTGSTATEWATCHER_H |