author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:33:34 +0100 | |
branch | Symbian3 |
changeset 4 | 837f303aceeb |
parent 2 | 2fe1408b6811 |
permissions | -rw-r--r-- |
williamr@2 | 1 |
/* |
williamr@2 | 2 |
* Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies). |
williamr@2 | 3 |
* All rights reserved. |
williamr@2 | 4 |
* This component and the accompanying materials are made available |
williamr@4 | 5 |
* under the terms of "Eclipse Public License v1.0" |
williamr@2 | 6 |
* which accompanies this distribution, and is available |
williamr@4 | 7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
williamr@2 | 8 |
* |
williamr@2 | 9 |
* Initial Contributors: |
williamr@2 | 10 |
* Nokia Corporation - initial contribution. |
williamr@2 | 11 |
* |
williamr@2 | 12 |
* Contributors: |
williamr@2 | 13 |
* |
williamr@2 | 14 |
* Description: Interface to extend bio control functionality |
williamr@2 | 15 |
* |
williamr@2 | 16 |
*/ |
williamr@2 | 17 |
|
williamr@2 | 18 |
|
williamr@2 | 19 |
|
williamr@2 | 20 |
#ifndef MSGBIOCONTROLEXTENSION_H |
williamr@2 | 21 |
#define MSGBIOCONTROLEXTENSION_H |
williamr@2 | 22 |
|
williamr@2 | 23 |
/** |
williamr@2 | 24 |
* Bio control extension interface ids. |
williamr@2 | 25 |
* |
williamr@2 | 26 |
* @see MMsgBioControlExtension::BioControlExtension |
williamr@2 | 27 |
*/ |
williamr@2 | 28 |
enum TMsgBioControlExtensions |
williamr@2 | 29 |
{ |
williamr@2 | 30 |
// Add new enum tag for a new extension. To maintain BC always add new |
williamr@2 | 31 |
// tags only to the end of existing tags and do not touch existing tags, |
williamr@2 | 32 |
// even if extensions are deprecated. Link the enum tags to types using |
williamr@2 | 33 |
// Doxygen comments. |
williamr@2 | 34 |
|
williamr@2 | 35 |
/** |
williamr@2 | 36 |
* Extension interface id for MMsgBioControlScrollExtension. |
williamr@2 | 37 |
*/ |
williamr@2 | 38 |
KMsgBioControlScrollExtension = 1 |
williamr@2 | 39 |
}; |
williamr@2 | 40 |
|
williamr@2 | 41 |
/** |
williamr@2 | 42 |
* Interface for Bio control extension. |
williamr@2 | 43 |
* |
williamr@2 | 44 |
* @since 3.2 |
williamr@2 | 45 |
*/ |
williamr@2 | 46 |
class MMsgBioControlExtension |
williamr@2 | 47 |
{ |
williamr@2 | 48 |
public: |
williamr@2 | 49 |
|
williamr@2 | 50 |
/** |
williamr@2 | 51 |
* Extension point for future BIO control extension interfaces. |
williamr@2 | 52 |
* @since 3.2 |
williamr@2 | 53 |
* @param aExtensionId The identifier for the requested extension interface. |
williamr@2 | 54 |
* See TMsgBioControlExtensions. |
williamr@2 | 55 |
* @return Untyped pointer to the extension interface. |
williamr@2 | 56 |
* The pointer must be cast to appropriate type. |
williamr@2 | 57 |
*/ |
williamr@2 | 58 |
virtual TAny* BioControlExtension( TInt aExtensionId ) = 0; |
williamr@2 | 59 |
}; |
williamr@2 | 60 |
|
williamr@2 | 61 |
/** |
williamr@2 | 62 |
* Interface for scrolling extension |
williamr@2 | 63 |
* |
williamr@2 | 64 |
* @since 3.2 |
williamr@2 | 65 |
*/ |
williamr@2 | 66 |
class MMsgBioControlScrollExtension |
williamr@2 | 67 |
{ |
williamr@2 | 68 |
public: |
williamr@2 | 69 |
|
williamr@2 | 70 |
/** |
williamr@2 | 71 |
* Performs the internal scrolling of control if needed. |
williamr@2 | 72 |
* @since 3.2 |
williamr@2 | 73 |
* @param aPixelsToScroll Amount of pixels to scroll. |
williamr@2 | 74 |
* @param aDirection Scrolling direction. |
williamr@2 | 75 |
* @return Amount of pixels that were scrolled. Zero value means the component |
williamr@2 | 76 |
* cannot be scrolled to that direction anymore and view should be moved. |
williamr@2 | 77 |
*/ |
williamr@2 | 78 |
virtual TInt ExtScrollL( TInt aPixelsToScroll, TMsgScrollDirection aDirection ) = 0; |
williamr@2 | 79 |
|
williamr@2 | 80 |
/** |
williamr@2 | 81 |
* Prepares control for viewing. |
williamr@2 | 82 |
* @since 3.2 |
williamr@2 | 83 |
* @param aEvent The event type |
williamr@2 | 84 |
* @param aParam Event related parameters |
williamr@2 | 85 |
*/ |
williamr@2 | 86 |
virtual void ExtNotifyViewEvent( TMsgViewEvent aEvent, TInt aParam ) = 0; |
williamr@2 | 87 |
}; |
williamr@2 | 88 |
|
williamr@2 | 89 |
#endif // MSGBIOCONTROLEXTENSION_H |