ncdengine/inc/ncdsendhttprequestoperation.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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 M_NCDSENDHTTPREQUESTOPERATION_H
       
    20 #define M_NCDSENDHTTPREQUESTOPERATION_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "ncdoperation.h"
       
    25 #include "ncdinterfaceids.h"
       
    26 
       
    27 /**
       
    28  * Operation for sending a standard HTTP request
       
    29  */
       
    30 class MNcdSendHttpRequestOperation : public MNcdOperation
       
    31     {
       
    32 public:
       
    33 
       
    34     /**
       
    35      * Unique identifier for the interface, required for all MCatalogsBase interfaces.
       
    36      *
       
    37      * 
       
    38      */
       
    39     enum { KInterfaceUid = ENcdSendHttpRequestOperationUid };    
       
    40     
       
    41     /**
       
    42      * Request response
       
    43      *
       
    44      * @return HTTP response for the sent request. Ownership is transferred
       
    45      * @leave KErrNotReady if the operation has not finished
       
    46      * @leave Other Symbian error code
       
    47      */
       
    48     virtual HBufC8* ResponseL() const = 0;
       
    49 
       
    50 protected:
       
    51 
       
    52     virtual ~MNcdSendHttpRequestOperation()
       
    53         {
       
    54         }
       
    55     };
       
    56 
       
    57 #endif // M_NCDSENDHTTPREQUESTOPERATION_H