diff -r ebe688cedc25 -r 7fdbb852d323 email/imum/Mtms/Inc/MsvEmailConnectionProgressProvider.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/email/imum/Mtms/Inc/MsvEmailConnectionProgressProvider.h Wed Sep 01 12:31:54 2010 +0100 @@ -0,0 +1,78 @@ +/* +* Copyright (c) 2006 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: MsvEmailConnectionProgressProvider.h +* +* +*/ + + +// Email Connection Related Utilities + +#ifndef __MSVEMAILCONNECTIONPROGRESSPROVIDER_H__ +#define __MSVEMAILCONNECTIONPROGRESSPROVIDER_H__ + +#include +#include +#include // CImumInternalApi +#include "Imas.hrh" // For KImasPasswordLength, KImasImailServiceNameLength + + +// +// TMsvEmailConnectionProgress +// +// Email connection progress struct. +// Provides additional state information on the connection, beyond that provided +// by messaging GT components. +// +class TMsvEmailConnectionProgress + { + public: + enum TConnectState + { + EInitialising, + EConnectNetwork, + EConnectMailbox + }; + public: + TInt iType; + TInt iErrorCode; + TMsvId iService; + TConnectState iState; + TBuf<50> iName; + }; + + +// +// CMsvEmailConnectionProgressProvider +// +// Provides progress for a connection. +// Intended to be owned by a connection operation, such that it is destroyed, when no longer needed. +// +class CMsvEmailConnectionProgressProvider : public CBase + { + public: + static CMsvEmailConnectionProgressProvider* NewL( + const TDesC& aIapName, TMsvId aService); + virtual ~CMsvEmailConnectionProgressProvider(); + const TDesC8& GetConnectionProgressL(TInt aErrorCode=KErrNone); + private: + CMsvEmailConnectionProgressProvider(const TDesC& aIapName, + TMsvId aService); + private: +// RGenericAgent iGenericAgent; + TPckgBuf iProgressBuf; + }; + + +#endif // __MSVEMAILCONNECTIONPROGRESSPROVIDER_H__