1 /* |
|
2 * Copyright (c) 2005 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: Utility functions for PbkInfoView. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef PBKINFOVIEWUTIL_H |
|
21 #define PBKINFOVIEWUTIL_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Utility functions for PbkInfoView. |
|
30 */ |
|
31 NONSHARABLE_CLASS (TPbkInfoViewUtil) |
|
32 { |
|
33 public: |
|
34 static void Panic( TInt aReason) ; |
|
35 |
|
36 /** |
|
37 * String copy with length check. |
|
38 * @param TDes8& aTarget Copied text will be put to this variable. |
|
39 * @param TDesC& aSource Includes the text to be copied. |
|
40 * @return None |
|
41 */ |
|
42 static void StrCopy( TDes8& aTarget, const TDesC& aSource ); |
|
43 |
|
44 /** |
|
45 * String copy with length check. |
|
46 * @param TDes& aTarget Copied text will be put to this variable. |
|
47 * @param TDesC8& aSource Includes the text to be copied. |
|
48 * @return None |
|
49 */ |
|
50 static void StrCopy( TDes& aTarget, const TDesC8& aSource ); |
|
51 |
|
52 /** |
|
53 * String copy with length check. |
|
54 * @param TDes& aTarget Copied text will be put to this variable. |
|
55 * @param TDesC& aSource Includes the text to be copied. |
|
56 * @return None |
|
57 */ |
|
58 static void StrCopy( TDes& aTarget, const TDesC& aSource ); |
|
59 |
|
60 /** |
|
61 * Adds resource file to control environment. |
|
62 * @param aFile File location. |
|
63 * @return TInt Error code. |
|
64 */ |
|
65 static TInt AddResFileL(const TDesC& aFile); |
|
66 }; |
|
67 |
|
68 #endif // PBKINFOVIEWUTIL_H |
|
69 |
|
70 // End of file |
|