IMPSengine/imapi/Inc/apiutils.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Utils for IM api.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef IMAPI_APIUTILS_H
       
    21 #define IMAPI_APIUTILS_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <E32STD.H>
       
    25 #include <flogger.h>
       
    26 
       
    27 // CONSTANTS
       
    28 _LIT( KTxtImOpenApiPanic, "ImOpenApi" ); // Panic category
       
    29 _LIT( KImOpenAppID, "OpenApiID" ); // The application id used if not found in setttings
       
    30 
       
    31 
       
    32 
       
    33 // DATA TYPES
       
    34 // Panic codes
       
    35 enum TPanic
       
    36     {
       
    37     EListCorrupted = 0,
       
    38     EListNotEmpty = 1,
       
    39     ENullNotifyHandler = 2
       
    40     };
       
    41 //////////////////////////////////////////////////////////////////////////
       
    42 
       
    43 // CLASS DECLARATION
       
    44 /**
       
    45 *  Debug log writer
       
    46 *
       
    47 *  @since Series 60 3.0
       
    48 */
       
    49 class CImApiLogger : public CBase
       
    50     {
       
    51     public: // New functions
       
    52 
       
    53         /**
       
    54         * Writes log to log file
       
    55         * @since S60 3.0
       
    56         * @param
       
    57         * @return
       
    58         */
       
    59         static void Log( TRefByValue<const TDesC> aFmt, ... );
       
    60         virtual ~CImApiLogger();
       
    61 
       
    62     };
       
    63 
       
    64 // CLASS DECLARATION
       
    65 /**
       
    66 *  SAP settings reader class
       
    67 *  Gets the Client ID from the settings
       
    68 *
       
    69 *  @since Series 60 3.0
       
    70 */
       
    71 
       
    72 class SSapSettingsReader
       
    73     {
       
    74     public:
       
    75         // Gets the Client ID which was associated with the given SAP URL
       
    76         static const TDesC* ClientIdLC( const TDesC& aSapUrl );
       
    77     protected:
       
    78     private:
       
    79     };
       
    80 
       
    81 #endif      // IMAPI_APIUTILS_H   
       
    82 
       
    83 // End of File