|
1 // Copyright (c) 2006-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 __CONFIGLOADER_H__) |
|
17 #define __CONFIGLOADER_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 ConfigLoader |
|
33 { |
|
34 public: |
|
35 IMPORT_C static TInt LoadConfig(MHarnessLogAdaptor* aHarnessLogger); |
|
36 IMPORT_C static TInt UnLoadConfig(MHarnessLogAdaptor* aHarnessLogger); |
|
37 IMPORT_C static TInt UnLoadConfig(TCFShutdownType aType, MHarnessLogAdaptor* aHarnessLogger); |
|
38 private: |
|
39 class TConfigSvrUnloadInfo |
|
40 { |
|
41 public: |
|
42 TCFModuleName iName; |
|
43 RootServer::TRSModuleState iState; |
|
44 TRequestStatus iStatus; |
|
45 }; |
|
46 typedef RPointerArray<TConfigSvrUnloadInfo> RUnloadInfoArray; |
|
47 |
|
48 static void BuildConfigCPMListL(RRootServ& aRootServer, RUnloadInfoArray& aInfo, TDes8& aDispList); |
|
49 |
|
50 #ifdef __FLOG_ACTIVE |
|
51 static TBool TestC32ExeStarted(RFileLogger& __logger__); |
|
52 static TBool KillC32Exe(RFileLogger& __logger__); |
|
53 static void DoUnLoadConfigL(TCFShutdownType aType, MHarnessLogAdaptor* aHarnessLogger, RFileLogger& __logger__); |
|
54 #else |
|
55 static TBool TestC32ExeStarted(); |
|
56 static TBool KillC32Exe(); |
|
57 static void DoUnLoadConfigL(TCFShutdownType aType, MHarnessLogAdaptor* aHarnessLogger); |
|
58 #endif |
|
59 }; |
|
60 |
|
61 #endif //__CONFIGLOADER_H__ |
|
62 |