|
1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef MMFMEDIACLIENTEXTDISPLAYTESTPROVIDER_H_ |
|
22 #define MMFMEDIACLIENTEXTDISPLAYTESTPROVIDER_H_ |
|
23 |
|
24 #include <mmf/plugin/mmfmediaclientextdisplayinterface.h> |
|
25 #include <e32base.h> |
|
26 |
|
27 class CExtDisplayTestConnectionProvider; |
|
28 |
|
29 class CExtDisplayConnectionTimer : public CTimer |
|
30 { |
|
31 public: |
|
32 static CExtDisplayConnectionTimer* NewL(CExtDisplayTestConnectionProvider* iParent, TTimeIntervalMicroSeconds32 aInterval); |
|
33 void Start(); |
|
34 |
|
35 private: |
|
36 void RunL(); |
|
37 CExtDisplayConnectionTimer(CExtDisplayTestConnectionProvider* iParent, TTimeIntervalMicroSeconds32 aInterval); |
|
38 |
|
39 private: |
|
40 CExtDisplayTestConnectionProvider* iParent; |
|
41 TTimeIntervalMicroSeconds32 iInterval; |
|
42 }; |
|
43 |
|
44 NONSHARABLE_CLASS(CExtDisplayTestConnectionProvider) : public CExtDisplayConnectionProviderInterface |
|
45 { |
|
46 public: |
|
47 static CExtDisplayTestConnectionProvider* NewL(); |
|
48 ~CExtDisplayTestConnectionProvider(); |
|
49 |
|
50 // Used by CExtDisplayConnectionTimer |
|
51 void TimerExpired(); |
|
52 |
|
53 // CExtDisplayConnectionProviderInterface |
|
54 void SetExtDisplayConnectionProviderCallback(MExtDisplayConnectionProviderCallback& aCallback); |
|
55 TExtDisplayConnectionProviderConnType ExtDisplayConnType(); |
|
56 TInt ExtDisplayId(); |
|
57 |
|
58 private: |
|
59 CExtDisplayTestConnectionProvider(); |
|
60 void ConstructL(); |
|
61 void ReadConnectionInfoL(); |
|
62 void InitialiseConnectionChangeTimerL(); |
|
63 |
|
64 private: |
|
65 MExtDisplayConnectionProviderCallback* iCallback; // not owned |
|
66 TExtDisplayConnectionProviderConnType iInitialConnectionType; |
|
67 TExtDisplayConnectionProviderConnType iConnectionTypeToBeNotified; |
|
68 CExtDisplayConnectionTimer* iExtDisplayConnectionTimer; |
|
69 }; |
|
70 |
|
71 #endif /* MMFMEDIACLIENTEXTDISPLAYTESTPROVIDER_H_ */ |