messagingfw/msgtest/integration/email/inc/emailsmokecommands.h
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     1 // Copyright (c) 1999-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 #ifndef __EMAILSMOKECOMMANDS_H
       
    17 #define __EMAILSMOKECOMMANDS_H
       
    18 #include "emailtestutils.h"
       
    19 #include "emailsmoke.h"
       
    20 
       
    21 const TInt KMaxTestBodyTxt = 200;
       
    22 
       
    23 //
       
    24 //
       
    25 // CCleanMessageFolder
       
    26 //
       
    27 
       
    28 class CCleanMessageFolder : public CBase, public MBaseTestState
       
    29 	{
       
    30 public:
       
    31 	void StartL(TRequestStatus& aStatus);
       
    32 	CCleanMessageFolder(CEmailTestUtils& aTestUtils);
       
    33 
       
    34 protected:
       
    35 	CEmailTestUtils& iTestUtils;
       
    36 	};
       
    37 
       
    38 
       
    39 //
       
    40 //
       
    41 // CDumpMailStore
       
    42 //
       
    43 
       
    44 class CDumpMailStore : public CBase, public MBaseTestState
       
    45 	{
       
    46 public:
       
    47 	void StartL(TRequestStatus& aStatus);
       
    48 	CDumpMailStore(CEmailTestUtils& aTestUtils, const TDesC& aPath);
       
    49 
       
    50 protected:
       
    51 	CEmailTestUtils& iTestUtils;
       
    52 	TFileName iPath;
       
    53 	};
       
    54 
       
    55 
       
    56 //
       
    57 //
       
    58 // CCompareFiles
       
    59 //
       
    60 
       
    61 class CCompareFiles : public CBase, public MBaseTestState
       
    62 	{
       
    63 public:
       
    64 	void StartL(TRequestStatus& aStatus);
       
    65 	CCompareFiles(CMsvTestUtils& aTestUtils, const TDesC& aPath1, const TDesC& aPath2);
       
    66 
       
    67 private:
       
    68 	void LogCommentFormat(TRefByValue<const TDesC> format,...);
       
    69 
       
    70 protected:
       
    71 	CMsvTestUtils& iTestUtils;
       
    72 	TFileName iPath1;
       
    73 	TFileName iPath2;
       
    74 	};
       
    75 
       
    76 
       
    77 //
       
    78 //
       
    79 // CDumpToFile
       
    80 //
       
    81 
       
    82 class CDumpToFile : public CBase
       
    83 	{
       
    84 protected:
       
    85 	void WriteToFileL(RFile& aFile, const TDesC& aInputLine);
       
    86 	};
       
    87 
       
    88 
       
    89 //
       
    90 //
       
    91 // CDumpBodyText
       
    92 //
       
    93 
       
    94 class CDumpBodyText : public CDumpToFile, public MBaseTestState
       
    95 	{
       
    96 public:
       
    97 	void StartL(TRequestStatus& aStatus);
       
    98 	CDumpBodyText(CMsvEntrySelection& aSelection, CMsvTestUtils& aTestUtils, const TDesC& aPath);
       
    99 
       
   100 private:
       
   101 	void RemoveRichtextFormating(TDes& aSourceLine);
       
   102 	void DumpBodyTextToFileL(RFile& aFile, TMsvId& aEntryId);
       
   103 
       
   104 protected:
       
   105 	CMsvEntrySelection& iSelection;
       
   106 	CMsvTestUtils& iTestUtils;
       
   107 	TFileName iPath;
       
   108 	};
       
   109 	
       
   110 
       
   111 //
       
   112 //
       
   113 // CGetAttachmentNames
       
   114 //
       
   115 
       
   116 class CGetAttachmentNames : public CDumpToFile, public MBaseTestState
       
   117 	{
       
   118 public:
       
   119 	void StartL(TRequestStatus& aStatus);
       
   120 	CGetAttachmentNames(CMsvEntrySelection& aSelection, CMsvTestUtils& aTestUtils, const TDesC& aPath);
       
   121 
       
   122 private:
       
   123 	void DumpAttachmentNamesToFileL(RFile& aFile, TMsvId& aEntryId);
       
   124 
       
   125 protected:
       
   126 	CMsvEntrySelection& iSelection;
       
   127 	CMsvTestUtils& iTestUtils;
       
   128 	TFileName iPath;
       
   129 	};
       
   130 	
       
   131 	
       
   132 //
       
   133 //
       
   134 // CDumpHeaderFields
       
   135 //
       
   136 
       
   137 class CDumpHeaderFields : public CDumpToFile, public MBaseTestState
       
   138 	{
       
   139 public:
       
   140 	void StartL(TRequestStatus& aStatus);
       
   141 	CDumpHeaderFields(CMsvEntrySelection& aSelection, CMsvTestUtils& aTestUtils, const TDesC& aPath);
       
   142 
       
   143 private:
       
   144 	void DumpHeaderFieldsToFileL(RFile& aFile, TMsvId& aEntryId);
       
   145 
       
   146 protected:
       
   147 	CMsvEntrySelection& iSelection;
       
   148 	CMsvTestUtils& iTestUtils;
       
   149 	TFileName iPath;
       
   150 	};
       
   151 	
       
   152 
       
   153 //`//
       
   154 //
       
   155 // CChangeCharset
       
   156 //
       
   157 
       
   158 class CChangeCharset : public CBase, public MBaseTestState
       
   159 	{
       
   160 public:
       
   161 	void StartL(TRequestStatus& aStatus);
       
   162 	CChangeCharset(TUint aNewCharset, CMsvEntrySelection& aSelection, CMsvTestUtils& aTestUtils); 
       
   163 
       
   164 private:
       
   165 	CMsvTestUtils& iTestUtils;
       
   166 	CMsvEntrySelection& iSelection;
       
   167 	TUint iNewCharset;
       
   168 	};
       
   169 
       
   170 //
       
   171 //
       
   172 // CAddComment
       
   173 //
       
   174 
       
   175 class CAddComment : public CBase, public MBaseTestState
       
   176 	{
       
   177 public:
       
   178 	static CAddComment* NewL(const CDesCArrayFlat& aComment, CMsvTestUtils& aTestUtils);
       
   179 	void StartL(TRequestStatus& aStatus);
       
   180 	~CAddComment();
       
   181 
       
   182 private:
       
   183 	CAddComment(CMsvTestUtils& aTestUtils);
       
   184 	void ConstructL(const CDesCArrayFlat& aComment);
       
   185 
       
   186 protected:
       
   187 	CMsvTestUtils& iTestUtils;
       
   188 	HBufC* iComment;
       
   189 	};
       
   190 
       
   191 //
       
   192 //
       
   193 // CCountChildren
       
   194 //
       
   195 
       
   196 class CCountChildren : public CBase, public MBaseTestState
       
   197 	{
       
   198 public:
       
   199 	CCountChildren(TMsvId& aParentFolder, CEmailClientTest& aTestHarness);
       
   200 	void StartL(TRequestStatus& aStatus);
       
   201 
       
   202 protected:
       
   203 	CEmailClientTest& iTestHarness;
       
   204 	TMsvId& iParentFolder;
       
   205 	};
       
   206 
       
   207 //
       
   208 //
       
   209 // CCheckService
       
   210 //
       
   211 
       
   212 class CCheckService : public CBase, public MBaseTestState
       
   213 	{
       
   214 public:
       
   215 	CCheckService(CEmailClientTest& aTestHarness);
       
   216 	void StartL(TRequestStatus& aStatus);
       
   217 
       
   218 protected:
       
   219 	CEmailClientTest& iTestHarness;
       
   220 	};
       
   221 
       
   222 
       
   223 //
       
   224 //
       
   225 // CGoClientSide
       
   226 //
       
   227 
       
   228 class CGoClientSide : public CBase, public MBaseTestState
       
   229 	{
       
   230 public:
       
   231 	void StartL(TRequestStatus& aStatus);
       
   232 	CGoClientSide(CMsvTestUtils& aTestUtils);
       
   233 
       
   234 protected:
       
   235 	CMsvTestUtils& iTestUtils;
       
   236 	};
       
   237 
       
   238 
       
   239 
       
   240 //
       
   241 //
       
   242 // CGoServerSide
       
   243 //
       
   244 
       
   245 class CGoServerSide : public CBase, public MBaseTestState
       
   246 	{
       
   247 public:
       
   248 	void StartL(TRequestStatus& aStatus);
       
   249 	CGoServerSide(CMsvTestUtils& aTestUtils);
       
   250 
       
   251 protected:
       
   252 	CMsvTestUtils& iTestUtils;
       
   253 	};
       
   254 
       
   255 
       
   256 
       
   257 //
       
   258 //
       
   259 // CResetMessageServer
       
   260 //
       
   261 
       
   262 class CResetMessageServer : public CBase, public MBaseTestState
       
   263 	{
       
   264 public:
       
   265 	void StartL(TRequestStatus& aStatus);
       
   266 	CResetMessageServer(CMsvTestUtils& aTestUtils);
       
   267 
       
   268 protected:
       
   269 	CMsvTestUtils& iTestUtils;
       
   270 	};
       
   271 
       
   272 
       
   273 
       
   274 
       
   275 //
       
   276 //
       
   277 // CCheckMessageFolder
       
   278 //
       
   279 
       
   280 class CCheckMessageFolder : public CBase, public MBaseTestState
       
   281 	{
       
   282 public:
       
   283 	void StartL(TRequestStatus& aStatus);
       
   284 	CCheckMessageFolder(const TDesC& aFileName, CMsvTestUtils& aTestUtils);
       
   285 
       
   286 protected:
       
   287 	CMsvTestUtils& iTestUtils;
       
   288 	TFileName iFileName;
       
   289 	};
       
   290 
       
   291 
       
   292 
       
   293 //
       
   294 //
       
   295 // CChangeMsvDrive
       
   296 //
       
   297 
       
   298 class CChangeMsvDrive : public CActive, public MBaseTestState
       
   299 	{
       
   300 public:
       
   301 	CChangeMsvDrive(CMsvClientTest& aParentTestHarness, TInt aDrive);
       
   302 	void StartL(TRequestStatus& aStatus);
       
   303 	void RunL();
       
   304 	void DoCancel();
       
   305 	~CChangeMsvDrive();
       
   306 
       
   307 private:
       
   308 	CMsvClientTest& iParentTestHarness;
       
   309 	TRequestStatus* iReportStatus;
       
   310 	TInt iDrive;
       
   311 	};
       
   312 	
       
   313 
       
   314 //
       
   315 //
       
   316 // CRemoveFileOrDir
       
   317 //
       
   318 
       
   319 class CRemoveFileOrDir : public CBase, public MBaseTestState
       
   320 	{
       
   321 public:
       
   322 	CRemoveFileOrDir(CMsvTestUtils& aTestUtils, const TDesC& aPath);
       
   323 	void StartL(TRequestStatus& aStatus);
       
   324 
       
   325 private:
       
   326 	CMsvTestUtils& iTestUtils;
       
   327 	TFileName iPath;
       
   328 	};
       
   329 	
       
   330 
       
   331 //
       
   332 //
       
   333 // CSelectEntry
       
   334 //
       
   335 
       
   336 class CSelectEntry : public CBase, public MBaseTestState
       
   337 	{
       
   338 public:
       
   339 	static CSelectEntry* NewL(const TDesC& aName, const TMsvId& aCurrentFolderId, TMsvId* aEntryId, CMsvTestUtils& aTestUtils);
       
   340 	static CSelectEntry* NewL(const TDesC& aName, const TMsvId& aCurrentFolderId, CMsvEntrySelection* aSelection, CMsvTestUtils& aTestUtils);
       
   341 	void StartL(TRequestStatus& aStatus);
       
   342 	~CSelectEntry();
       
   343 
       
   344 private:
       
   345 	CSelectEntry(const TMsvId& aCurrentFolderId, TMsvId* aEntryId, CMsvTestUtils& aTestUtils);
       
   346 	CSelectEntry(const TMsvId& aCurrentFolderId, CMsvEntrySelection* aSelection, CMsvTestUtils& aTestUtils);
       
   347 	void ConstructL(const TDesC& aName);
       
   348 
       
   349 private:
       
   350 	CMsvTestUtils& iTestUtils;
       
   351 	const TMsvId& iCurrentFolderId;
       
   352 	TMsvId* iEntryId;
       
   353 	CMsvEntrySelection* iEntrySelection;
       
   354 	HBufC* iEntryName;
       
   355 	};
       
   356 
       
   357 /*
       
   358 class CSelectEntry : public CBase, public MBaseTestState
       
   359 	{
       
   360 public:
       
   361 	static CSelectEntry* NewL(const TDesC& aName, const TMsvId& aCurrentFolderId, TMsvId& aEntryId, CMsvTestUtils& aTestUtils);
       
   362 	void StartL(TRequestStatus& aStatus);
       
   363 	~CSelectEntry();
       
   364 
       
   365 private:
       
   366 	CSelectEntry(const TMsvId& aCurrentFolderId, TMsvId& aEntryId, CMsvTestUtils& aTestUtils);
       
   367 	void ConstructL(const TDesC& aName);
       
   368 
       
   369 private:
       
   370 	CMsvTestUtils& iTestUtils;
       
   371 	const TMsvId& iCurrentFolderId;
       
   372 	TMsvId& iEntryId;
       
   373 	HBufC* iEntryName;
       
   374 	};
       
   375 */
       
   376 
       
   377 //`//
       
   378 //
       
   379 // CCheckSelectionCount
       
   380 //
       
   381 
       
   382 class CCheckSelectionCount : public CBase, public MBaseTestState
       
   383 	{
       
   384 public:
       
   385 	void StartL(TRequestStatus& aStatus);
       
   386 	CCheckSelectionCount(TInt aCount, CMsvEntrySelection& aSelection, CMsvTestUtils& aTestUtils); 
       
   387 
       
   388 private:
       
   389 	void LogCommentFormat(TRefByValue<const TDesC> format,...);
       
   390 
       
   391 private:
       
   392 	CMsvTestUtils& iTestUtils;
       
   393 	CMsvEntrySelection& iSelection;
       
   394 	TInt iTestCount;
       
   395 	};
       
   396 
       
   397 
       
   398 
       
   399 
       
   400 //`//
       
   401 //
       
   402 // CCheckNewFlag
       
   403 //
       
   404 
       
   405 class CCheckNewFlag : public CBase, public MBaseTestState
       
   406 	{
       
   407 public:
       
   408 	void StartL(TRequestStatus& aStatus);
       
   409 	CCheckNewFlag(TInt aSelectedIndex, TBool aTestNewStatus, 
       
   410 				  CMsvEntrySelection& aSelection, CMsvTestUtils& aTestUtils); 
       
   411 
       
   412 private:
       
   413 	void LogCommentFormat(TRefByValue<const TDesC> format,...);
       
   414 
       
   415 private:
       
   416 	CMsvTestUtils& iTestUtils;
       
   417 	CMsvEntrySelection& iSelection;
       
   418 	TInt iSelectedIndex;
       
   419 	TBool iTestNewStatus;
       
   420 	};
       
   421 
       
   422 
       
   423 
       
   424 //`//
       
   425 //
       
   426 // CCheckPriority
       
   427 //
       
   428 
       
   429 class CCheckPriority : public CBase, public MBaseTestState
       
   430 	{
       
   431 public:
       
   432 	void StartL(TRequestStatus& aStatus);
       
   433 	CCheckPriority(TInt aSelectedIndex, TInt aTestPriority, 
       
   434 				   CMsvEntrySelection& aSelection, CMsvTestUtils& aTestUtils); 
       
   435 
       
   436 private:
       
   437 	void LogCommentFormat(TRefByValue<const TDesC> format,...);
       
   438 
       
   439 private:
       
   440 	CMsvTestUtils& iTestUtils;
       
   441 	CMsvEntrySelection& iSelection;
       
   442 	TInt iSelectedIndex;
       
   443 	TBool iTestPriority;
       
   444 	};
       
   445 
       
   446 
       
   447 //`//
       
   448 //
       
   449 // CCheckAttachment
       
   450 //
       
   451 
       
   452 class CCheckAttachment : public CBase, public MBaseTestState
       
   453 	{
       
   454 public:
       
   455 	void StartL(TRequestStatus& aStatus);
       
   456 	CCheckAttachment(TInt aSelectedIndex, TBool aTestAttachment, 
       
   457 					 CMsvEntrySelection& aSelection, CMsvTestUtils& aTestUtils); 
       
   458 
       
   459 private:
       
   460 	void LogCommentFormat(TRefByValue<const TDesC> format,...);
       
   461 
       
   462 private:
       
   463 	CMsvTestUtils& iTestUtils;
       
   464 	CMsvEntrySelection& iSelection;
       
   465 	TInt iSelectedIndex;
       
   466 	TBool iTestAttachment;
       
   467 	};
       
   468 
       
   469 
       
   470 //`//
       
   471 //
       
   472 // CCheckChildren
       
   473 //
       
   474 
       
   475 class CCheckChildren : public CBase, public MBaseTestState
       
   476 	{
       
   477 public:
       
   478 	void StartL(TRequestStatus& aStatus);
       
   479 	CCheckChildren(TInt aSelectedIndex, TBool aTestAttachment, 
       
   480 					 CMsvEntrySelection& aSelection, CMsvTestUtils& aTestUtils); 
       
   481 
       
   482 private:
       
   483 	void LogCommentFormat(TRefByValue<const TDesC> format,...);
       
   484 
       
   485 private:
       
   486 	CMsvTestUtils& iTestUtils;
       
   487 	CMsvEntrySelection& iSelection;
       
   488 	TInt iSelectedIndex;
       
   489 	TBool iTestChildren;
       
   490 	};
       
   491 
       
   492 //`//
       
   493 //
       
   494 // CCheckBodyText
       
   495 //
       
   496 
       
   497 class CCheckBodyText : public CBase, public MBaseTestState
       
   498 	{
       
   499 public:
       
   500 	static CCheckBodyText* NewL(TInt aSelectedIndex, TDesC& aTestBodyText, CMsvEntrySelection& aSelection, CMsvTestUtils& aTestUtils);
       
   501 	
       
   502 	~CCheckBodyText();
       
   503 
       
   504 	void StartL(TRequestStatus& aStatus);
       
   505 	
       
   506 private:
       
   507 	void ConstructL(TDesC& aTestBodyText);
       
   508 	CCheckBodyText(TInt aSelectedIndex, CMsvEntrySelection& aSelection, CMsvTestUtils& aTestUtils); 
       
   509 
       
   510 	void LogCommentFormat(TRefByValue<const TDesC> format,...);
       
   511 
       
   512 private:
       
   513 	CMsvTestUtils& iTestUtils;
       
   514 	CMsvEntrySelection& iSelection;
       
   515 	TInt iSelectedIndex;
       
   516 	HBufC* iTestBodyText;
       
   517 	};
       
   518 
       
   519 //`//
       
   520 //
       
   521 // CCheckRemoteFolderSize
       
   522 //
       
   523 
       
   524 class CCheckRemoteFolderSize : public CBase, public MBaseTestState
       
   525 	{
       
   526 public:
       
   527 	void StartL(TRequestStatus& aStatus);
       
   528 	CCheckRemoteFolderSize(TInt aCount, CMsvTestUtils& aTestUtils); 
       
   529 
       
   530 private:
       
   531 	void LogCommentFormat(TRefByValue<const TDesC> format,...);
       
   532 
       
   533 private:
       
   534 	CMsvTestUtils& iTestUtils;
       
   535 	TInt iTestCount;
       
   536 	};
       
   537 
       
   538 //`//
       
   539 //
       
   540 // CSelectPopulatedInSelection
       
   541 //
       
   542 
       
   543 class CSelectPopulatedInSelection : public CBase, public MBaseTestState
       
   544 	{
       
   545 public:
       
   546 	void StartL(TRequestStatus& aStatus);
       
   547 	CSelectPopulatedInSelection(CMsvEntrySelection& aSelection,CMsvTestUtils& aTestUtils); 
       
   548 
       
   549 private:
       
   550 	CMsvTestUtils& iTestUtils;
       
   551 	CMsvEntrySelection& iSelection;
       
   552 	};
       
   553 
       
   554 //`//
       
   555 //
       
   556 // CSelectLastInSelection
       
   557 //
       
   558 
       
   559 class CSelectLastInSelection : public CBase, public MBaseTestState
       
   560 	{
       
   561 public:
       
   562 	void StartL(TRequestStatus& aStatus);
       
   563 	CSelectLastInSelection(TInt aCount, CMsvEntrySelection& aSelection, CMsvTestUtils& aTestUtils); 
       
   564 
       
   565 private:
       
   566 	CMsvTestUtils& iTestUtils;
       
   567 	CMsvEntrySelection& iSelection;
       
   568 	TInt iTestCount;
       
   569 	};
       
   570 
       
   571 //`//
       
   572 //
       
   573 // CSelectFirstInSelection
       
   574 //
       
   575 
       
   576 class CSelectFirstInSelection : public CBase, public MBaseTestState
       
   577 	{
       
   578 public:
       
   579 	void StartL(TRequestStatus& aStatus);
       
   580 	CSelectFirstInSelection(TInt aCount, CMsvEntrySelection& aSelection, CMsvTestUtils& aTestUtils); 
       
   581 
       
   582 private:
       
   583 	CMsvTestUtils& iTestUtils;
       
   584 	CMsvEntrySelection& iSelection;
       
   585 	TInt iTestCount;
       
   586 	};
       
   587 
       
   588 //
       
   589 //
       
   590 // CSelectEntryById
       
   591 //
       
   592 
       
   593 class CSelectEntryById : public CBase, public MBaseTestState
       
   594 	{
       
   595 public:
       
   596 	void StartL(TRequestStatus& aStatus);
       
   597 	CSelectEntryById(TMsvId aId, TMsvId& aEntryId, CMsvTestUtils& aTestUtils);
       
   598 
       
   599 private:
       
   600 	CMsvTestUtils& iTestUtils;
       
   601 	TMsvId iIdToSelect;
       
   602 	TMsvId& iEntryId;
       
   603 	};
       
   604 
       
   605 //
       
   606 //
       
   607 // CMsvTestEntry
       
   608 //
       
   609 
       
   610 class CMsvTestEntry : public CBase, public MBaseTestState
       
   611 	{
       
   612 public:
       
   613 	CMsvTestEntry(CMsvClientTest& aParentTestHarness);
       
   614 	void StartL(TRequestStatus& aStatus);
       
   615 	
       
   616 	void TestVisible(TBool aVisibleValue);
       
   617 	void TestComplete(TBool aCompleteValue);
       
   618 
       
   619 protected:
       
   620 // What to test
       
   621 	TBool iTestVisible;
       
   622 	TBool iTestComplete;
       
   623 
       
   624 // Expected values
       
   625 	TBool iVisibleValue;
       
   626 	TBool iCompleteValue;
       
   627 
       
   628 protected:
       
   629 	CMsvClientTest& iParentTestHarness;
       
   630 	};
       
   631 
       
   632 //
       
   633 //
       
   634 // CSelectAllMessages
       
   635 //
       
   636 
       
   637 class CSelectAllMessages : public CBase, public MBaseTestState
       
   638 	{
       
   639 public:
       
   640 	void StartL(TRequestStatus& aStatus);
       
   641 	CSelectAllMessages(TMsvId& aParentFolder, CMsvEntrySelection& aSelection, CMsvTestUtils& aTestUtils);
       
   642 
       
   643 private:
       
   644 	CMsvTestUtils& iTestUtils;
       
   645 	TMsvId& iParentFolder;
       
   646 	CMsvEntrySelection& iSelection;
       
   647 	};
       
   648 
       
   649 
       
   650 
       
   651 //
       
   652 //
       
   653 // CLongWait
       
   654 //
       
   655 
       
   656 class CLongWait : public CActive, public MBaseTestState
       
   657 	{
       
   658 public:
       
   659 	void StartL(TRequestStatus& aStatus);
       
   660 	CLongWait();
       
   661 	CLongWait(TInt aWaitTime);
       
   662 	~CLongWait();
       
   663 	void RunL();
       
   664 	void DoCancel();
       
   665 
       
   666 private:
       
   667 	CTestTimer* iTimer;
       
   668 	TRequestStatus* iReportStatus;
       
   669 	TInt iWaitTime;
       
   670 	};
       
   671 
       
   672 
       
   673 
       
   674 
       
   675 //
       
   676 //
       
   677 // CCreateEmailMessage
       
   678 //
       
   679 
       
   680 class CCreateEmailMessage : public CActive, public MBaseTestState
       
   681 	{
       
   682 public:
       
   683 	CCreateEmailMessage(const TMsvId& iFolderId, const TMsvId& iServiceId, const TDesC& aFileName, CEmailTestUtils& aTestUtils,TInt aHowMany=1);
       
   684 	void StartL(TRequestStatus& aStatus);
       
   685 	void RunL();
       
   686 	void DoCancel();
       
   687 	~CCreateEmailMessage();
       
   688 
       
   689 private:
       
   690 	enum TCreateEmailState
       
   691 		{
       
   692 		ECreateEmailWait1,
       
   693 		ECreateEmailWait2
       
   694 		};
       
   695 
       
   696 	TCreateEmailState iState;
       
   697 	const TMsvId& iCurrentFolderId;
       
   698 	const TMsvId& iServiceId;
       
   699 	TFileName iFileName;
       
   700 	CEmailTestUtils& iTestUtils;
       
   701 	CTestTimer* iTimer;
       
   702 	TRequestStatus* iReportStatus;
       
   703 	TInt iHowMany;
       
   704 	};
       
   705 
       
   706 //
       
   707 //
       
   708 // CCopySelection
       
   709 //
       
   710 
       
   711 class CCopySelection : public CActive, public MBaseTestState
       
   712 	{
       
   713 public:
       
   714 	CCopySelection(CMsvClientTest& aParentTestHarness);
       
   715 	void StartL(TRequestStatus& aStatus);
       
   716 	void RunL();
       
   717 	void DoCancel();
       
   718 	~CCopySelection();
       
   719 
       
   720 private:
       
   721 	CMsvClientTest& iParentTestHarness;
       
   722 	TRequestStatus* iReportStatus;
       
   723 	};
       
   724 
       
   725 
       
   726 //
       
   727 //
       
   728 // CMoveSelection
       
   729 //
       
   730 
       
   731 class CMoveSelection : public CActive, public MBaseTestState
       
   732 	{
       
   733 public:
       
   734 	CMoveSelection(CMsvClientTest& aParentTestHarness);
       
   735 	void StartL(TRequestStatus& aStatus);
       
   736 	void RunL();
       
   737 	void DoCancel();
       
   738 	~CMoveSelection();
       
   739 
       
   740 private:
       
   741 	CMsvClientTest& iParentTestHarness;
       
   742 	TRequestStatus* iReportStatus;
       
   743 	};
       
   744 
       
   745 
       
   746 
       
   747 //
       
   748 //
       
   749 // CDeleteSelection
       
   750 //
       
   751 
       
   752 class CDeleteSelection : public CActive, public MBaseTestState
       
   753 	{
       
   754 public:
       
   755 	CDeleteSelection(CMsvClientTest& aParentTestHarness);
       
   756 	void StartL(TRequestStatus& aStatus);
       
   757 	void RunL();
       
   758 	void DoCancel();
       
   759 	~CDeleteSelection();
       
   760 
       
   761 private:
       
   762 	CMsvClientTest& iParentTestHarness;
       
   763 	TRequestStatus* iReportStatus;
       
   764 	};
       
   765 
       
   766 //
       
   767 //
       
   768 // CDeleteChildren
       
   769 //
       
   770 
       
   771 class CDeleteChildren : public CActive, public MBaseTestState
       
   772 	{
       
   773 public:
       
   774 	CDeleteChildren(CMsvClientTest& aParentTestHarness, TInt aSelectedIndex);
       
   775 	void StartL(TRequestStatus& aStatus);
       
   776 	void RunL();
       
   777 	void DoCancel();
       
   778 	~CDeleteChildren();
       
   779 
       
   780 private:
       
   781 	CMsvClientTest& iParentTestHarness;
       
   782 	TRequestStatus* iReportStatus;
       
   783 	TInt iSelectedIndex;
       
   784 	};
       
   785 
       
   786 
       
   787 //
       
   788 //
       
   789 // CCreateEmailService
       
   790 //
       
   791 
       
   792 class CCreateEmailService : public CBase, public MBaseTestState
       
   793 	{
       
   794 public:
       
   795 	void StartL();
       
   796 	virtual ~CCreateEmailService();
       
   797 	TMsvEntry& Entry();
       
   798 	void SetDetailsStringL(const TDesC& aDetails);
       
   799 
       
   800 protected:
       
   801 	CCreateEmailService(CEmailClientTest& aTestHarness);
       
   802 
       
   803 protected:
       
   804 	CEmailClientTest& iTestHarness;
       
   805 	TMsvEntry iEntry;
       
   806 	HBufC* iDetails;
       
   807 	};
       
   808 
       
   809 
       
   810 //
       
   811 //
       
   812 // CSetIAPs
       
   813 //
       
   814 
       
   815 // eh xxxx, this code is now obsolete.
       
   816 // The IAP preferences should be set by the CCreateEmailService class.
       
   817 
       
   818 #ifndef _NO_IAP_PREFS
       
   819 
       
   820 class CImIAPPreferences;
       
   821 
       
   822 class CSetIAPs : public CBase, public MBaseTestState
       
   823 	{
       
   824 public:
       
   825 	static CSetIAPs* NewL(CMsvClientTest& aParentTestHarness);
       
   826 	void StartL(TRequestStatus& aStatus);
       
   827 	CImIAPPreferences& IAPPreferences();
       
   828 	~CSetIAPs();
       
   829 
       
   830 private:
       
   831 	void ConstructL();
       
   832 	CSetIAPs(CMsvClientTest& aParentTestHarness);
       
   833 
       
   834 private:
       
   835 	CMsvClientTest& iParentTestHarness;
       
   836 	CImIAPPreferences* iIAPPreferences;
       
   837 	};
       
   838 
       
   839 #endif // _NO_IAP_PREFS
       
   840 
       
   841 #endif