|
1 // Copyright (c) 2003-2009 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 "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #if (!defined __ESOCKLOADER_H__) |
|
17 #define __ESOCKLOADER_H__ |
|
18 #include <cfshared.h> |
|
19 #include <rsshared.h> |
|
20 |
|
21 class MHarnessLogAdaptor |
|
22 { |
|
23 public: |
|
24 virtual void Log( TRefByValue<const TDesC16> format, ... ) = 0; |
|
25 virtual void Log( TRefByValue<const TDesC8> format, ... ) = 0; |
|
26 }; |
|
27 |
|
28 using namespace CommsFW; |
|
29 |
|
30 class RRootServ; |
|
31 |
|
32 class ESockLoader |
|
33 { |
|
34 public: |
|
35 enum {KModuleLeaked = - 7315}; |
|
36 public: |
|
37 IMPORT_C static TInt LoadESock(MHarnessLogAdaptor* aHarnessLogger); |
|
38 IMPORT_C static TInt UnloadESock(MHarnessLogAdaptor* aHarnessLogger); |
|
39 IMPORT_C static TInt UnloadESock(TCFShutdownType aType, MHarnessLogAdaptor* aHarnessLogger); |
|
40 private: |
|
41 class TESockSvrUnloadInfo |
|
42 { |
|
43 public: |
|
44 TCFModuleName iName; |
|
45 RootServer::TRSModuleState iState; |
|
46 TRequestStatus iStatus; |
|
47 }; |
|
48 typedef RPointerArray<TESockSvrUnloadInfo> RUnloadInfoArray; |
|
49 |
|
50 static void BuildESockCPMListL(RRootServ& aRootServer, RUnloadInfoArray& aInfo, TDes8& aDispList); |
|
51 |
|
52 #ifdef __FLOG_ACTIVE |
|
53 static TBool TestC32ExeStarted(RFileLogger& __logger__); |
|
54 static TBool KillC32Exe(RFileLogger& __logger__); |
|
55 static void DoUnloadESockL(TCFShutdownType aType, MHarnessLogAdaptor* aHarnessLogger, RFileLogger& __logger__); |
|
56 #else |
|
57 static TBool TestC32ExeStarted(); |
|
58 static TBool KillC32Exe(); |
|
59 static void DoUnloadESockL(TCFShutdownType aType, MHarnessLogAdaptor* aHarnessLogger); |
|
60 #endif |
|
61 }; |
|
62 |
|
63 #endif //__ESOCKLOADER_H__ |
|
64 |