mmlibs/mmfw/inc/mmf/PLUGIN/mmfmediaclientextdisplayinterface.h
changeset 24 2672ba96448e
parent 13 efebd1779a59
equal deleted inserted replaced
21:1c0a769d0cc5 24:2672ba96448e
    21 #ifndef MMFMEDIACLIENTEXTDISPLAYINTERFACE_H_
    21 #ifndef MMFMEDIACLIENTEXTDISPLAYINTERFACE_H_
    22 #define MMFMEDIACLIENTEXTDISPLAYINTERFACE_H_
    22 #define MMFMEDIACLIENTEXTDISPLAYINTERFACE_H_
    23 
    23 
    24 #include <e32base.h>
    24 #include <e32base.h>
    25 
    25 
    26 #define MMF_MEDIA_CLIENT_EXT_DISPLAY_INTERFACE_V2
    26 #define MMF_MEDIA_CLIENT_EXT_DISPLAY_INTERFACE_V3
       
    27 
       
    28 /**
       
    29 
       
    30 Enumeration used to indicate external display current connection status
       
    31 
       
    32 **/
       
    33 enum TExtDisplayConnectionProviderConnType
       
    34     {
       
    35     EExtDisplayConnectionProviderConnTypeDisconnected,
       
    36     EExtDisplayConnectionProviderConnTypeHdmi,
       
    37     EExtDisplayConnectionProviderConnTypeAnalog
       
    38     };
    27 
    39 
    28 /**
    40 /**
    29 
    41 
    30 Mixin class capable of handling events from provider
    42 Mixin class capable of handling events from provider
    31 
    43 
    32 */
    44 */
    33 class MExtDisplayConnectionProviderCallback
    45 class MExtDisplayConnectionProviderCallback
    34     {
    46     {
    35 public:
    47 public:
    36     virtual void MedcpcExtDisplayNotifyConnected(TBool aExtDisplayConnected) = 0;
    48     virtual void MedcpcExtDisplayNotifyConnected(TExtDisplayConnectionProviderConnType aExtDisplayConnType) = 0;
    37     };
    49     };
    38 
    50 
    39 /**
    51 /**
    40 
    52 
    41 Mixin class for external display connection provider plugins.
    53 Mixin class for external display connection provider plugins.
    61     
    73     
    62     @param  aCallback
    74     @param  aCallback
    63         A reference to an object that can be used by the provider to send events back to the client.
    75         A reference to an object that can be used by the provider to send events back to the client.
    64     */
    76     */
    65     virtual void SetExtDisplayConnectionProviderCallback(MExtDisplayConnectionProviderCallback& aCallback) = 0;
    77     virtual void SetExtDisplayConnectionProviderCallback(MExtDisplayConnectionProviderCallback& aCallback) = 0;
    66 	    
    78 
    67     /**
    79     /**
    68     Function to be implemented by connection provider that indicates whether an external display is
    80     Function to be implemented by connection provider that indicates the external display connection type 
    69     connected.
       
    70     
    81     
    71     @return ETrue if external display is connected otherwise EFalse.
    82     @return One of values defined in TExtDisplayConnectionProviderConnType
    72     */
    83     */
    73 	virtual TBool ExtDisplayConnected() = 0;
    84     virtual TExtDisplayConnectionProviderConnType ExtDisplayConnType() = 0;
    74 
    85 	
    75     /**
    86     /**
    76     Function to be implemented by connection provider that indicates the display id that should
    87     Function to be implemented by connection provider that indicates the display id that should
    77     be used for the external display port.
    88     be used for the external display port.
    78     
    89     
    79     @return TInt the display id for the external display port
    90     @return TInt the display id for the external display port