diff -r 6ca72c0fe49a -r a941bc465d9f IMPSengine/imapi/Inc/apiutils.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/IMPSengine/imapi/Inc/apiutils.h Wed Sep 01 12:31:13 2010 +0100 @@ -0,0 +1,83 @@ +/* +* Copyright (c) 2005 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: Utils for IM api. +* +*/ + + + +#ifndef IMAPI_APIUTILS_H +#define IMAPI_APIUTILS_H + +// INCLUDES +#include +#include + +// CONSTANTS +_LIT( KTxtImOpenApiPanic, "ImOpenApi" ); // Panic category +_LIT( KImOpenAppID, "OpenApiID" ); // The application id used if not found in setttings + + + +// DATA TYPES +// Panic codes +enum TPanic + { + EListCorrupted = 0, + EListNotEmpty = 1, + ENullNotifyHandler = 2 + }; +////////////////////////////////////////////////////////////////////////// + +// CLASS DECLARATION +/** +* Debug log writer +* +* @since Series 60 3.0 +*/ +class CImApiLogger : public CBase + { + public: // New functions + + /** + * Writes log to log file + * @since S60 3.0 + * @param + * @return + */ + static void Log( TRefByValue aFmt, ... ); + virtual ~CImApiLogger(); + + }; + +// CLASS DECLARATION +/** +* SAP settings reader class +* Gets the Client ID from the settings +* +* @since Series 60 3.0 +*/ + +class SSapSettingsReader + { + public: + // Gets the Client ID which was associated with the given SAP URL + static const TDesC* ClientIdLC( const TDesC& aSapUrl ); + protected: + private: + }; + +#endif // IMAPI_APIUTILS_H + +// End of File