email/pop3andsmtpmtm/imapservermtm/inc/IMPSUTIL.H
changeset 25 84d9eb65b26f
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
       
     1 // Copyright (c) 1998-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 // IMAP4 utils
       
    15 // 
       
    16 //
       
    17 
       
    18 #if !defined(__IMPSUTIL_H__)
       
    19 #define __IMPSUTIL_H__
       
    20 
       
    21 class CImap4Utils : public CBase
       
    22 /**
       
    23 @internalComponent
       
    24 @released
       
    25 */
       
    26 	{
       
    27 public:
       
    28 	static CImap4Utils* NewL(CMsvServerEntry* aEntry);
       
    29 	~CImap4Utils();
       
    30 	
       
    31 	// prepare the iLogMessage block with details of the next message
       
    32 	void SetUpLogMessageL(TMsvId aId);
       
    33 
       
    34 	// clear details recorded so that SendLog won't do anything
       
    35 	void ClearLogMessage();
       
    36 	
       
    37 	// log the event previously set up
       
    38 	TBool SendLogMessageL(TInt aError, TRequestStatus &aStatus);
       
    39 
       
    40 private:
       
    41 	void ConstructL(CMsvServerEntry* aEntry);
       
    42 	
       
    43 private:
       
    44 	// logging object (maybe NULL)
       
    45 	CImLogMessage*			iLogMessage;
       
    46 
       
    47 	// Access to message database
       
    48 	CMsvServerEntry*		iEntry;
       
    49 	};
       
    50 
       
    51 #endif