mmserv/tms/tmsimpl/inc/tmsclientsinkbodyimpl.h
changeset 0 71ca22bcf22a
child 25 6f7ceef7b1d1
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2  * Copyright (c) 2009 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 "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: Telephony Multimedia Service
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef TMS_CLIENT_SINK_BODY_IMPL_H
       
    19 #define TMS_CLIENT_SINK_BODY_IMPL_H
       
    20 
       
    21 #include <tms.h>
       
    22 #include "tmsclientsinkbody.h"
       
    23 #include "tmsqueuehandler.h"
       
    24 
       
    25 namespace TMS {
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class TMSClientSinkObserver;
       
    29 class TMSBuffer;
       
    30 class TMSCallProxy;
       
    31 
       
    32 // TMSClientSinkBodyImpl class
       
    33 class TMSClientSinkBodyImpl : public TMSClientSinkBody,
       
    34                               public MQueueHandlerObserver
       
    35     {
       
    36 public:
       
    37     static gint Create(TMSClientSinkBody*& bodyimpl);
       
    38     // From TMSClientSinkBody begins
       
    39 
       
    40     virtual ~TMSClientSinkBodyImpl();
       
    41 
       
    42     virtual gint AddObserver(TMSClientSinkObserver& obsrvr,
       
    43             gpointer user_data);
       
    44 
       
    45     virtual gint RemoveObserver(TMSClientSinkObserver& obsrvr);
       
    46 
       
    47     // Push mode
       
    48     virtual gint BufferProcessed(TMSBuffer* buffer);
       
    49 
       
    50     virtual gint GetType(TMSSinkType& sinktype);
       
    51 
       
    52     // From TMSClientSinkBody ends
       
    53 
       
    54     // From MQueueHandlerObserver starts
       
    55     virtual void QueueEvent(TInt aEventType, TInt aError, void* user_data);
       
    56     // From MQueueHandlerObserver ends
       
    57 
       
    58     void SetProxy(TMSCallProxy* aProxy, gpointer queuehandler);
       
    59 
       
    60 private:
       
    61     TMSClientSinkBodyImpl();
       
    62     gint PostConstruct();
       
    63 
       
    64 private:
       
    65     TMSClientSinkObserver* iObserver;
       
    66     gpointer iUserData;
       
    67     TMSCallProxy* iProxy;
       
    68     };
       
    69 
       
    70 } //namespace TMS
       
    71 
       
    72 #endif // TMS_CLIENT_SINK_BODY_IMPL_H
       
    73 
       
    74 // End of file