1.1 --- a/epoc32/include/http/thttpfilterhandle.h Tue Mar 16 16:12:26 2010 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,88 +0,0 @@
1.4 -// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 -// All rights reserved.
1.6 -// This component and the accompanying materials are made available
1.7 -// 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.8 -// which accompanies this distribution, and is available
1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 -//
1.11 -// Initial Contributors:
1.12 -// Nokia Corporation - initial contribution.
1.13 -//
1.14 -// Contributors:
1.15 -//
1.16 -// Description:
1.17 -//
1.18 -
1.19 -
1.20 -
1.21 -/**
1.22 - @file THTTPFilterHandle.h
1.23 - @warning : This file contains Rose Model ID comments - please do not delete
1.24 -*/
1.25 -
1.26 -#ifndef __THTTPFILTERHANDLE_H__
1.27 -#define __THTTPFILTERHANDLE_H__
1.28 -
1.29 -// System includes
1.30 -#include <e32std.h>
1.31 -
1.32 -
1.33 -//##ModelId=3A914DF50317
1.34 -class THTTPFilterHandle
1.35 -/**
1.36 -A Filter registration handle. This identifies a particular filter
1.37 -registration, and is passed to the filter in MHFLoad. It is used
1.38 -to identify filters for deletion and for locating the start point
1.39 -for sending events. It is an opaque class; all you need to be able
1.40 -to do with it is to compare them for equality.
1.41 -@publishedAll
1.42 -@released
1.43 -*/
1.44 - {
1.45 - public:
1.46 - /* Note. These are negative as values for particular filters use
1.47 - positive values.*/
1.48 - /** Alisases for the client, and the filters you're most likely to want
1.49 - to refer to.
1.50 - */
1.51 - enum TStandardValues
1.52 - {
1.53 - EUndefined = 0, ///< Undefined default value.
1.54 - EClient = -1, ///< Placeholder for the client.
1.55 - EProtocolHandler = -2, ///< Constant value for the protocol handler.
1.56 - /// When sending an event from a MHFRunL, indicates the current filter.
1.57 - ECurrentFilter = -3
1.58 - };
1.59 - public:
1.60 - //##ModelId=3A914DF50336
1.61 - inline THTTPFilterHandle(TStandardValues aVal = EUndefined);
1.62 - //##ModelId=3A914DF5032D
1.63 - inline TBool operator==(THTTPFilterHandle aThat) const;
1.64 - //##ModelId=3A914DF5032B
1.65 - inline TBool operator!=(THTTPFilterHandle aThat) const;
1.66 - private:
1.67 - //##ModelId=3A914DF50323
1.68 - TInt iValue;
1.69 - friend class RHTTPSession;
1.70 - friend class RHTTPFilterCollection;
1.71 - friend class CHTTPSession;
1.72 - friend class CTransaction;
1.73 - };
1.74 -
1.75 -inline THTTPFilterHandle::THTTPFilterHandle(TStandardValues aVal)
1.76 - : iValue(aVal)
1.77 - {
1.78 - }
1.79 -
1.80 -inline TBool THTTPFilterHandle::operator==(THTTPFilterHandle aThat) const
1.81 - {
1.82 - return iValue == aThat.iValue;
1.83 - }
1.84 -
1.85 -inline TBool THTTPFilterHandle::operator!=(THTTPFilterHandle aThat) const
1.86 - {
1.87 - return !(*this == aThat);
1.88 - }
1.89 -
1.90 -
1.91 -#endif // __THTTPFILTERHANDLE_H__