messagingfw/msgtestfw/TestActions/Email/Pop3/src/CMtfTestActionSetPop3ServiceParameters.cpp
changeset 22 bde600d88860
parent 0 8e480a14352b
equal deleted inserted replaced
21:08008ce8a6df 22:bde600d88860
       
     1 // Copyright (c) 2004-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 // __ACTION_INFO_BEGIN__ 
       
    15 // [Action Name]
       
    16 // SetPop3ServiceParameters
       
    17 // [Action Parameters]
       
    18 // Session    <input>: Reference to the session.
       
    19 // ServiceId  <input>: Value of the POP3 service id.
       
    20 // (ConfigIndexSettingsFile) <input>: Value of config index for settings file. Default is 0. 
       
    21 // [Action Description]
       
    22 // Sets parameters of Pop3 service.
       
    23 // [APIs Used]
       
    24 // CMsvEntry::SetEntryL
       
    25 // CMsvEntry::EditStoreL
       
    26 // CImPop3Settings::Reset
       
    27 // CImPop3Settings::SetServerAddressL
       
    28 // CImPop3Settings::SetLoginNameL
       
    29 // CImPop3Settings::SetPasswordL
       
    30 // CImPop3Settings::SetAutoSendOnConnect
       
    31 // CImPop3Settings::StoreL
       
    32 // CMsvStore::CommitL
       
    33 // __ACTION_INFO_END__
       
    34 // 
       
    35 //
       
    36 
       
    37 /**
       
    38  @file
       
    39 */
       
    40 
       
    41 
       
    42 
       
    43 #include <msvapi.h>
       
    44 #include <pop3set.h>
       
    45 #include  <cemailaccounts.h>
       
    46 
       
    47 
       
    48 #include "CMtfTestActionSetPop3ServiceParameters.h"
       
    49 #include "CMtfTestCase.h"
       
    50 #include "CMtfTestActionParameters.h"
       
    51 #include "CMtfTestActionUtilsPopScripts.h"
       
    52 #include "CMtfConfigurationType.h"
       
    53 
       
    54 
       
    55 CMtfTestAction* CMtfTestActionSetPop3ServiceParameters::NewL(CMtfTestCase& aTestCase,CMtfTestActionParameters* aActionParameters)
       
    56 	{
       
    57 	CMtfTestActionSetPop3ServiceParameters* self = new (ELeave) CMtfTestActionSetPop3ServiceParameters(aTestCase);
       
    58 	CleanupStack::PushL(self);
       
    59 	self->ConstructL(aActionParameters);
       
    60 	CleanupStack::Pop();
       
    61 	return self;
       
    62 	}
       
    63 	
       
    64 
       
    65 CMtfTestActionSetPop3ServiceParameters::CMtfTestActionSetPop3ServiceParameters(CMtfTestCase& aTestCase)
       
    66 	: CMtfSynchronousTestAction(aTestCase)
       
    67 	{
       
    68 	}
       
    69 
       
    70 
       
    71 CMtfTestActionSetPop3ServiceParameters::~CMtfTestActionSetPop3ServiceParameters()
       
    72 	{
       
    73 	delete iParser;
       
    74 	}
       
    75 
       
    76 
       
    77 
       
    78 void CMtfTestActionSetPop3ServiceParameters::ExecuteActionL()
       
    79 	{
       
    80 
       
    81 
       
    82 // ifdef  __MESSAGING_API_V2__ should do nothing.
       
    83 
       
    84 
       
    85 	TestCase().INFO_PRINTF2(_L("Test Action %S completed."), &KTestActionSetPop3ServiceParameters);
       
    86 	TestCase().ActionCompletedL(*this);
       
    87 	}