mmserv/tms/tmsimpl/inc/tmsclientsinkbodyimpl.h
changeset 25 6f7ceef7b1d1
parent 0 71ca22bcf22a
equal deleted inserted replaced
21:2ed61feeead6 25:6f7ceef7b1d1
    25 namespace TMS {
    25 namespace TMS {
    26 
    26 
    27 // FORWARD DECLARATIONS
    27 // FORWARD DECLARATIONS
    28 class TMSClientSinkObserver;
    28 class TMSClientSinkObserver;
    29 class TMSBuffer;
    29 class TMSBuffer;
       
    30 class TMSGlobalContext;
    30 class TMSCallProxy;
    31 class TMSCallProxy;
    31 
    32 
    32 // TMSClientSinkBodyImpl class
    33 // TMSClientSinkBodyImpl class
    33 class TMSClientSinkBodyImpl : public TMSClientSinkBody,
    34 class TMSClientSinkBodyImpl : public TMSClientSinkBody,
    34                               public MQueueHandlerObserver
    35                               public MQueueHandlerObserver
    35     {
    36     {
    36 public:
    37 public:
    37     static gint Create(TMSClientSinkBody*& bodyimpl);
    38     static gint Create(TMSClientSinkBody*& bodyimpl);
    38     // From TMSClientSinkBody begins
       
    39 
    39 
    40     virtual ~TMSClientSinkBodyImpl();
    40     virtual ~TMSClientSinkBodyImpl();
    41 
    41 
    42     virtual gint AddObserver(TMSClientSinkObserver& obsrvr,
    42     virtual gint AddObserver(TMSClientSinkObserver& obsrvr,
    43             gpointer user_data);
    43             gpointer user_data);
    47     // Push mode
    47     // Push mode
    48     virtual gint BufferProcessed(TMSBuffer* buffer);
    48     virtual gint BufferProcessed(TMSBuffer* buffer);
    49 
    49 
    50     virtual gint GetType(TMSSinkType& sinktype);
    50     virtual gint GetType(TMSSinkType& sinktype);
    51 
    51 
    52     // From TMSClientSinkBody ends
       
    53 
       
    54     // From MQueueHandlerObserver starts
    52     // From MQueueHandlerObserver starts
    55     virtual void QueueEvent(TInt aEventType, TInt aError, void* user_data);
    53     virtual void QueueEvent(TInt aEventType, TInt aError, void* user_data);
    56     // From MQueueHandlerObserver ends
       
    57 
    54 
    58     void SetProxy(TMSCallProxy* aProxy, gpointer queuehandler);
    55     void SetProxy(TMSGlobalContext* context, gpointer queuehandler);
    59 
    56 
    60 private:
    57 private:
    61     TMSClientSinkBodyImpl();
    58     TMSClientSinkBodyImpl();
    62     gint PostConstruct();
    59     gint PostConstruct();
    63 
    60 
    64 private:
    61 private:
    65     TMSClientSinkObserver* iObserver;
    62     TMSClientSinkObserver* iObserver;
    66     gpointer iUserData;
    63     gpointer iUserData;
       
    64     TMSGlobalContext* iContext;
    67     TMSCallProxy* iProxy;
    65     TMSCallProxy* iProxy;
    68     };
    66     };
    69 
    67 
    70 } //namespace TMS
    68 } //namespace TMS
    71 
    69