email/imap4mtm/imaptransporthandler/inc/mconnectionprefsprovider.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 14 Sep 2010 21:11:56 +0300
branchRCL_3
changeset 28 fc3320e39880
parent 0 72b543305e3a
permissions -rw-r--r--
Revision: 201033 Kit: 201035

// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

#ifndef __MCONNECTIONPREFSPROVIDER_H__
#define __MCONNECTIONPREFSPROVIDER_H__

#include <e32std.h>

// Forward declarations
class RConnection;

/**
The MConnectionPrefsProvider class provides accessors to
connection preferences.

@internalTechnology
@prototype
*/
class MConnectionPrefsProvider
	{
public:
	/**
	Supply the comms connection
	@param aSocketServerHandle the handle to the socket server.
	@param aConnectionPtr The network connection
	@return Boolean value stating whether comms connection supplied.
	*/
	virtual TBool SupplyCommsConnection(TInt& aSocketServerHandle, RConnection*& aConnectionPtr) =0;
	/**
	Set the comms connection.
	@param aSocketServerHandle The handle to the socket server.
	@param aConnectionPtr The network connection.
	*/
	virtual void SetCommsConnectionL(TInt aSocketServerHandle, RConnection*& aConnectionPtr) =0;
	/**
	Provide security preferences
	@param aDialogPrompt The dialog prompt for security dialogs.
	*/
	virtual void GetSecurityPrefs(TBool& aDialogPrompt) =0;
	};

#endif	// __MCONNECTIONPREFSPROVIDER_H__