mmserv/tms/tmsimpl/inc/tmsdtmfbodyimpl.h
changeset 12 5a06f39ad45b
child 20 b67dd1fc57c5
equal deleted inserted replaced
0:71ca22bcf22a 12:5a06f39ad45b
       
     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_DTMF_BODY_IMPL_H
       
    19 #define TMS_DTMF_BODY_IMPL_H
       
    20 
       
    21 #include <tms.h>
       
    22 #include "tmsdtmfbody.h"
       
    23 #include "tmsclientserver.h"
       
    24 
       
    25 namespace TMS {
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class TMSDTMFObserver;
       
    29 class TMSDTMF;
       
    30 class TMSProxy;
       
    31 
       
    32 // TMSDTMFBodyImpl class
       
    33 class TMSDTMFBodyImpl : public TMSDTMFBody
       
    34     {
       
    35 public:
       
    36     static gint Create(TMSStreamType streamtype, TMSDTMFBody*& bodyimpl);
       
    37     virtual ~TMSDTMFBodyImpl();
       
    38 
       
    39     // From TMSDTMFBody begins
       
    40     virtual gint AddObserver(TMSDTMFObserver& obsrvr, gpointer user_data);
       
    41     virtual gint RemoveObserver(TMSDTMFObserver& obsrvr);
       
    42     virtual gint Start();
       
    43     virtual gint Stop();
       
    44     virtual gint SetTone(GString* string);
       
    45     virtual gint ContinueDTMFStringSending(gboolean aContinue);
       
    46 
       
    47     void SetParent(TMSDTMF*& parent);
       
    48 
       
    49 private:
       
    50     TMSDTMFBodyImpl();
       
    51     gint PostConstruct();
       
    52 
       
    53 private:
       
    54     TMSDTMFObserver* iObserver;
       
    55     gint iClientId;
       
    56     gpointer iUserData;
       
    57     TMSProxy* iProxy;
       
    58     TMSDTMF* iParent;
       
    59     GString* iString;
       
    60     TMSStreamType iStreamType;
       
    61     };
       
    62 
       
    63 } //namespace TMS
       
    64 
       
    65 #endif // TMS_DTMF_BODY_IMPL_H
       
    66