IMPSengine/ImpsDataChannel/inc/ImpsHttpTransaction.inl
branchRCL_3
changeset 17 a941bc465d9f
parent 0 094583676ce7
equal deleted inserted replaced
16:6ca72c0fe49a 17:a941bc465d9f
       
     1 /*
       
     2 * Copyright (c) 2002 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: Http Transaction class for Imps.
       
    15 *       
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // ----------------------------------------------------------
       
    21 // CImpsHttpTransaction::Status
       
    22 // 
       
    23 // ----------------------------------------------------------
       
    24 //
       
    25 inline TBool CImpsHttpTransaction::Status() const
       
    26 	{
       
    27 	return iSent;
       
    28 	}
       
    29 
       
    30 // ----------------------------------------------------------
       
    31 // CImpsHttpTransaction::Cancel
       
    32 // 
       
    33 // ----------------------------------------------------------
       
    34 //
       
    35 inline void CImpsHttpTransaction::Cancel()
       
    36 	{
       
    37 	iCancelled = ETrue;
       
    38 	}
       
    39 
       
    40 // ----------------------------------------------------------
       
    41 // CImpsHttpTransaction::SetContentLength
       
    42 // 
       
    43 // ----------------------------------------------------------
       
    44 //
       
    45 inline void CImpsHttpTransaction::SetContentLength( const TInt aContentLength )
       
    46     {
       
    47     if( aContentLength >= 0 && aContentLength < KMaxTInt )
       
    48         iContentLength = aContentLength;
       
    49     }
       
    50 
       
    51 // ----------------------------------------------------------
       
    52 // CHttpTransportAdapter::OverallDataSize
       
    53 // MHTTPDataSupplier interface callback. 
       
    54 // ----------------------------------------------------------
       
    55 //
       
    56 inline TBool CImpsHttpTransaction::IsCancelled()
       
    57 	{
       
    58 	return iCancelled;
       
    59 	}
       
    60 
       
    61 // ----------------------------------------------------------
       
    62 // CImpsHttpTransaction::Reset
       
    63 // MHTTPDataSupplier interface callback
       
    64 // ----------------------------------------------------------
       
    65 //
       
    66 inline TInt CImpsHttpTransaction::Reset()
       
    67 	{
       
    68 	return KErrNotSupported;
       
    69 	}
       
    70 
       
    71 // ----------------------------------------------------------
       
    72 // CImpsHttpTransaction::OverallDataSize
       
    73 // MHTTPDataSupplier interface callback
       
    74 // ----------------------------------------------------------
       
    75 //
       
    76 inline TInt CImpsHttpTransaction::OverallDataSize()
       
    77 	{
       
    78     return iRequestData != NULL ? iRequestData->Length() : 0;
       
    79 	}
       
    80 
       
    81 // ----------------------------------------------------------
       
    82 // CImpsHttpTransaction::TID
       
    83 //
       
    84 // ----------------------------------------------------------
       
    85 //
       
    86 inline const TInt CImpsHttpTransaction::TID() const
       
    87     {
       
    88 	return iTID;
       
    89     }
       
    90 
       
    91 // ----------------------------------------------------------
       
    92 // CImpsHttpTransaction::TID
       
    93 //
       
    94 // ----------------------------------------------------------
       
    95 //
       
    96 inline const TBool CImpsHttpTransaction::LastChunk() const
       
    97     {
       
    98     return iLastChunk;
       
    99     }
       
   100 
       
   101 // ----------------------------------------------------------
       
   102 // CImpsHttpTransaction::TID
       
   103 //
       
   104 // ----------------------------------------------------------
       
   105 //
       
   106 inline const TInt CImpsHttpTransaction::SendTime() const
       
   107     {
       
   108 	return iSendTime;
       
   109     }
       
   110 
       
   111 // ----------------------------------------------------
       
   112 // CImpsHttpTransaction::Transaction
       
   113 //
       
   114 // ----------------------------------------------------
       
   115 //
       
   116 inline RHTTPTransaction CImpsHttpTransaction::Transaction() const
       
   117     { 
       
   118     return iHttpTransaction;
       
   119     }