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 THTTPFilterHandle.h
20 @warning : This file contains Rose Model ID comments - please do not delete
23 #ifndef __THTTPFILTERHANDLE_H__
24 #define __THTTPFILTERHANDLE_H__
30 //##ModelId=3A914DF50317
31 class THTTPFilterHandle
33 A Filter registration handle. This identifies a particular filter
34 registration, and is passed to the filter in MHFLoad. It is used
35 to identify filters for deletion and for locating the start point
36 for sending events. It is an opaque class; all you need to be able
37 to do with it is to compare them for equality.
43 /* Note. These are negative as values for particular filters use
45 /** Alisases for the client, and the filters you're most likely to want
50 EUndefined = 0, ///< Undefined default value.
51 EClient = -1, ///< Placeholder for the client.
52 EProtocolHandler = -2, ///< Constant value for the protocol handler.
53 /// When sending an event from a MHFRunL, indicates the current filter.
57 //##ModelId=3A914DF50336
58 inline THTTPFilterHandle(TStandardValues aVal = EUndefined);
59 //##ModelId=3A914DF5032D
60 inline TBool operator==(THTTPFilterHandle aThat) const;
61 //##ModelId=3A914DF5032B
62 inline TBool operator!=(THTTPFilterHandle aThat) const;
64 //##ModelId=3A914DF50323
66 friend class RHTTPSession;
67 friend class RHTTPFilterCollection;
68 friend class CHTTPSession;
69 friend class CTransaction;
72 inline THTTPFilterHandle::THTTPFilterHandle(TStandardValues aVal)
77 inline TBool THTTPFilterHandle::operator==(THTTPFilterHandle aThat) const
79 return iValue == aThat.iValue;
82 inline TBool THTTPFilterHandle::operator!=(THTTPFilterHandle aThat) const
84 return !(*this == aThat);
88 #endif // __THTTPFILTERHANDLE_H__