1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmlibs/mmfw/inc/mmf/PLUGIN/mmfmediaclientextdisplayinterface.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,112 @@
1.4 +// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +/**
1.20 + @file
1.21 + @internalTechnology
1.22 +*/
1.23 +
1.24 +#ifndef MMFMEDIACLIENTEXTDISPLAYINTERFACE_H_
1.25 +#define MMFMEDIACLIENTEXTDISPLAYINTERFACE_H_
1.26 +
1.27 +#include <e32base.h>
1.28 +
1.29 +#define MMF_MEDIA_CLIENT_EXT_DISPLAY_INTERFACE_V3
1.30 +
1.31 +/**
1.32 +
1.33 +Enumeration used to indicate external display current connection status
1.34 +
1.35 +**/
1.36 +enum TExtDisplayConnectionProviderConnType
1.37 + {
1.38 + EExtDisplayConnectionProviderConnTypeDisconnected,
1.39 + EExtDisplayConnectionProviderConnTypeHdmi,
1.40 + EExtDisplayConnectionProviderConnTypeAnalog
1.41 + };
1.42 +
1.43 +/**
1.44 +
1.45 +Mixin class capable of handling events from provider
1.46 +
1.47 +*/
1.48 +class MExtDisplayConnectionProviderCallback
1.49 + {
1.50 +public:
1.51 + virtual void MedcpcExtDisplayNotifyConnected(TExtDisplayConnectionProviderConnType aExtDisplayConnType) = 0;
1.52 + };
1.53 +
1.54 +/**
1.55 +
1.56 +Mixin class for external display connection provider plugins.
1.57 +
1.58 +*/
1.59 +class CExtDisplayConnectionProviderInterface : public CBase
1.60 + {
1.61 +public:
1.62 +
1.63 + /**
1.64 + Allocates and constructs a new provider plugin.
1.65 +
1.66 + Uses ECOM to instantiate a new provider plugin. Can leave with any of the system-wide error codes.
1.67 +
1.68 + @leave KErrNotSupported There is no support for external displays.
1.69 + @return A pointer to the new provider plugin.
1.70 +
1.71 + */
1.72 + static CExtDisplayConnectionProviderInterface* NewL();
1.73 +
1.74 + /**
1.75 + Function to be implemented by connection provider that allows the callback to be set.
1.76 +
1.77 + @param aCallback
1.78 + A reference to an object that can be used by the provider to send events back to the client.
1.79 + */
1.80 + virtual void SetExtDisplayConnectionProviderCallback(MExtDisplayConnectionProviderCallback& aCallback) = 0;
1.81 +
1.82 + /**
1.83 + Function to be implemented by connection provider that indicates the external display connection type
1.84 +
1.85 + @return One of values defined in TExtDisplayConnectionProviderConnType
1.86 + */
1.87 + virtual TExtDisplayConnectionProviderConnType ExtDisplayConnType() = 0;
1.88 +
1.89 + /**
1.90 + Function to be implemented by connection provider that indicates the display id that should
1.91 + be used for the external display port.
1.92 +
1.93 + @return TInt the display id for the external display port
1.94 + */
1.95 + virtual TInt ExtDisplayId() = 0;
1.96 +
1.97 + /**
1.98 + Default destructor.
1.99 + */
1.100 + IMPORT_C virtual ~CExtDisplayConnectionProviderInterface();
1.101 +
1.102 +protected:
1.103 + /**
1.104 + Constructor.
1.105 + */
1.106 + IMPORT_C CExtDisplayConnectionProviderInterface();
1.107 +
1.108 +private:
1.109 + /**
1.110 + Required by ECOM.
1.111 + */
1.112 + TUid iInstanceKey;
1.113 + };
1.114 +
1.115 +#endif /* MMFMEDIACLIENTEXTDISPLAYINTERFACE_H_ */