messagingappbase/msgavkon/Initialise/inc/init.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002 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:  init  declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __INIT_H_
       
    22 #define __INIT_H__
       
    23 
       
    24 #include <eikenv.h>
       
    25 #include <eikappui.h>
       
    26 
       
    27 #ifdef _DEBUG
       
    28 _LIT(KInitLoggerBanner, "MailInit -> %S");
       
    29 #define INITLOGGER(a)                   {_LIT(temp, a); RDebug::Print(KInitLoggerBanner, &temp);}
       
    30 #define INITLOGGER_NUMBER(a)            {TBuf<20> num; num.Num(a); RDebug::Print(KInitLoggerBanner, &num);}
       
    31 #define INITLOGGER_WRITE_FORMAT(a,b)    {_LIT(temp, a); TBuf<256> buf; buf.Format(temp, b); RDebug::Print(KInitLoggerBanner, &buf);}
       
    32 #define INITLOGGER_WRITE_FORMAT2(a,b,c)    {_LIT(temp, a); TBuf<256> buf; buf.Format(temp, b, c); RDebug::Print(KInitLoggerBanner, &buf);}
       
    33 #else
       
    34 #define INITLOGGER(a)       
       
    35 #define INITLOGGER_NUMBER(a)    
       
    36 #define INITLOGGER_WRITE_FORMAT(a,b)
       
    37 #define INITLOGGER_WRITE_FORMAT2(a,b,c) 
       
    38 #endif
       
    39 
       
    40 /**
       
    41 * CMailInitAppUi class
       
    42 */
       
    43 class CMailInitAppUi : public CEikAppUi
       
    44     {
       
    45     public:
       
    46         /**
       
    47         * Destructor
       
    48         */
       
    49         ~CMailInitAppUi();
       
    50 
       
    51         /**
       
    52         * Symbian constructor
       
    53         */
       
    54         void ConstructL();
       
    55     };
       
    56 
       
    57 /**
       
    58 * CMailInitServerEnv
       
    59 */ 
       
    60 class CMailInitServerEnv : public CEikonEnv
       
    61     {
       
    62     public:
       
    63         /**
       
    64         * From CEikonEnv
       
    65         */
       
    66         void DestroyEnvironment();
       
    67 
       
    68         /**
       
    69         * Symbian constructor
       
    70         */
       
    71         void ConstructL();
       
    72 
       
    73     };
       
    74 
       
    75 
       
    76 
       
    77 enum TMailInitPanic{EMailInitPanicStartAllocEnv,
       
    78                     EMailInitPanicStartAllocAppUi,
       
    79                     EMailInitPanicStartConstructL,
       
    80                     EMailInitPanicStartAllocCleanupStack,
       
    81                     EMailInitPanicWinsLoadLibrary,
       
    82                     EMailInitisationFailed};
       
    83 
       
    84 GLREF_C void Panic(TMailInitPanic);
       
    85 
       
    86 #endif
       
    87 // End of file