mmserv/tms/tmsimpl/inc/tmsamrbodyimpl.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_AMR_FORMAT_BODY_IMPL_H
       
    19 #define TMS_AMR_FORMAT_BODY_IMPL_H
       
    20 
       
    21 #include <tms.h>
       
    22 #include "tmsformatbodyimpl.h"
       
    23 #include "tmsamrformatbody.h"
       
    24 #include "tmsqueuehandler.h"
       
    25 
       
    26 namespace TMS {
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class TMSFormatObserver;
       
    30 class TMSCallProxy;
       
    31 
       
    32 // Class declaration
       
    33 class TMSAMRFormatBodyImpl : public TMSAMRFormatBody,
       
    34                              public TMSFormatBodyImpl,
       
    35                              public MQueueHandlerObserver
       
    36     {
       
    37 public:
       
    38     static gint Create(TMSAMRFormatBody*& bodyimpl);
       
    39     virtual ~TMSAMRFormatBodyImpl();
       
    40 
       
    41     // From TMSAMRFormatBody begins
       
    42     virtual gint GetType(TMSFormatType& Formattype);
       
    43     // From TMSAMRFormatBody ends
       
    44 
       
    45     // From MQueueHandlerObserver starts
       
    46     virtual void QueueEvent(TInt aEventType, TInt aError, void* user_data);
       
    47     // From MQueueHandlerObserver ends
       
    48 
       
    49     virtual void SetProxy(TMSGlobalContext* context, gpointer queuehandler);
       
    50 
       
    51 private:
       
    52     TMSAMRFormatBodyImpl();
       
    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_AMR_FORMAT_BODY_IMPL_H
       
    65 
       
    66 // End of file