// MTUIUTIL.H
//
// Copyright (C) Symbian Ltd 1998
//

#if !defined(__MTUIUTIL_H__)
#define __MTUIUTIL_H__

// Specific includes
#if !defined(__MSVIPC_H__)
#include <MSVIPC.H>
#endif

// Forward declarations
class CMsvSession;


class MtuiUtils
	{
public:
	IMPORT_C static TMsvLocalOperationProgress ChangeLocalEntrySynchronouslyL(CMsvEntry& aOldEntry, const TMsvEntry& aEntry);
	IMPORT_C static TMsvLocalOperationProgress CreateLocalEntrySynchronouslyL(CMsvEntry& aParent, const TMsvEntry& aEntry);
	IMPORT_C static void DeleteLocalEntrySynchronouslyL(CMsvEntry& aParent, TMsvId anId);
	IMPORT_C static CMsvEntrySelection* GetListOfAccountsL(CMsvSession& aSession);
	IMPORT_C static CMsvEntrySelection* GetListOfAccountsWithMTML(CMsvSession& aSession, TUid aMtm);
	IMPORT_C static TMsvId DefaultServiceForMTML(CMsvSession& aSession, TUid aMtm, TBool aFindFirstServiceIfNoDefault);
private:
	static CMsvEntrySelection* DoGetListOfAccountsL(CMsvSession& aSession, TUid aMtm);
	};

#endif //__MTUIUTIL_H__