1 /* |
|
2 * Copyright (c) 2002-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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MSGATTACHMENTUTILS_H |
|
20 #define MSGATTACHMENTUTILS_H |
|
21 |
|
22 // ========== INCLUDE FILES ================================ |
|
23 |
|
24 #include <e32std.h> |
|
25 |
|
26 // ========== CONSTANTS ==================================== |
|
27 |
|
28 // ========== MACROS ======================================= |
|
29 |
|
30 // ========== DATA TYPES =================================== |
|
31 |
|
32 // ========== FUNCTION PROTOTYPES ========================== |
|
33 |
|
34 // ========== FORWARD DECLARATIONS ========================= |
|
35 |
|
36 // ========== CLASS DECLARATION ============================ |
|
37 |
|
38 /** |
|
39 * Attachment utilities. |
|
40 * |
|
41 */ |
|
42 class MsgAttachmentUtils |
|
43 { |
|
44 public: |
|
45 /** |
|
46 * Generates a legal filename from given text buffer. |
|
47 * @param aFileName OUT: generated filename. |
|
48 * @param aBuffer text buffer. |
|
49 * @param aMaxLength maximum length for filename. |
|
50 * @param aExt optional file extension. |
|
51 */ |
|
52 static void GetFileNameFromBuffer( |
|
53 TFileName& aFileName, |
|
54 const TDesC& aBuffer, |
|
55 TInt aMaxLength, |
|
56 const TDesC* aExt = NULL ); |
|
57 |
|
58 }; |
|
59 |
|
60 #endif // MSGATTACHMENTUTILS_H |
|
61 |
|
62 // End of File |
|