1.1 --- a/epoc32/include/http/thttpfilterregistration.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/http/thttpfilterregistration.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,102 @@
1.4 -thttpfilterregistration.h
1.5 +// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +
1.21 +
1.22 +/**
1.23 + @file THTTPFilterRegistration.h
1.24 + @warning : This file contains Rose Model ID comments - please do not delete
1.25 +*/
1.26 +
1.27 +#ifndef __THTTPFILTERREGISTRATION_H__
1.28 +#define __THTTPFILTERREGISTRATION_H__
1.29 +
1.30 +// System includes
1.31 +#include <e32std.h>
1.32 +#include <stringpool.h>
1.33 +#include <http/thttpevent.h>
1.34 +
1.35 +// Forward declarations
1.36 +class MHTTPFilter;
1.37 +
1.38 +
1.39 +//##ModelId=3C4C187D0188
1.40 +class THTTPFilterRegistration
1.41 +/**
1.42 +A registration of a filter in the filter queue
1.43 +@publishedAll
1.44 +@released
1.45 +*/
1.46 + {
1.47 + public:
1.48 + /// Default constructor
1.49 + //##ModelId=3C4C187D020B
1.50 + THTTPFilterRegistration();
1.51 + /// Constructor
1.52 + //##ModelId=3C4C187D0214
1.53 + THTTPFilterRegistration(MHTTPFilter& aFilter, THTTPEvent aEvent,
1.54 + RStringTokenF aHeader, TInt aStatusCode,
1.55 + TInt aPosition, RStringTokenF aName, TInt aHandle);
1.56 + /// Equality operator
1.57 + //##ModelId=3C4C187D0201
1.58 + TBool operator==(THTTPFilterRegistration& aThat);
1.59 + /// Inequality operator
1.60 + //##ModelId=3C4C187D01F9
1.61 + TBool operator!=(THTTPFilterRegistration& aThat);
1.62 +
1.63 + public:
1.64 + /// The position
1.65 + //##ModelId=3C4C187D01F6
1.66 + TInt iPosition; // This MUST be first!
1.67 + /// The filter
1.68 + //##ModelId=3C4C187D01E4
1.69 + MHTTPFilter* iFilter;
1.70 + /// The event it's interested in (or any)
1.71 + //##ModelId=3C4C187D01D8
1.72 + THTTPEvent iEvent;
1.73 + /// The header it's interested in (or any)
1.74 + //##ModelId=3C4C187D01C6
1.75 + RStringTokenF iHeader;
1.76 + /// The status it's interested in (or any)
1.77 + //##ModelId=3C4C187D01BC
1.78 + TInt iStatus;
1.79 + /// The name of the filter
1.80 + //##ModelId=3C4C187D01B2
1.81 + RStringTokenF iName;
1.82 + /// The handle of the filter
1.83 + //##ModelId=3C4C187D01A8
1.84 + TInt iHandle;
1.85 + };
1.86 +
1.87 +inline THTTPFilterRegistration::THTTPFilterRegistration()
1.88 + : iEvent(THTTPEvent::EAll)
1.89 + {
1.90 + }
1.91 +
1.92 +inline THTTPFilterRegistration::THTTPFilterRegistration(MHTTPFilter& aFilter,
1.93 + THTTPEvent aEvent,
1.94 + RStringTokenF aHeader,
1.95 + TInt aStatusCode,
1.96 + TInt aPosition,
1.97 + RStringTokenF aName,
1.98 + TInt aHandle)
1.99 + :iPosition(aPosition), iFilter(&aFilter), iEvent(aEvent),
1.100 + iHeader(aHeader), iStatus(aStatusCode) , iName(aName), iHandle(aHandle)
1.101 + {
1.102 + }
1.103 +
1.104 +
1.105 +
1.106 +#endif // __THTTPFILTERREGISTRATION_H__