common/tools/ats/smoketest/email/email/pop/src/T_MsgSharedDataPop.cpp
changeset 719 d5603c08781b
child 872 17498133d9ad
equal deleted inserted replaced
718:b18be44be852 719:d5603c08781b
       
     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 the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 
       
    18 /**
       
    19  @file
       
    20 */
       
    21 
       
    22 // user include
       
    23 #include "T_MsgSharedDataPop.h"
       
    24 
       
    25 
       
    26 // epoc includes
       
    27 #include <miutset.h>
       
    28 
       
    29 
       
    30 /**
       
    31 NewL()
       
    32 Allocates and creates a new CT_MsgSharedDataPop object
       
    33 
       
    34 @leave KErrNoMemory
       
    35 @return
       
    36 Returns pointer to an object of CT_MsgComparePopEmailMsgs
       
    37 */
       
    38 CT_MsgSharedDataPop* CT_MsgSharedDataPop::NewL()
       
    39 	{
       
    40 	CT_MsgSharedDataPop* self = new(ELeave) CT_MsgSharedDataPop();
       
    41 	CleanupStack::PushL(self);
       
    42 	self->ConstructL();
       
    43 	CleanupStack::Pop(self);
       
    44 	return self;
       
    45 	}
       
    46 
       
    47 /**
       
    48   ConstructL()
       
    49   Second phage constructor
       
    50 */
       
    51 void CT_MsgSharedDataPop::ConstructL()
       
    52 {
       
    53 	CT_MsgSharedDataBase::ConstructL();
       
    54 	iPeriodic 		= CPeriodic::New(EPriorityHigh);
       
    55  	iMaxRamValue 	= 0;
       
    56  	iMinRamValue 	= 0;
       
    57  	iStartRamValue 	= 0;
       
    58  	iEndRamValue 	= 0;
       
    59  	iMark			= ETrue;
       
    60 }
       
    61 
       
    62 /**
       
    63 NewMtmL()
       
    64  
       
    65 @return
       
    66 Returns a pointer to Client-side MTM object
       
    67 */
       
    68 CBaseMtm* CT_MsgSharedDataPop::NewMtmL()	
       
    69 	{
       
    70 	return iRegistry->NewMtmL(KUidMsgTypePOP3);	
       
    71 	}
       
    72 
       
    73 /**
       
    74 CT_MsgSharedDataPop()
       
    75 Construstor
       
    76 */
       
    77 CT_MsgSharedDataPop::CT_MsgSharedDataPop()
       
    78 	{
       
    79 	}
       
    80 
       
    81 /**
       
    82   ~CT_MsgSharedDataPop()
       
    83   Destructor
       
    84 */
       
    85 CT_MsgSharedDataPop::~CT_MsgSharedDataPop()
       
    86 	{
       
    87 	delete iPeriodic;
       
    88 	}