How can we know that a particular message type (MTM) are connected out?
Can check the message server to find whether a particular MTM Qi connection.
Typically the client application does not need to know whether a certain type of MTM module
Jennifer has been connected to the server program. Server program will automatically load or unload
MTM modules needed, and in fact there is no direct correlation function can find the news.
However, you can still look through the use of CClientMtmRegistry class
Jennifer MTM module has been used. This is a query whether a particular module MTM
Jennifer connect to the server has the same effect.
Solutions
First, connect to news server, open a client process:
Code:
CMsvSession * session = CMsvSession:: OpenAsyncL (* this);
Create a CClientMtmRegistry class object:
Code:
CClientMtmRegistry * mtmReg;
mtmReg = CClientMtmRegistry:: NewL (* session);
/ Bin / boot / dev / etc / home / lib / lost + found / media / misc / mnt / net / opt / proc / root / sbin / selinux / srv / sys / tmp / u01 / usr / var / vmware list of known MTM Uid
KUidMsgTypeSMS
KUidMsgTypeMultimedia
KUidMsgTypePOP3
KUidMsgTypeIMAP4
KUidMsgTypeSMTP
backup / bin / conf / data / log / maint / svn / tmp /
if (mtmReg-> IsPresent (KUidMsgTypePOP3))
(
/ / POP3 MTM is present
)
if (mtmReg-> IsInUse (KUidMsgTypePOP3))
(
/ / POP3 MTM is in use
)
If a MTM's UID is unknown, can be used to obtain the following Ji ring.
Code:
TInt mtmCount = mtmReg-> NumRegisteredMtmDlls ();
for (TInt i = 0; i ( TUid mtmUid = mtmReg-> MtmTypeUid (i); const CMtmDllInfo * mtmInfo; mtmInfo = & (iMtmReg-> RegisteredMtmDllInfo (mtmUid)); TBuf8 <256> info; info.Copy (mtmInfo-> HumanReadableName ()); )








