sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @publishedPartner sl@0: @prototype sl@0: */ sl@0: sl@0: #ifndef __DISPLAYHANDLER_H__ sl@0: #define __DISPLAYHANDLER_H__ sl@0: sl@0: /** sl@0: Display request handler interface sl@0: */ sl@0: class MDisplayHandler sl@0: { sl@0: public: sl@0: /** sl@0: Process a request on this logical channel. sl@0: sl@0: @param aReqNo Request number: sl@0: == KMaxTInt, a 'DoCancel' message sl@0: >= 0, a 'DoControl' message with function number equal to aReqNo sl@0: < 0, a 'DoRequest' message with function number equal to ~aReqNo sl@0: @param a1 First argument. For DoRequest requests this is a pointer to sl@0: the TRequestStatus. sl@0: @param a2 Second argument. For DoRequest this is a pointer to the 2 sl@0: actual TAny* arguments. sl@0: @return Result. Ignored by device driver framework for DoRequest requests. sl@0: */ sl@0: virtual TInt HandleRequest(TInt aReqNo, TAny* a1, TAny* a2) = 0; sl@0: }; sl@0: sl@0: #endif sl@0: