upnp/upnpstack_plat/upnp_http_transfer_api/inc/httpuploader.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 /** @file
       
     2 * Copyright (c) 2007 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:  Handles uploads
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CHTTPUPLOADER_H
       
    20 #define C_CHTTPUPLOADER_H
       
    21 
       
    22 
       
    23 // System include files
       
    24 #include "httptransferbase.h"
       
    25 #include "httptransferobserver.h"
       
    26 
       
    27 /**
       
    28  * This class handles the queue of the uploaded files and array of workers.
       
    29  *  
       
    30  * @lib httptransfer.lib
       
    31  * @since S60 v3.2
       
    32  * @deprecated
       
    33  */
       
    34 class CHttpUploader : public CHttpTransferBase
       
    35     {
       
    36 public:
       
    37 
       
    38     /**
       
    39      * Constructor
       
    40      *
       
    41      * @since S60 v3.2
       
    42      * @param aObserver Transfer observer
       
    43      * @param aIAPId IAP id
       
    44      * @param aBufferSize size of the upload buffer
       
    45      * @param aParallelTransfers Number of parallel transfers
       
    46      * @deprecated
       
    47      */
       
    48     IMPORT_C static CHttpUploader* NewL(
       
    49                                     MHttpTransferObserver& aObserver,
       
    50                                     TUint aIAPId,
       
    51                                     TUint aBufferSize,
       
    52                                     TUint aParallelTransfers );
       
    53 
       
    54     /**
       
    55      * Constructor
       
    56      *
       
    57      * @since S60 v3.2
       
    58      * @param aObserver Transfer observer
       
    59      * @param aIAPId IAP id
       
    60      * @param aBufferSize size of the upload buffer
       
    61      * @param aParallelTransfers Number of parallel transfers
       
    62      * @deprecated
       
    63      */
       
    64     IMPORT_C static CHttpUploader* NewLC(
       
    65                                     MHttpTransferObserver& aObserver,
       
    66                                     TUint aIAPId,
       
    67                                     TUint aBufferSize,
       
    68                                     TUint aParallelTransfers );
       
    69 
       
    70     /**
       
    71      * Destructor
       
    72      *
       
    73      * @since S60 v3.2
       
    74      * @deprecated
       
    75      */
       
    76     virtual ~CHttpUploader();
       
    77 
       
    78     /**
       
    79      * Method for uploading the file. Creates and enqueues the file
       
    80      *
       
    81      * @since S60 v3.2
       
    82      * @param aUri Uri of the downloaded object
       
    83      * @param aTargetPath Local path of the object
       
    84      * @param aKey Identifier of the object
       
    85      * @deprecated
       
    86      */
       
    87     IMPORT_C void UploadFileL( const TDesC8& aUri, 
       
    88                                const TDesC& aTargetPath, 
       
    89                                TAny* aKey );
       
    90 
       
    91 private:
       
    92 
       
    93     /**
       
    94      * Default constructor
       
    95      *
       
    96      * @since S60 v3.2
       
    97      * @param aObserver Transfer observer
       
    98      * @param aIAPId IAP id
       
    99      * @param aBufferSize size of the upload buffer
       
   100      * @param aParallelTransfers Number of parallel transfers
       
   101      * @deprecated
       
   102      */
       
   103     CHttpUploader( MHttpTransferObserver& aObserver,
       
   104                    TUint aIAPId,
       
   105                    TUint aBufferSize,
       
   106                    TUint aParallelTransfers );
       
   107 
       
   108     /**
       
   109      * Second phase constructor
       
   110      *
       
   111      * @since S60 v3.2
       
   112      * @deprecated
       
   113      */
       
   114     void ConstructL();
       
   115     
       
   116     };
       
   117 
       
   118 #endif // C_CHTTPDOWNLOADER_H