mmserv/tms/tmsimpl/inc/tmsvolumeeffectbodyimpl.h
changeset 0 71ca22bcf22a
child 10 3d8c721bf319
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_VOLUME_EFFECT_BODY_IMPL_H
       
    19 #define TMS_VOLUME_EFFECT_BODY_IMPL_H
       
    20 
       
    21 #include <tms.h>
       
    22 #include "tmsvolumeeffectbody.h"
       
    23 #include "tmsqueuehandler.h"
       
    24 
       
    25 namespace TMS {
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class TMSEffectObserver;
       
    29 class TMSCallProxy;
       
    30 class TMSEffect;
       
    31 
       
    32 // TMSVolumeEffectBodyImpl class
       
    33 class TMSVolumeEffectBodyImpl : public TMSVolumeEffectBody,
       
    34                                 public MQueueHandlerObserver
       
    35     {
       
    36 public:
       
    37     static gint Create(TMSVolumeEffectBody*& bodyimpl);
       
    38     virtual ~TMSVolumeEffectBodyImpl();
       
    39 
       
    40     // From TMSVolumeEffectBody
       
    41     virtual gint AddObserver(TMSEffectObserver& obsrvr, gpointer user_data);
       
    42     virtual gint RemoveObserver(TMSEffectObserver& obsrvr);
       
    43     virtual gint SetLevel(const guint level);
       
    44     virtual gint GetLevel(guint& level);
       
    45     virtual gint GetMaxLevel(guint& level);
       
    46     virtual gint GetType(TMSEffectType& effecttype);
       
    47 
       
    48     // From MQueueHandlerObserver
       
    49     virtual void QueueEvent(TInt aEventType, TInt aError, void* user_data);
       
    50 
       
    51     gint SetParentEffect(TMSEffect*& parenteffect);
       
    52     void SetProxy(TMSCallProxy* aProxy, gpointer queuehandler);
       
    53 
       
    54 private:
       
    55     TMSVolumeEffectBodyImpl();
       
    56     gint PostConstruct();
       
    57 
       
    58 private:
       
    59     TMSEffectObserver* iObserver;
       
    60     gpointer iUserData;
       
    61     TMSCallProxy* iProxy;
       
    62     TMSEffect* iParentEffect;
       
    63     };
       
    64 
       
    65 } //namespace TMS
       
    66 
       
    67 #endif // TMS_VOLUME_EFFECT_BODY_IMPL_H
       
    68 
       
    69 // End of file