First public contribution.
1 // Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
21 #ifndef MMFMEDIACLIENTEXTDISPLAYINTERFACE_H_
22 #define MMFMEDIACLIENTEXTDISPLAYINTERFACE_H_
26 #define MMF_MEDIA_CLIENT_EXT_DISPLAY_INTERFACE_V3
30 Enumeration used to indicate external display current connection status
33 enum TExtDisplayConnectionProviderConnType
35 EExtDisplayConnectionProviderConnTypeDisconnected,
36 EExtDisplayConnectionProviderConnTypeHdmi,
37 EExtDisplayConnectionProviderConnTypeAnalog
42 Mixin class capable of handling events from provider
45 class MExtDisplayConnectionProviderCallback
48 virtual void MedcpcExtDisplayNotifyConnected(TExtDisplayConnectionProviderConnType aExtDisplayConnType) = 0;
53 Mixin class for external display connection provider plugins.
56 class CExtDisplayConnectionProviderInterface : public CBase
61 Allocates and constructs a new provider plugin.
63 Uses ECOM to instantiate a new provider plugin. Can leave with any of the system-wide error codes.
65 @leave KErrNotSupported There is no support for external displays.
66 @return A pointer to the new provider plugin.
69 static CExtDisplayConnectionProviderInterface* NewL();
72 Function to be implemented by connection provider that allows the callback to be set.
75 A reference to an object that can be used by the provider to send events back to the client.
77 virtual void SetExtDisplayConnectionProviderCallback(MExtDisplayConnectionProviderCallback& aCallback) = 0;
80 Function to be implemented by connection provider that indicates the external display connection type
82 @return One of values defined in TExtDisplayConnectionProviderConnType
84 virtual TExtDisplayConnectionProviderConnType ExtDisplayConnType() = 0;
87 Function to be implemented by connection provider that indicates the display id that should
88 be used for the external display port.
90 @return TInt the display id for the external display port
92 virtual TInt ExtDisplayId() = 0;
97 IMPORT_C virtual ~CExtDisplayConnectionProviderInterface();
103 IMPORT_C CExtDisplayConnectionProviderInterface();
112 #endif /* MMFMEDIACLIENTEXTDISPLAYINTERFACE_H_ */