|
1 /* |
|
2 * Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: test functions for alfscrollerevent.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // [INCLUDE FILES] |
|
21 #include <alf/alfscrollerevent.h> |
|
22 |
|
23 #include "testplatalfvisual.h" |
|
24 |
|
25 |
|
26 |
|
27 // ============================ MEMBER FUNCTIONS =============================== |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // CTestPlatAlfVisual::TestScrollEventMethods |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 TInt CTestPlatAlfVisual::TestScrollEventMethods( CStifItemParser& /*aItem*/ ) |
|
34 { |
|
35 // Print to UI |
|
36 _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" ); |
|
37 _LIT( KTestScrollEventMethods, "TestScrollEventMethods" ); |
|
38 TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestScrollEventMethods ); |
|
39 // Print to log file |
|
40 iLog->Log( KTestScrollEventMethods ); |
|
41 |
|
42 TAlfScrollerEvent scrollerEvent( |
|
43 TAlfScrollerEvent::EMoveByItem, |
|
44 TAlfScrollerEvent::EVertical, 1 |
|
45 ); |
|
46 scrollerEvent.Code(); |
|
47 scrollerEvent.Orientation(); |
|
48 scrollerEvent.Magnitude(); |
|
49 |
|
50 return KErrNone; |
|
51 } |
|
52 |
|
53 |
|
54 // [End of File] |