messagingfw/msgsrvnstore/server/inc/MSVREG.INL
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     1 // Copyright (c) 1998-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 
       
    17 
       
    18 inline TPtrC CMtmDllInfo::HumanReadableName() const
       
    19 /** Gets the descriptive name of the MTM component for which the object holds registration 
       
    20 data.
       
    21 
       
    22 @return Descriptor holding the descriptive name of the MTM component */
       
    23 	{
       
    24 	return iHumanReadableName->Des();
       
    25 	}
       
    26 
       
    27 inline TUid CMtmGroupData::MtmTypeUid() const
       
    28 /** Gets the group UID.
       
    29 
       
    30 @return UID that uniquely identifies the MTM group */
       
    31 	{
       
    32 	return iMtmTypeUid;
       
    33 	}
       
    34 
       
    35 inline TUid CMtmGroupData::TechnologyTypeUid() const
       
    36 /** Gets the technology UID.
       
    37 
       
    38 Technology types can be used to conceptually group different MTMs (e.g. as 
       
    39 providing Internet email).
       
    40 
       
    41 @return UID that indicates the messaging technology that the MTM group implements */
       
    42 	{
       
    43 	return iTechnologyTypeUid;
       
    44 	}
       
    45 
       
    46 
       
    47 inline TUid CRegisteredMtmDll::MtmTypeUid() const
       
    48 /** Gets the MTM type UID.
       
    49 
       
    50 @return MTM type UID */
       
    51 	{
       
    52 	return iMtmTypeUid;
       
    53 	}
       
    54 
       
    55 inline TUid CRegisteredMtmDll::TechnologyTypeUid() const
       
    56 /** Gets the technology type UID.
       
    57 
       
    58 @return UID that indicates the messaging technology that the MTM group implements */
       
    59 	{
       
    60 	return iTechnologyTypeUid;
       
    61 	}
       
    62 
       
    63 inline const CMtmDllInfo& CRegisteredMtmDll::MtmDllInfo() const
       
    64 /** Gets the full registration data for the MTM.
       
    65 
       
    66 @return Object encapsulating full registration data for the MTM */
       
    67 	{
       
    68 	return *iMtmDllInfo;
       
    69 	}
       
    70 
       
    71 inline TInt CRegisteredMtmDll::MtmDllRefCount() const
       
    72 /** Gets the number of MTM objects instantiated from the registry.
       
    73 
       
    74 @return Number of current instances of the MTM */
       
    75 	{
       
    76 	return iMtmDllRefCount;
       
    77 	}
       
    78 
       
    79 inline TInt CMtmDllRegistry::NumRegisteredMtmDlls() const
       
    80 /** Gets the number of registered MTMs.
       
    81 
       
    82 @return Number of registered MTMs */
       
    83 	{
       
    84 	return iRegisteredMtmDllArray.Count();
       
    85 	}
       
    86 
       
    87 inline TBool CMtmDllRegistry::IsPresent(TUid aMtmTypeUid) const
       
    88 /** Tests if the MTM with the specified UID is registered.
       
    89 
       
    90 @param aMtmTypeUid UID of MTM to check 
       
    91 @return ETrue if the specified MTM in registered, else EFalse */
       
    92 	{
       
    93 	return MtmTypeUidToIndex(aMtmTypeUid)<iRegisteredMtmDllArray.Count();
       
    94 	}
       
    95