1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // 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
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @file THTTPFilterRegistration.h
20 @warning : This file contains Rose Model ID comments - please do not delete
23 #ifndef __THTTPFILTERREGISTRATION_H__
24 #define __THTTPFILTERREGISTRATION_H__
28 #include <stringpool.h>
29 #include <http/thttpevent.h>
31 // Forward declarations
35 //##ModelId=3C4C187D0188
36 class THTTPFilterRegistration
38 A registration of a filter in the filter queue
44 /// Default constructor
45 //##ModelId=3C4C187D020B
46 THTTPFilterRegistration();
48 //##ModelId=3C4C187D0214
49 THTTPFilterRegistration(MHTTPFilter& aFilter, THTTPEvent aEvent,
50 RStringTokenF aHeader, TInt aStatusCode,
51 TInt aPosition, RStringTokenF aName, TInt aHandle);
53 //##ModelId=3C4C187D0201
54 TBool operator==(THTTPFilterRegistration& aThat);
55 /// Inequality operator
56 //##ModelId=3C4C187D01F9
57 TBool operator!=(THTTPFilterRegistration& aThat);
61 //##ModelId=3C4C187D01F6
62 TInt iPosition; // This MUST be first!
64 //##ModelId=3C4C187D01E4
66 /// The event it's interested in (or any)
67 //##ModelId=3C4C187D01D8
69 /// The header it's interested in (or any)
70 //##ModelId=3C4C187D01C6
71 RStringTokenF iHeader;
72 /// The status it's interested in (or any)
73 //##ModelId=3C4C187D01BC
75 /// The name of the filter
76 //##ModelId=3C4C187D01B2
78 /// The handle of the filter
79 //##ModelId=3C4C187D01A8
83 inline THTTPFilterRegistration::THTTPFilterRegistration()
84 : iEvent(THTTPEvent::EAll)
88 inline THTTPFilterRegistration::THTTPFilterRegistration(MHTTPFilter& aFilter,
90 RStringTokenF aHeader,
95 :iPosition(aPosition), iFilter(&aFilter), iEvent(aEvent),
96 iHeader(aHeader), iStatus(aStatusCode) , iName(aName), iHandle(aHandle)
102 #endif // __THTTPFILTERREGISTRATION_H__