messagingfw/msgtest/testutils/MsgTestUtilServer/inc/MessagingTestUtility.h
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     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 //
       
    15 
       
    16 #ifndef __MESSAGINGTESTUTILITY_H__
       
    17 #define __MESSAGINGTESTUTILITY_H__
       
    18 
       
    19 #include <e32std.h>
       
    20 
       
    21 //DeleteMessageStore headers:
       
    22 #include <msvstd.h>
       
    23 
       
    24 //GetDir headers:
       
    25 #include <f32file.h>
       
    26 
       
    27 _LIT(KTestServerName,"!MessagingTestUtilityServer");
       
    28 _LIT(KTestServerImg,"MessagingTestUtilityServer");		// EXE name
       
    29 
       
    30 
       
    31 class RMessagingTestUtilityServer : public RSessionBase
       
    32 	{
       
    33 public:
       
    34 	IMPORT_C TInt Connect();
       
    35 	IMPORT_C TInt DeleteMessageStore(const TMsvId aMsvId);
       
    36 	IMPORT_C TInt KillProcess(const TProcessId aProcessId);
       
    37 	IMPORT_C TInt CopyFile(const TDesC& aSrc, const TDesC& aDest); 
       
    38 	IMPORT_C TInt DeleteFile(const TDesC& aPath); 
       
    39 	IMPORT_C TInt MkDir(const TDesC& aPath); 
       
    40 	IMPORT_C TInt RmDir(const TDesC& aPath);
       
    41 	IMPORT_C TInt GetDirL(const TDesC& aPath, const TUint aEntryAttMask,const TUint aEntrySortKey, CDir*& aDir);
       
    42 	IMPORT_C TBool FileExists(const TDesC& aFileName);
       
    43 	};
       
    44 
       
    45 
       
    46 enum TMessagingTestUtilityService 
       
    47 	{
       
    48 	EDeleteMessageStore,
       
    49 	EKillProcess,
       
    50 	ECopyFile,
       
    51 	EDeleteFile,
       
    52 	EMkDir,
       
    53 	ERmDir,
       
    54 	EGetDir,
       
    55 	EGetDirCount,
       
    56 	EGetDirEntry,
       
    57 	EFileExists,
       
    58 	};
       
    59 
       
    60 class CDirDerived : public CDir
       
    61 	{
       
    62 public:
       
    63 		static CDirDerived* NewL();
       
    64 		void AddL(const TEntry& aEntry);
       
    65 	};
       
    66 
       
    67 #endif //__MESSAGINGTESTUTILITY_H__