webengine/wmlengine/src/utils/include/ImageUtils.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2000 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 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef IMAGEUTILS_H
       
    20 #define IMAGEUTILS_H
       
    21 
       
    22 #ifdef __cplusplus
       
    23 extern "C" {
       
    24 #endif /* __cplusplus */
       
    25 
       
    26 // This enum allows the BrowserUI to display the image content-types
       
    27 // that are supported and displayable by the browser, but not recognized by
       
    28 // the SymbianOS.  These are mostly image data with no indication of their
       
    29 // content-type in their data, i.e. GIF files have "GIF89" as the first
       
    30 // few bytes in the data.
       
    31 // ERecognizedImage:  SymbianOS recognizes the image content-type and no
       
    32 // special handling is required.
       
    33 // EUnsupportedImage:  The browser and SymbianOS doesn't support this
       
    34 // image and it will not display it.
       
    35 // EWbmpImage, EOtaImage, etc: These are images that we support and display, 
       
    36 // but SymbianOS doesn't recognize, so we set this marker for special handling.
       
    37 typedef enum
       
    38     {
       
    39     ERecognizedImage = 0,
       
    40     EUnsupportedImage,
       
    41     EWbmpImage,
       
    42     EOtaImage
       
    43     } TImageType;
       
    44 
       
    45 
       
    46 TImageType GetRecognizedImageType(const char* aContentTypeString);
       
    47 
       
    48 
       
    49 #ifdef __cplusplus
       
    50 } // extern "C" {
       
    51 #endif /* __cplusplus */
       
    52 
       
    53 
       
    54 #endif /* IMAGEUTILS_H */