1 /* |
|
2 * Copyright (c) 2005-2010 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: Constant definitions for File Transfer Controller |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _SCONCONSTS_H_ |
|
20 #define _SCONCONSTS_H_ |
|
21 |
|
22 // Define this to show C-drive logs folder to user |
|
23 #define SCON_SHOW_LOGS_FOLDER |
|
24 |
|
25 _LIT( K_C_ROOT, "C:\\" ); |
|
26 _LIT( KSConLogsPath, "logs\\" ); // logs folder |
|
27 |
|
28 // Following folders on MMC are exluded from folder listing |
|
29 _LIT( KSConResource, "resource\\" ); // resource folder on MMC |
|
30 _LIT( KSConSys, "sys\\" ); // sys folder on MMC |
|
31 _LIT( KSConPrivate, "private\\" ); // private folder on MMC |
|
32 _LIT( KSConSystem, "system\\" ); // system folder on MMC |
|
33 |
|
34 // Suite needs access to SuiteConf.xml file |
|
35 _LIT( KSConAllowedPath, "Z:\\Private\\101F7C87" ); |
|
36 |
|
37 // For folder listing |
|
38 _LIT8( KSConXmlDocBegin, |
|
39 "<?xml version=\"1.0\"?>\n<!DOCTYPE folder-listing SYSTEM \"obex-folder-listing.dtd\"\n [ <!ATTLIST folder mem-type CDATA #IMPLIED>\n <!ATTLIST folder label CDATA #IMPLIED> ]>\n<folder-listing version=\"1.0\">\n" ); |
|
40 _LIT8( KSConXmlParentFolder, " <parent-folder />\n" ); |
|
41 _LIT8( KSConXmlFileNameBegin," <file name=\"" ); |
|
42 _LIT8( KSConXmlFolderNameBegin," <folder name=\"" ); |
|
43 _LIT8( KSConXmlDriveNameBegin," <drive name=\"" ); |
|
44 _LIT8( KSConXmlType,"\" type=\"" ); |
|
45 _LIT8( KSConXmlModified,"\" modified=\"" ); |
|
46 _LIT8( KSConXmlSize,"\" size=\"" ); |
|
47 _LIT8( KSConXmlUserAttributes,"\" user-perm=\"" ); |
|
48 _LIT8( KSConXmlMemoryType,"\" mem-type=\"" ); |
|
49 _LIT8( KSConXmlMemoryLabel,"\" label=\"" ); |
|
50 |
|
51 _LIT8( KSConXmlTypeWord, "x-epoc/x-app268450404" ); |
|
52 _LIT8( KSConXmlTypeSheet, "x-epoc/x-app268450429" ); |
|
53 |
|
54 _LIT8( KSConXmlUserEntryArchive,"RWD" ); |
|
55 _LIT8( KSConXmlUserEntryReadOnly,"R" ); |
|
56 _LIT8( KSConXmlUserEntryDrive, "RW" ); |
|
57 |
|
58 _LIT8( KSConXmlFileEnd,"\"/>\n" ); |
|
59 _LIT8( KSConXmlFolderListEnd,"</folder-listing>" ); |
|
60 _LIT8( KSConDriveCName,"C:" ); |
|
61 _LIT8( KSConDriveZName,"Z:" ); |
|
62 _LIT8( KSConFolderListType, "x-obex/folder-listing" ); |
|
63 |
|
64 const TInt KSConMemTypeMaxLength = 5; |
|
65 _LIT8( KSConMemoryTypeDev, "DEV" ); // prefix for device memory |
|
66 _LIT8( KSConMemoryTypeMmc, "MMC" ); // prefix for MMC memory |
|
67 |
|
68 // Date field format |
|
69 _LIT( KSConXmlDate, "%F%Y%M%DT%H%T%SZ" ); |
|
70 const TInt KSConDateMaxLength = 16; |
|
71 |
|
72 //File extensions |
|
73 _LIT( KSConEpocWordExt, ".ewd" ); |
|
74 _LIT( KSConEpocSheetExt, ".sht" ); |
|
75 |
|
76 _LIT8( KFind1,"&" ); |
|
77 _LIT8( KReplace1, "&" ); |
|
78 _LIT8( KReplace2, "<" ); |
|
79 _LIT8( KReplace3, ">" ); |
|
80 _LIT8( KReplace4, """ ); |
|
81 _LIT8( KReplace5, "'" ); |
|
82 |
|
83 _LIT( KSConResourceName, "z:\\Resource\\sconftp.rsc" ); |
|
84 |
|
85 const TInt KSConBufSize = 1024; |
|
86 const TInt KSConSetPathDontCreate = 0x01; // Flags used to indicate SetPath commands |
|
87 const TInt KSConSetPathRoot = 0x02; // Flags used to indicate SetPath commands |
|
88 const TInt KSConSetPathForward = 0x02; // Flags used to indicate SetPath commands |
|
89 const TInt KSConSetPathBack = 0x03; // Flags used to indicate SetPath commands |
|
90 const TInt KSConXmlBufSize = 30; |
|
91 const TInt KSConDriveNameLength = 2; |
|
92 const TInt KSConMaxMimeTypeLength = 25; |
|
93 const TInt KSConBufferSize = 262144; // 256KB |
|
94 |
|
95 const TUid KSConSheetUid = { 0x10003a7d }; // Sheet document uid |
|
96 const TUid KSConWordUid = { 0x10003a64 }; // Word document uid |
|
97 |
|
98 const TInt KDriveLength = 3; |
|
99 |
|
100 #endif |
|
101 |
|