imgtools/imglib/filesystem/include/messagehandler.h
changeset 0 044383f39525
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     1 /*
       
     2 * Copyright (c) 2006-2009 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 the License "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: 
       
    15 * Message Handler Class for FileSystem component
       
    16 * @internalComponent
       
    17 * @released
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #ifndef MESSAGEHANDLER_H
       
    23 #define MESSAGEHANDLER_H
       
    24 
       
    25 #include "messageimplementation.h"
       
    26 
       
    27 /**
       
    28 Class for Message Handler which will be used for getting instance of Message Implementation
       
    29 and start logging, creating message file, initializing messages.
       
    30 
       
    31 @internalComponent
       
    32 @released
       
    33 */
       
    34 class MessageHandler
       
    35 {
       
    36     public:
       
    37 		static Message *GetInstance();
       
    38 		static void CleanUp();
       
    39 		static void StartLogging(char *filename);
       
    40 		static void CreateMessageFile(char *fileName);
       
    41 		static void ReportMessage(int aMsgType, int aMsgIndex,char* aName);
       
    42 
       
    43     private:
       
    44 		static Message* iInstance;
       
    45 };
       
    46 
       
    47 #endif //MESSAGEHANDLER_H