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