|
1 /* |
|
2 * Copyright (c) 2006 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: MPX view utility helper |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CMPXVIEWUTILITYHELPER_H |
|
21 #define CMPXVIEWUTILITYHELPER_H |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * MPX view utility helper. |
|
31 * |
|
32 * @lib mpxviewutility.lib |
|
33 * @since S60 v3.1 |
|
34 */ |
|
35 NONSHARABLE_CLASS( CMPXViewUtilityHelper ) |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Extracts number from data. |
|
41 * |
|
42 * @param aData Plugin's opaque data. |
|
43 * @param aNextPos Next position to be searched from. On return, this value |
|
44 * will be updated to next position. KErrNotFound if |
|
45 * the end of data is reached. |
|
46 * @param aResult Signed integer if found. |
|
47 * @return KErrNone if found. KErrNotFound if not found. |
|
48 * KErrGeneral if aNextPos is negative or aNextPos is greater than |
|
49 * the length of aData. |
|
50 */ |
|
51 static TInt ExtractNum( |
|
52 const TDesC8& aData, |
|
53 TInt& aNextPos, |
|
54 TInt& aResult ); |
|
55 |
|
56 /** |
|
57 * Extracts number from data. |
|
58 * |
|
59 * @param aData Plugin's opaque data. |
|
60 * @param aNextPos Next position to be searched from. On return, this value |
|
61 * will be updated to next position. KErrNotFound if |
|
62 * the end of data is reached. |
|
63 * @param aResult Signed integer if found. |
|
64 * @return KErrNone if found. KErrNotFound if not found. |
|
65 * KErrGeneral if aNextPos is negative or aNextPos is greater than |
|
66 * the length of aData. |
|
67 */ |
|
68 static TInt ExtractNum( |
|
69 const TDesC& aData, |
|
70 TInt& aNextPos, |
|
71 TInt& aResult ); |
|
72 }; |
|
73 |
|
74 #endif // CMPXVIEWUTILITYHELPER_H |
|
75 |
|
76 // End of File |