|
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(__C32ROOT_H__) |
|
17 #define __C32ROOT_H__ |
|
18 |
|
19 /** |
|
20 @file |
|
21 |
|
22 @publishedPartner |
|
23 @released |
|
24 */ |
|
25 |
|
26 #include <rsshared.h> |
|
27 using namespace RootServer; // Allowing the usage of definitions from the RS |
|
28 using namespace CommsFW; // Allowing the usage of definitions from the Comms Framework |
|
29 |
|
30 class RRootServ : public RSessionBase |
|
31 /** The client interface to the Rootserver. Allows e.g. the Comms Reference Configurator |
|
32 application to configure the Comms Process with desired modules and bindings. |
|
33 @publishedPartner |
|
34 @released |
|
35 */ |
|
36 { |
|
37 public: |
|
38 IMPORT_C TInt Connect(); |
|
39 |
|
40 IMPORT_C TVersion Version() const; |
|
41 IMPORT_C TBool IsCallerConfigurationAuthority() const; |
|
42 |
|
43 IMPORT_C TInt SetMBufPoolSize(TUint aPoolSize); |
|
44 IMPORT_C TInt SetMBufPoolSize(TUint aInitPoolSize, TUint aMaxPoolSize); |
|
45 IMPORT_C TInt AddMBufAllocInfo(const TRSAddMBufAllocInfoContainer& aMBufSizeAllocInfo); |
|
46 |
|
47 IMPORT_C void LoadCpm(TRequestStatus& aStatus, const TRSStartModuleParams& aParams, const TDesC8& aIniData); |
|
48 IMPORT_C void UnloadCpm(TRequestStatus& aStatus, const TCFModuleName& aName, TRSUnLoadType aType); |
|
49 IMPORT_C void Bind(TRequestStatus& aStatus, TRSBindingInfo& aBindInfo); |
|
50 IMPORT_C void Unbind(TRequestStatus& aStatus, TRSUnBindingInfo& aUnBindInfo); |
|
51 |
|
52 IMPORT_C TInt GetModuleInfo(const TCFModuleName& aName, TRSModuleInfo& aModuleInfo); |
|
53 IMPORT_C TInt EnumerateModules(TRSIter &aPosition, TCFModuleName& aModuleName); |
|
54 IMPORT_C TInt EnumerateSubModules(const TCFModuleName& aModuleName, TRSIter &aPosition, TCFSubModuleName& aSubModuleName); |
|
55 IMPORT_C TInt EnumerateBindings(const TCFSubModuleAddress& aSubModuleAddr, TRSIter &aPosition, TRSBindingInfo& aBinding); |
|
56 |
|
57 IMPORT_C void CancelLoadCpm(const TCFModuleName& aName); |
|
58 IMPORT_C void CancelUnloadCpm(const TCFModuleName& aName); |
|
59 IMPORT_C void CancelBind(TRSSubModuleAddress& aName1, TRSSubModuleAddress& aName2); |
|
60 IMPORT_C void CancelUnbind(TRSSubModuleAddress& aName1, TRSSubModuleAddress& aName2); |
|
61 |
|
62 IMPORT_C void SendMessage(TRequestStatus& aStatus, const TCFModuleName& aName, TInt aType, TDes8& aData); |
|
63 IMPORT_C TInt SendMessage(const TCFModuleName& aName, TInt aType, TDes8& aData); |
|
64 |
|
65 IMPORT_C TInt Shutdown(); |
|
66 |
|
67 IMPORT_C void Close(); |
|
68 |
|
69 IMPORT_C TInt __DbgMarkHeap(); |
|
70 IMPORT_C TInt __DbgCheckHeap(TInt aCount); |
|
71 IMPORT_C TInt __DbgMarkEnd(TInt aCount); |
|
72 IMPORT_C TInt __DbgFailNext(TInt aCount); |
|
73 IMPORT_C TInt __DbgFailNextMbuf(TInt aCount); |
|
74 IMPORT_C TInt __DbgSetMbufPoolLimit(TInt asize); |
|
75 IMPORT_C TInt __DbgCheckMbuf(TInt asize); |
|
76 IMPORT_C TInt __DbgMbufFreeSpace(); |
|
77 IMPORT_C TInt __DbgMbufTotalSpace(); |
|
78 |
|
79 }; |
|
80 |
|
81 #endif // __C32ROOT_H__ |
|
82 |