mmserv/tms/tmsimpl/inc/tmsg729bodyimpl.h
changeset 0 71ca22bcf22a
child 53 eabc8c503852
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_G729_FORMAT_BODY_IMPL_H
       
    19 #define TMS_G729_FORMAT_BODY_IMPL_H
       
    20 
       
    21 #include <tms.h>
       
    22 #include "tmsformatbodyimpl.h"
       
    23 #include "tmsg729formatbody.h"
       
    24 #include "tmsqueuehandler.h"
       
    25 
       
    26 namespace TMS {
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class TMSFormatObserver;
       
    30 class TMSCallProxy;
       
    31 
       
    32 // TMSG729FormatBodyImpl class
       
    33 class TMSG729FormatBodyImpl : public TMSG729FormatBody,
       
    34                               public TMSFormatBodyImpl,
       
    35                               public MQueueHandlerObserver
       
    36     {
       
    37 public:
       
    38     static gint Create(TMSG729FormatBody*& bodyimpl);
       
    39     virtual ~TMSG729FormatBodyImpl();
       
    40 
       
    41     // From TMSG729FormatBody
       
    42     virtual gint SetVADMode(const gboolean aVad);
       
    43     virtual gint GetVADMode(gboolean& aVad);
       
    44     virtual gint GetType(TMSFormatType& Formattype);
       
    45 
       
    46     // From MQueueHandlerObserver
       
    47     virtual void QueueEvent(TInt aEventType, TInt aError, void* user_data);
       
    48 
       
    49     virtual void SetProxy(TMSGlobalContext* context, gpointer queuehandler);
       
    50 
       
    51 private:
       
    52     TMSG729FormatBodyImpl();
       
    53     gint PostConstruct();
       
    54 
       
    55 private:
       
    56     TMSFormatObserver* iObserver;
       
    57     gpointer iUserData;
       
    58     TMSCallProxy* iProxy;
       
    59     TMSStreamType iStreamType;
       
    60     };
       
    61 
       
    62 } //namespace TMS
       
    63 
       
    64 #endif // TMS_G729_FORMAT_BODY_IMPL_H
       
    65 
       
    66 // End of file