mmserv/tms/tmsimpl/inc/tmsglobalroutingbodyimpl.h
changeset 12 5a06f39ad45b
parent 0 71ca22bcf22a
equal deleted inserted replaced
0:71ca22bcf22a 12:5a06f39ad45b
    25 
    25 
    26 namespace TMS {
    26 namespace TMS {
    27 
    27 
    28 // FORWARD DECLARATIONS
    28 // FORWARD DECLARATIONS
    29 class TMSGlobalRoutingObserver;
    29 class TMSGlobalRoutingObserver;
       
    30 class TMSGlobalRouting;
    30 class TMSProxy;
    31 class TMSProxy;
    31 
    32 
    32 // TMSGlobalRoutingBodyImpl class
    33 // TMSGlobalRoutingBodyImpl class
    33 class TMSGlobalRoutingBodyImpl : public TMSGlobalRoutingBody
    34 class TMSGlobalRoutingBodyImpl : public TMSGlobalRoutingBody
    34     {
    35     {
    35 public:
    36 public:
    36     static gint Create(TMSGlobalRoutingBody*& bodyimpl);
    37     static gint Create(TMSGlobalRoutingBody*& bodyimpl);
       
    38     virtual ~TMSGlobalRoutingBodyImpl();
    37 
    39 
    38     // From TMSGlobalRoutingBody
    40     // From TMSGlobalRoutingBody
    39     virtual ~TMSGlobalRoutingBodyImpl();
       
    40     virtual gint AddObserver(TMSGlobalRoutingObserver& obsrvr,
    41     virtual gint AddObserver(TMSGlobalRoutingObserver& obsrvr,
    41             gpointer user_data);
    42             gpointer user_data);
    42     virtual gint RemoveObserver(TMSGlobalRoutingObserver& obsrvr);
    43     virtual gint RemoveObserver(TMSGlobalRoutingObserver& obsrvr);
    43     virtual gint SetOutput(const TMSAudioOutput output);
    44     virtual gint SetOutput(const TMSAudioOutput output);
    44     virtual gint GetOutput(TMSAudioOutput& output);
    45     virtual gint GetOutput(TMSAudioOutput& output);
    45     virtual gint GetPreviousOutput(TMSAudioOutput& output);
    46     virtual gint GetPreviousOutput(TMSAudioOutput& output);
    46     virtual gint GetAvailableOutputs(OutputVector& outputs);
    47     virtual gint GetAvailableOutputs(OutputVector& outputs);
       
    48 
       
    49     void SetParent(TMSGlobalRouting*& parent);
    47 
    50 
    48 private:
    51 private:
    49     TMSGlobalRoutingBodyImpl();
    52     TMSGlobalRoutingBodyImpl();
    50     gint PostConstruct();
    53     gint PostConstruct();
    51 
    54 
    54     gint iClientId;
    57     gint iClientId;
    55     TPckgBuf<TInt> iIntPckg;
    58     TPckgBuf<TInt> iIntPckg;
    56     RPointerArray<TMSGlobalRoutingObserver> iObserversList; // (not owned)
    59     RPointerArray<TMSGlobalRoutingObserver> iObserversList; // (not owned)
    57     gpointer iUserData;
    60     gpointer iUserData;
    58     TMSProxy* iProxy;
    61     TMSProxy* iProxy;
       
    62     TMSGlobalRouting* iParent;
    59     };
    63     };
    60 
    64 
    61 } //namespace TMS
    65 } //namespace TMS
    62 
    66 
    63 #endif // TMS_GLOBAL_ROUTING_BODY_IMPL_H
    67 #endif // TMS_GLOBAL_ROUTING_BODY_IMPL_H
    64 
    68 
    65 // End of file