hti/HtiServicePlugins/HtiFtpServicePlugin/inc/HtiFtpServicePlugin.h
branchRCL_3
changeset 18 3406c99bc375
parent 4 73ff0d268e1d
equal deleted inserted replaced
16:8f8df8006c40 18:3406c99bc375
    26 #include <HtiServicePluginInterface.h>
    26 #include <HtiServicePluginInterface.h>
    27 
    27 
    28 // CONSTANTS
    28 // CONSTANTS
    29 enum TFtpCommand
    29 enum TFtpCommand
    30     {
    30     {
    31     EFtpSTOR         = 0x02,
    31     EFtpSTOR                = 0x02,
    32     EFtpSTOR_u       = 0x03,
    32     EFtpSTOR_u              = 0x03,
    33     EFtpRETR         = 0x04,
    33     EFtpRETR                = 0x04,
    34     EFtpRETR_u       = 0x05,
    34     EFtpRETR_u              = 0x05,
    35     EFtpLIST         = 0x06,
    35     EFtpLIST                = 0x06,
    36     EFtpLIST_u       = 0x07,
    36     EFtpLIST_u              = 0x07,
    37     EFtpMKD          = 0x08,
    37     EFtpMKD                 = 0x08,
    38     EFtpMKD_u        = 0x09,
    38     EFtpMKD_u               = 0x09,
    39     EFtpRMD          = 0x0A,
    39     EFtpRMD                 = 0x0A,
    40     EFtpRMD_u        = 0x0B,
    40     EFtpRMD_u               = 0x0B,
    41     EFtpDELE         = 0x0C,
    41     EFtpDELE                = 0x0C,
    42     EFtpDELE_u       = 0x0D,
    42     EFtpDELE_u              = 0x0D,
    43     EFtpCANCEL       = 0x0E,
    43     EFtpCANCEL              = 0x0E,
    44     EFtpFILESIZE     = 0x0F,
    44     EFtpFILESIZE            = 0x0F,
    45     EFtpLISTDIR      = 0x10,
    45     EFtpLISTDIR             = 0x10,
    46     EFtpLISTDIR_u    = 0x11,
    46     EFtpLISTDIR_u           = 0x11,
    47     EFtpLISTSIZES    = 0x12,
    47     EFtpLISTSIZES           = 0x12,
    48     EFtpLISTSIZES_u  = 0x13,
    48     EFtpLISTSIZES_u         = 0x13,
    49     EFtpLISTDRIVES   = 0x14,
    49     EFtpLISTDRIVES          = 0x14,
    50     EFtpLISTDRIVES_u = 0x15,
    50     EFtpLISTDRIVES_u        = 0x15,
    51     EFtpRENAME       = 0x16,
    51     EFtpRENAME              = 0x16,
    52     EFtpRENAME_u     = 0x17,
    52     EFtpRENAME_u            = 0x17,
    53     EFtpCOPY         = 0x18,
    53     EFtpCOPY                = 0x18,
    54     EFtpCOPY_u       = 0x19,
    54     EFtpCOPY_u              = 0x19,
    55     EFtpMOVE         = 0x1A,
    55     EFtpMOVE                = 0x1A,
    56     EFtpMOVE_u       = 0x1B,
    56     EFtpMOVE_u              = 0x1B,
    57     EFtpSETFORCE     = 0x20,
    57     EFtpSETFORCE            = 0x20,
    58     EFtpCHECKSUM     = 0x30,
    58     EFtpCHECKSUM            = 0x30,
    59     EFtpCHECKSUM_u   = 0x31,
    59     EFtpCHECKSUM_u          = 0x31,
    60     EFtpFORMAT       = 0x40,
    60     EFtpListDetail          = 0x32,
    61     EFtpOK           = 0xF0,
    61     EFtpListDetail_u        = 0x33,
       
    62     EFtpListDirDetail       = 0x34,
       
    63     EFtpListDirDetail_u     = 0x35,
       
    64     EFtpFORMAT              = 0x40,
       
    65     EFtpOK                  = 0xF0,
    62     };
    66     };
    63 
    67 
    64 enum TAlgorithm
    68 enum TAlgorithm
    65     {
    69     {
    66     EMD5 = 0x01,
    70     EMD5 = 0x01,
   281     * @param aUnicodText if ETrue then response in unicode
   285     * @param aUnicodText if ETrue then response in unicode
   282     * @param aReadingAtt specifies what entries to read from a dir
   286     * @param aReadingAtt specifies what entries to read from a dir
   283     * @param aSizes if ETrue filesizes are included in the response
   287     * @param aSizes if ETrue filesizes are included in the response
   284     */
   288     */
   285     void HandleListL( TBool aUnicodText, TUint aReadingAtt, TBool aSizes );
   289     void HandleListL( TBool aUnicodText, TUint aReadingAtt, TBool aSizes );
       
   290     
       
   291     /**
       
   292     * Handle LIST FILES DETAIL command
       
   293     *
       
   294     * @param aUnicodText if ETrue then response in unicode
       
   295     * @param aReadingAtt specifies what entries to read from a dir
       
   296     */
       
   297     void HandleListDetailL( TBool aUnicodText, TUint aReadingAtt);
   286 
   298 
   287     /**
   299     /**
   288     * Extracts and validate file name to iFileName
   300     * Extracts and validate file name to iFileName
   289     * If error sends err msg
   301     * If error sends err msg
   290     * Return ETrue when filename is valid
   302     * Return ETrue when filename is valid