mmappfw_plat/qt_telephony_multimedia_service_api/inc/qtmsclientsource.h
changeset 44 d141fc1ad77b
parent 27 cbb1bfb7ebfb
child 50 762d760dcfdf
equal deleted inserted replaced
43:7b58e65d61ee 44:d141fc1ad77b
    16  */
    16  */
    17 
    17 
    18 #ifndef QTMS_CLIENT_SOURCE_H
    18 #ifndef QTMS_CLIENT_SOURCE_H
    19 #define QTMS_CLIENT_SOURCE_H
    19 #define QTMS_CLIENT_SOURCE_H
    20 
    20 
       
    21 #include <QObject>
    21 #include <qtms.h>
    22 #include <qtms.h>
       
    23 #include <qtmsbuffer.h>
    22 #include <qtmssource.h>
    24 #include <qtmssource.h>
    23 #include <QObject>
       
    24 #include "qtmswrapperexport.h"
    25 #include "qtmswrapperexport.h"
    25 
    26 
    26 // FORWARD DECLARATIONS
    27 // FORWARD DECLARATIONS
    27 namespace TMS {
    28 namespace TMS {
    28 class TMSSource;
    29 class TMSSource;
    29 class TMSBuffer;
       
    30 }
    30 }
    31 
    31 
    32 namespace QTMS {
    32 namespace QTMS {
    33 
    33 
    34 /**
    34 /**
    66      *
    66      *
    67      * @return
    67      * @return
    68      *      Status of the operation.
    68      *      Status of the operation.
    69      *
    69      *
    70      */
    70      */
    71     gint BufferFilled(TMS::TMSBuffer& buffer);
    71     gint BufferFilled(QTMSBuffer& buffer);
    72 
    72 
    73     /**
    73     /**
    74      * In the PUSH MODE, tell the source that the supplied buffer filled in
    74      * In the PUSH MODE, tell the source that the supplied buffer filled in
    75      * with data should be queued before being sent for processing by the
    75      * with data should be queued before being sent for processing by the
    76      * server. All ProcessBuffer requests will be queued until client calls
    76      * server. All ProcessBuffer requests will be queued until client calls
    81      *
    81      *
    82      * @param  buffer
    82      * @param  buffer
    83      *      The buffer with audio data supplied by the client for playback.
    83      *      The buffer with audio data supplied by the client for playback.
    84      *
    84      *
    85      */
    85      */
    86     gint ProcessBuffer(TMS::TMSBuffer* buffer);
    86     gint ProcessBuffer(QTMSBuffer* buffer);
    87 
    87 
    88     /**
    88     /**
    89      * PUSH MODE ONLY
    89      * PUSH MODE ONLY
    90      *
    90      *
    91      * Tell the QTMS framework to queue ProcessBuffer events. To request the
    91      * Tell the QTMS framework to queue ProcessBuffer events. To request the
   150      *
   150      *
   151      */
   151      */
   152     virtual gint GetType(QTMSSourceType& sourcetype);
   152     virtual gint GetType(QTMSSourceType& sourcetype);
   153 
   153 
   154     Q_SIGNALS:
   154     Q_SIGNALS:
   155     void FillBuffer(TMS::TMSBuffer& buffer);
   155     void FillBuffer(QTMSBuffer& buffer);
   156     void BufferProcessed(const TMS::TMSBuffer* buffer, gint reason);
   156     void BufferProcessed(const QTMSBuffer* buffer, gint reason);
   157 
   157 
   158 protected:
   158 protected:
   159     /**
   159     /**
   160      * Constructor
   160      * Constructor
   161      */
   161      */