mmappfw_plat/qt_telephony_multimedia_service_api/inc/qtmsbuffer.h
changeset 32 edd273b3192a
parent 27 cbb1bfb7ebfb
child 40 4a1905d205a2
equal deleted inserted replaced
27:cbb1bfb7ebfb 32:edd273b3192a
    45      *
    45      *
    46      * @return
    46      * @return
    47      *      QTMS_RESULT_SUCCESS if the operation was successful.
    47      *      QTMS_RESULT_SUCCESS if the operation was successful.
    48      *
    48      *
    49      */
    49      */
    50     virtual gint GetType(QTMSBufferType& buftype)=0;
    50     virtual gint GetType(QTMSBufferType& buftype) = 0;
    51 
    51 
    52     /**
    52     /**
    53      * Returns time stamp of the buffer so that the framework can determine
    53      * Returns time stamp of the buffer so that the framework can determine
    54      * the time at which this buffer has to be rendered by the output device
    54      * the time at which this buffer has to be rendered by the output device
    55      * sink.
    55      * sink.
    59      *
    59      *
    60      * @return
    60      * @return
    61      *      QTMS_RESULT_SUCCESS if the operation was successful.
    61      *      QTMS_RESULT_SUCCESS if the operation was successful.
    62      *
    62      *
    63      */
    63      */
    64     virtual gint GetTimeStamp(guint64& ts)=0;
    64     virtual gint GetTimeStamp(guint64& ts) = 0;
    65 
    65 
    66     /**
    66     /**
    67      * Sets the time stamp on the Buffer so that the framework can determine
    67      * Sets the time stamp on the Buffer so that the framework can determine
    68      * the time at which this buffer has to be rendered by the output device
    68      * the time at which this buffer has to be rendered by the output device
    69      * sink.
    69      * sink.
    73      *
    73      *
    74      * @return
    74      * @return
    75      *      QTMS_RESULT_SUCCESS if the operation was successful.
    75      *      QTMS_RESULT_SUCCESS if the operation was successful.
    76      *
    76      *
    77      */
    77      */
    78     virtual gint SetTimeStamp(const guint64 ts) =0;
    78     virtual gint SetTimeStamp(const guint64 ts) = 0;
    79 
    79 
    80     /**
    80     /**
    81      * Returns size of data in the buffer.
    81      * Returns size of data in the buffer.
    82      *
    82      *
    83      * @param  size
    83      * @param  size
    85      *
    85      *
    86      * @return
    86      * @return
    87      *      QTMS_RESULT_SUCCESS if the operation was successful.
    87      *      QTMS_RESULT_SUCCESS if the operation was successful.
    88      *
    88      *
    89      */
    89      */
    90     virtual gint GetDataSize(guint& size)=0;
    90     virtual gint GetDataSize(guint& size) = 0;
    91 
    91 
    92     /**
    92     /**
    93      * Set size of data in the buffer after filling in by the client.
    93      * Set size of data in the buffer after filling in by the client.
    94      *
    94      *
    95      * @param  size
    95      * @param  size
    97      *
    97      *
    98      * @return
    98      * @return
    99      *      QTMS_RESULT_SUCCESS if the operation was successful.
    99      *      QTMS_RESULT_SUCCESS if the operation was successful.
   100      *
   100      *
   101      */
   101      */
   102     virtual gint SetDataSize(const guint size)=0;
   102     virtual gint SetDataSize(const guint size) = 0;
   103 
   103 
   104     /**
   104     /**
   105      * Return pointer to the memory location of the data associated with this
   105      * Return pointer to the memory location of the data associated with this
   106      * buffer.
   106      * buffer.
   107      *
   107      *
   110      *
   110      *
   111      * @return
   111      * @return
   112      *      QTMS_RESULT_SUCCESS if the operation was successful.
   112      *      QTMS_RESULT_SUCCESS if the operation was successful.
   113      *
   113      *
   114      */
   114      */
   115     virtual gint GetDataPtr(guint8*& bufptr) =0;
   115     virtual gint GetDataPtr(guint8*& bufptr) = 0;
   116     };
   116     };
   117 
   117 
   118 } //namespace QTMS
   118 } //namespace QTMS
   119 
   119 
   120 #endif //QTMS_BUFFER_H
   120 #endif //QTMS_BUFFER_H