mmserv/tms/tmsimpl/inc/tmsglobalroutingbodyimpl.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_GLOBAL_ROUTING_BODY_IMPL_H
       
    19 #define TMS_GLOBAL_ROUTING_BODY_IMPL_H
       
    20 
       
    21 #include <tms.h>
       
    22 #include "tmsglobalroutingbody.h"
       
    23 #include "tmsqueuehandler.h"
       
    24 #include "tmsclientserver.h"
       
    25 
       
    26 namespace TMS {
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class TMSGlobalRoutingObserver;
       
    30 class TMSProxy;
       
    31 
       
    32 // TMSGlobalRoutingBodyImpl class
       
    33 class TMSGlobalRoutingBodyImpl : public TMSGlobalRoutingBody
       
    34     {
       
    35 public:
       
    36     static gint Create(TMSGlobalRoutingBody*& bodyimpl);
       
    37 
       
    38     // From TMSGlobalRoutingBody
       
    39     virtual ~TMSGlobalRoutingBodyImpl();
       
    40     virtual gint AddObserver(TMSGlobalRoutingObserver& obsrvr,
       
    41             gpointer user_data);
       
    42     virtual gint RemoveObserver(TMSGlobalRoutingObserver& obsrvr);
       
    43     virtual gint SetOutput(const TMSAudioOutput output);
       
    44     virtual gint GetOutput(TMSAudioOutput& output);
       
    45     virtual gint GetPreviousOutput(TMSAudioOutput& output);
       
    46     virtual gint GetAvailableOutputs(OutputVector& outputs);
       
    47 
       
    48 private:
       
    49     TMSGlobalRoutingBodyImpl();
       
    50     gint PostConstruct();
       
    51 
       
    52 private:
       
    53     TMSGlobalRoutingObserver* iObserver;
       
    54     gint iClientId;
       
    55     TPckgBuf<TInt> iIntPckg;
       
    56     RPointerArray<TMSGlobalRoutingObserver> iObserversList; // (not owned)
       
    57     gpointer iUserData;
       
    58     TMSProxy* iProxy;
       
    59     };
       
    60 
       
    61 } //namespace TMS
       
    62 
       
    63 #endif // TMS_GLOBAL_ROUTING_BODY_IMPL_H
       
    64 
       
    65 // End of file