os/graphics/graphicscomposition/openwfcompositionengine/adaptation/include/owfnotifications.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2  * 
     3  * Permission is hereby granted, free of charge, to any person obtaining a
     4  * copy of this software and/or associated documentation files (the
     5  * "Materials"), to deal in the Materials without restriction, including
     6  * without limitation the rights to use, copy, modify, merge, publish,
     7  * distribute, sublicense, and/or sell copies of the Materials, and to
     8  * permit persons to whom the Materials are furnished to do so, subject to
     9  * the following conditions:
    10  * 
    11  * The above copyright notice and this permission notice shall be included
    12  * in all copies or substantial portions of the Materials.
    13  * 
    14  * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    15  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    16  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    17  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    18  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    19  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    20  * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
    21  * 
    22  * Description:
    23  * Symbian notifications
    24  */
    25 
    26 
    27 #ifdef __cplusplus
    28 extern "C" {
    29 #endif
    30 
    31 /*!
    32  *  \brief Initialises the Symbian specific device data, including
    33  *  the SUS observers
    34  *
    35  *  \param source the source to be initialised
    36  *  \return OWF_TRUE id successfull
    37  */
    38 OWF_API_CALL OWFboolean
    39 owfSymDeviceInitialise(WFC_IMAGE_PROVIDER* source);
    40 
    41 /*!
    42  *  \brief Destroys the Symbian specific device data, including
    43  *  the SUS observers
    44  *
    45  *  \param device the device to be destroyed
    46  *  \param source the source to be initialised
    47  *  \param position in the device list
    48  */
    49 OWF_API_CALL void
    50 owfSymDeviceDestroy(WFC_DEVICE* device, WFC_IMAGE_PROVIDER* source, WFCint position);
    51 
    52 /*!
    53  *  \brief Notifies the stream associated with element that the read buffer has been aquired
    54  *
    55  *  Used to solve the initial availabilty request
    56  *
    57  *  \param context The context corresponding to the ongoing composition
    58  *  \param element The element that composition has just started for
    59  *
    60  *  \return OWF_TRUE id successfull
    61  */
    62 OWF_API_CALL OWFboolean
    63 owfSymElementNotifications(WFC_CONTEXT* context, WFC_ELEMENT* element);
    64 
    65 /*!
    66  *  \brief Resets the visibility state associated with each source
    67  *
    68  *  Used after each commit
    69  *
    70  *  \param context The context
    71  */
    72 OWF_API_CALL void
    73 owfSymDeviceResetVisibilityState(WFC_CONTEXT* context);
    74 
    75 /*!
    76  *  \brief Processes all notifications for a context immediately after the context has been composed 
    77  *
    78  *  \param context The context coresponding to the caller composer
    79  */
    80 OWF_API_CALL WFCint
    81 owfSymProcessAllNotifications(WFC_CONTEXT* context);
    82 
    83 #ifdef __cplusplus
    84 }
    85 #endif