equal
deleted
inserted
replaced
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
22 #define _EIRMANSERVER_H |
22 #define _EIRMANSERVER_H |
23 |
23 |
24 #include <e32base.h> |
24 #include <e32base.h> |
25 |
25 |
26 class CEirManSession; |
26 class CEirManSession; |
|
27 class CEirManInternalSession; |
27 class CEirManager; |
28 class CEirManager; |
28 class MHCICommandQueue; |
29 class MHCICommandQueue; |
29 class CLinkMgrProtocol; |
30 class CLinkMgrProtocol; |
|
31 class MEirInternalSessionNotifier; |
30 |
32 |
31 enum TEirFeatureState |
33 enum TEirFeatureState |
32 { |
34 { |
33 EEirFeaturePending = 0, |
35 EEirFeaturePending = 0, |
34 EEirFeatureReady = 1, |
36 EEirFeatureReady = 1, |
42 { |
44 { |
43 public: |
45 public: |
44 static CEirManServer* NewL(MHCICommandQueue& aCommandQueue, CLinkMgrProtocol& aLinkMgrProtocol); |
46 static CEirManServer* NewL(MHCICommandQueue& aCommandQueue, CLinkMgrProtocol& aLinkMgrProtocol); |
45 ~CEirManServer(); |
47 ~CEirManServer(); |
46 |
48 |
|
49 CEirManInternalSession* NewInternalSessionL(MEirInternalSessionNotifier& aParent); |
|
50 |
47 inline CEirManager& EirManager() const; |
51 inline CEirManager& EirManager() const; |
48 |
52 |
49 void AddSession(); |
53 void AddSession(CEirManSession& aSession, TBool aInternalSession); |
50 void DropSession(); |
54 void DropSession(TBool aInternalSession); |
51 void NotifyFeaturesReady(); |
55 void NotifyFeaturesReady(); |
52 TEirFeatureState EirFeatureState(); |
56 TEirFeatureState EirFeatureState(); |
53 |
57 |
54 private: |
58 private: |
55 CEirManServer(MHCICommandQueue& aCommandQueue, CLinkMgrProtocol& aLinkMgrProtocol); |
59 CEirManServer(MHCICommandQueue& aCommandQueue, CLinkMgrProtocol& aLinkMgrProtocol); |
63 // unowned |
67 // unowned |
64 MHCICommandQueue& iCommandQueue; |
68 MHCICommandQueue& iCommandQueue; |
65 CLinkMgrProtocol& iLinkMgrProtocol; |
69 CLinkMgrProtocol& iLinkMgrProtocol; |
66 //owned |
70 //owned |
67 CEirManager* iEirManager; |
71 CEirManager* iEirManager; |
68 TInt iSessionCount; |
72 TInt iInternalSessionCount; |
|
73 TInt iExternalSessionCount; |
69 TBool iIsFeaturesReady; |
74 TBool iIsFeaturesReady; |
70 TBool iIsEirSupported; |
75 TBool iIsEirSupported; |
|
76 TDblQue<CEirManSession> iSessions; |
71 }; |
77 }; |
72 #include "eirmanserver.inl" |
78 #include "eirmanserver.inl" |
73 |
79 |
74 #endif // _EIRMANSERVER_H |
80 #endif // _EIRMANSERVER_H |
75 |
81 |