#include <mw/msvreg.h>
Link against: msgs_autoshutdown.lib
| class CMtmDllRegistry : public CBase, public CBase, public CBase |
| Protected Attributes | |
|---|---|
| RFs & | iFs |
| TUid | iMtmDllTypeUid |
| CRegisteredMtmDllArray | iRegisteredMtmDllArray |
| TTimeIntervalMicroSeconds32 | iTimeoutMicroSeconds32 |
| Public Member Functions | |
|---|---|
| ~CMtmDllRegistry() | |
| IMPORT_C TBool | IsInUse(TUid) |
| IMPORT_C TBool | IsInUse() |
| TBool | IsPresent(TUid) |
| IMPORT_C TUid | MtmTypeUid(TInt) |
| TInt | NumRegisteredMtmDlls() |
| IMPORT_C const CMtmDllInfo & | RegisteredMtmDllInfo(TUid) |
| IMPORT_C TUid | TechnologyTypeUid(TUid) |
| Protected Member Functions | |
|---|---|
| CMtmDllRegistry(RFs &, TUid, TTimeIntervalMicroSeconds32) | |
| IMPORT_C TInt | AddRegisteredMtmDll(TUid, TUid, const CMtmDllInfo &, MRegisteredMtmDllObserver &) |
| IMPORT_C TInt | MtmTypeUidToIndex(TUid) |
| IMPORT_C void | RemoveAllRegisteredMtmDlls() |
| IMPORT_C void | RemoveRegisteredMtmDll(TUid) |
Accesses the various MTM component registries.
The derived classes used by clients are CClientMtmRegistry, CMtmUiDataRegistry, and CMtmUiRegistry. It provides functions to discover the MTMs registered in such a registry. The registered MTMs can be regarded as existing in a list: you can use NumRegisteredMtmDlls() to get the number in the list, and MtmTypeUid() to index into it.
| RFs & | iFs | [protected] |
| TUid | iMtmDllTypeUid | [protected] |
| CRegisteredMtmDllArray | iRegisteredMtmDllArray | [protected] |
| TTimeIntervalMicroSeconds32 | iTimeoutMicroSeconds32 | [protected] |
| IMPORT_C | CMtmDllRegistry | ( | RFs & | aFs, |
| TUid | aMtmDllTypeUid, | |||
| TTimeIntervalMicroSeconds32 | aTimeoutMicroSeconds32 = 30000000 | |||
| ) | [protected] | |||
| IMPORT_C | ~CMtmDllRegistry | ( | ) |
| IMPORT_C TInt | AddRegisteredMtmDll | ( | TUid | aMtmTypeUid, |
| TUid | aTechnologyTypeUid, | |||
| const CMtmDllInfo & | aMtmDllInfo, | |||
| MRegisteredMtmDllObserver & | aRegisteredMtmDllObserver | |||
| ) | [protected] | |||
Tests if the MTM with the specified UID is in use. You should check that the MTM is registered, through IsPresent(), before calling this function.
| Parameters | |
|---|---|
| aMtmTypeUid | UID of MTM to check |
| IMPORT_C TBool | IsInUse | ( | ) | const |
Tests if any registered MTM is in use.
| TInt | NumRegisteredMtmDlls | ( | ) | const [inline] |
| IMPORT_C const CMtmDllInfo & | RegisteredMtmDllInfo | ( | TUid | aMtmTypeUid | ) | const |
Gets the registration data for the specified MTM.
| Parameters | |
|---|---|
| aMtmTypeUid | UID of MTM |