messagingappbase/smsmtm/smsgetdetdescdefault/src/csmsgetdetdescdefault.cpp
changeset 23 238255e8b033
equal deleted inserted replaced
5:4697dfb2d7ad 23:238255e8b033
       
     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 #include <ecom/implementationproxy.h>
       
    17 #include "csmsgetdetdescdefault.h"
       
    18 
       
    19 // Define the implementation table for Ecom
       
    20 const TImplementationProxy ImplementationTable[] = 
       
    21 	{
       
    22 	IMPLEMENTATION_PROXY_ENTRY(0x10282FA6, CSmsGetDetDescDefault::NewL)
       
    23 	};
       
    24 
       
    25 /**
       
    26 Returns the implementation table
       
    27 
       
    28 @param aTableCount Returns the number of entries in the implementation table
       
    29 @return Ptr to implementation table
       
    30 */
       
    31 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
       
    32 	{
       
    33 	aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
       
    34 
       
    35 	return ImplementationTable;
       
    36 	}
       
    37 
       
    38 /**
       
    39 Static factory constructor
       
    40 
       
    41 @return Ptr to newly created instance of the class
       
    42 */
       
    43 CSmsGetDetDescDefault* CSmsGetDetDescDefault::NewL()
       
    44 	{
       
    45 	CSmsGetDetDescDefault* self = new (ELeave) CSmsGetDetDescDefault();	
       
    46 	return self;
       
    47 	}
       
    48 
       
    49 /**
       
    50 Class constructor
       
    51 */
       
    52 CSmsGetDetDescDefault::CSmsGetDetDescDefault()
       
    53 	{
       
    54 	}
       
    55 
       
    56 /**
       
    57 Class destructor
       
    58 */
       
    59 CSmsGetDetDescDefault::~CSmsGetDetDescDefault()
       
    60 	{
       
    61 	}
       
    62 
       
    63 /**
       
    64 Get the SMS message recipient/sender details.
       
    65 This default version just makes a call to TSmsUtilities::GetDetails()
       
    66 
       
    67 @param aFs A connected file server session.
       
    68 @param aMessage The SMS message object
       
    69 @param aDetails The output argument to contain the message details.
       
    70 @param aMaxLength The maximum length of the supplied buffer in aDetails.
       
    71 
       
    72 @return System wide error code
       
    73 */
       
    74 TInt CSmsGetDetDescDefault::GetDetails(RFs& aFs, const CSmsMessage& aMessage, TDes& aDetails, TInt aMaxLength)
       
    75 	{
       
    76 	return TSmsUtilities::GetDetails(aFs, aMessage, aDetails, aMaxLength);
       
    77 	}
       
    78 
       
    79 /**
       
    80 Get the SMS message recipient/sender details.
       
    81 This default version just makes a call to TSmsUtilities::GetDetails()
       
    82 
       
    83 @param aFs A connected file server session.
       
    84 @param aFromAddress The recipient/sender telephone number.
       
    85 @param aDetails The output argument to contain the message details.
       
    86 @param aMaxLength The maximum length of the supplied buffer in aDetails.
       
    87 
       
    88 @return System wide error code
       
    89 */
       
    90 TInt CSmsGetDetDescDefault::GetDetails(RFs& aFs, const TDesC& aFromAddress, TDes& aDetails, TInt aMaxLength)
       
    91 	{
       
    92 	return TSmsUtilities::GetDetails(aFs, aFromAddress, aDetails, aMaxLength);
       
    93 	}
       
    94 
       
    95 /**
       
    96 Get the SMS message description.
       
    97 This default version just makes a call to TSmsUtilities::GetDescription()
       
    98 
       
    99 @param aMessage The SMS message object
       
   100 @param aDescription The output argument for the description.
       
   101 @param aMaxLength The maximum length of the supplied buffer in aDescription.
       
   102 
       
   103 @return System wide error code
       
   104 */
       
   105 TInt CSmsGetDetDescDefault::GetDescription(const CSmsMessage& aMessage, TDes& aDescription, TInt aMaxLength)
       
   106 	{
       
   107 	return TSmsUtilities::GetDescription(aMessage, aDescription, aMaxLength);
       
   108 	}