williamr@2
|
1 |
// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
2 |
// All rights reserved.
|
williamr@2
|
3 |
// This component and the accompanying materials are made available
|
williamr@2
|
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
|
williamr@2
|
5 |
// which accompanies this distribution, and is available
|
williamr@2
|
6 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
7 |
//
|
williamr@2
|
8 |
// Initial Contributors:
|
williamr@2
|
9 |
// Nokia Corporation - initial contribution.
|
williamr@2
|
10 |
//
|
williamr@2
|
11 |
// Contributors:
|
williamr@2
|
12 |
//
|
williamr@2
|
13 |
// Description:
|
williamr@2
|
14 |
//
|
williamr@2
|
15 |
|
williamr@2
|
16 |
|
williamr@2
|
17 |
inline THTTPEvent::THTTPEvent(TInt aStatus, TUint aUID)
|
williamr@2
|
18 |
: iStatus(aStatus), iUID(aUID), iIsSessionEventFlag(EFalse)
|
williamr@2
|
19 |
{
|
williamr@2
|
20 |
}
|
williamr@2
|
21 |
|
williamr@2
|
22 |
inline THTTPEvent::THTTPEvent(TStandardEvent aStatus)
|
williamr@2
|
23 |
: iStatus(aStatus), iUID(KHTTPUid), iIsSessionEventFlag(EFalse)
|
williamr@2
|
24 |
{
|
williamr@2
|
25 |
}
|
williamr@2
|
26 |
|
williamr@2
|
27 |
inline THTTPEvent::THTTPEvent(TTransactionEvent aStatus)
|
williamr@2
|
28 |
: iStatus(aStatus), iUID(KHTTPUid), iIsSessionEventFlag(EFalse)
|
williamr@2
|
29 |
{
|
williamr@2
|
30 |
}
|
williamr@2
|
31 |
|
williamr@2
|
32 |
inline THTTPEvent& THTTPEvent::operator=(TStandardEvent aStatus)
|
williamr@2
|
33 |
{
|
williamr@2
|
34 |
iUID = KHTTPUid;
|
williamr@2
|
35 |
iStatus = aStatus;
|
williamr@2
|
36 |
return *this;
|
williamr@2
|
37 |
}
|
williamr@2
|
38 |
|
williamr@2
|
39 |
inline THTTPEvent& THTTPEvent::operator=(TTransactionEvent aStatus)
|
williamr@2
|
40 |
{
|
williamr@2
|
41 |
iUID = KHTTPUid;
|
williamr@2
|
42 |
iStatus = aStatus;
|
williamr@2
|
43 |
return *this;
|
williamr@2
|
44 |
}
|
williamr@2
|
45 |
|
williamr@2
|
46 |
inline TBool THTTPEvent::operator==(THTTPEvent aThat) const
|
williamr@2
|
47 |
{
|
williamr@2
|
48 |
return (iStatus == aThat.iStatus && iUID == aThat.iUID);
|
williamr@2
|
49 |
}
|
williamr@2
|
50 |
|
williamr@2
|
51 |
inline TBool THTTPEvent::operator!=(THTTPEvent aThat) const
|
williamr@2
|
52 |
{
|
williamr@2
|
53 |
return !(*this == aThat);
|
williamr@2
|
54 |
}
|
williamr@2
|
55 |
|
williamr@2
|
56 |
inline TBool THTTPEvent::operator==(TStandardEvent aStatus) const
|
williamr@2
|
57 |
{
|
williamr@2
|
58 |
return (iStatus == aStatus && iUID == KHTTPUid);
|
williamr@2
|
59 |
}
|
williamr@2
|
60 |
|
williamr@2
|
61 |
inline TBool THTTPEvent::operator!=(TStandardEvent aStatus) const
|
williamr@2
|
62 |
{
|
williamr@2
|
63 |
return !(*this == aStatus);
|
williamr@2
|
64 |
}
|
williamr@2
|
65 |
|
williamr@2
|
66 |
inline TBool THTTPEvent::operator==(TTransactionEvent aStatus) const
|
williamr@2
|
67 |
{
|
williamr@2
|
68 |
return (iStatus == aStatus && iUID == KHTTPUid);
|
williamr@2
|
69 |
}
|
williamr@2
|
70 |
|
williamr@2
|
71 |
inline TBool THTTPEvent::operator!=(TTransactionEvent aStatus) const
|
williamr@2
|
72 |
{
|
williamr@2
|
73 |
return !(*this == aStatus);
|
williamr@2
|
74 |
}
|
williamr@2
|
75 |
|
williamr@2
|
76 |
inline TBool THTTPEvent::IsSessionEvent() const
|
williamr@2
|
77 |
{
|
williamr@2
|
78 |
return iIsSessionEventFlag;
|
williamr@2
|
79 |
}
|
williamr@2
|
80 |
|
williamr@2
|
81 |
inline THTTPSessionEvent::THTTPSessionEvent(TInt aStatus, TUint aUID)
|
williamr@2
|
82 |
: THTTPEvent(aStatus, aUID)
|
williamr@2
|
83 |
{
|
williamr@2
|
84 |
iIsSessionEventFlag = ETrue;
|
williamr@2
|
85 |
}
|
williamr@2
|
86 |
|
williamr@2
|
87 |
inline THTTPSessionEvent::THTTPSessionEvent(TStandardEvent aStatus)
|
williamr@2
|
88 |
: THTTPEvent(aStatus)
|
williamr@2
|
89 |
{
|
williamr@2
|
90 |
iIsSessionEventFlag = ETrue;
|
williamr@2
|
91 |
}
|
williamr@2
|
92 |
|
williamr@2
|
93 |
inline THTTPSessionEvent::THTTPSessionEvent(TSessionEvent aStatus)
|
williamr@2
|
94 |
: THTTPEvent(aStatus)
|
williamr@2
|
95 |
{
|
williamr@2
|
96 |
iIsSessionEventFlag = ETrue;
|
williamr@2
|
97 |
}
|
williamr@2
|
98 |
|
williamr@2
|
99 |
inline THTTPSessionEvent& THTTPSessionEvent::operator=(TSessionEvent aStatus)
|
williamr@2
|
100 |
{
|
williamr@2
|
101 |
iUID = KHTTPUid;
|
williamr@2
|
102 |
iStatus = aStatus;
|
williamr@2
|
103 |
return *this;
|
williamr@2
|
104 |
}
|
williamr@2
|
105 |
|
williamr@2
|
106 |
inline TBool THTTPSessionEvent::operator==(TSessionEvent aStatus) const
|
williamr@2
|
107 |
{
|
williamr@2
|
108 |
return (iStatus == aStatus && iUID == KHTTPUid);
|
williamr@2
|
109 |
}
|
williamr@2
|
110 |
|
williamr@2
|
111 |
inline TBool THTTPSessionEvent::operator!=(TSessionEvent aStatus) const
|
williamr@2
|
112 |
{
|
williamr@2
|
113 |
return !(*this == aStatus);
|
williamr@2
|
114 |
}
|