email/pop3andsmtpmtm/clientmtms/inc/ImapConnectionObserver.H
author Simon Howkins <simonh@symbian.org>
Mon, 22 Nov 2010 17:05:03 +0000
branchRCL_3
changeset 83 26c290f28dd1
parent 0 72b543305e3a
permissions -rw-r--r--
Removed duplicate instructions for creating some messaging MIFs

// Copyright (c) 1999-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:
//

#if !defined(__IMAPCONNECTIONOBSERVER_H__)
#define __IMAPCONNECTIONOBSERVER_H__

/** IMAP4 connection observer events.

@see MMsvImapConnectionObserver 
@publishedAll
@released
*/
enum TImapConnectionEvent
	{
	/** Connecting to server. */
	EConnectingToServer,
	/** Synchronising folder list. */
	ESynchronisingFolderList,
	/** Synchronising inbox. */
	ESynchronisingInbox,
	/** Synchronising folders. */
	ESynchronisingFolders,
	/** Synchronisation complete. */
	ESynchronisationComplete,
	/** Disconnecting. */
	EDisconnecting,
	/** Connection completed. */
	EConnectionCompleted
	};

//	Mix-in class to allow observation of the stages of an IMAP operation
//
class MMsvImapConnectionObserver
/** Abstract base class used for IMAP4 connection observation. 

A derived class to handle IMAP4 connection events should override the HandleImapConnectionEvent() 
member function. 

Objects that implement this interface are passed as a packaged parameter 
to CImap4ClientMtm::InvokeAsyncFunctionL() when a connection command is issued.
 
@publishedAll
@released

@see TImap4Cmds
*/
	{
public:
	/** Called when a connection event occurs.
	
	@param aConnectionState Connection event */
	virtual void HandleImapConnectionEvent(TImapConnectionEvent aConnectionState)=0;
	};

#endif