|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * @publishedAll |
|
16 * @released |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef AUTHEXPRESSION_INL |
|
22 #define AUTHEXPRESSION_INL |
|
23 |
|
24 #include "authserver/authexpression.h" |
|
25 |
|
26 namespace AuthServer |
|
27 { |
|
28 |
|
29 |
|
30 // -------- TAuthExpressionWrapper -------- |
|
31 |
|
32 |
|
33 inline TAuthExpressionWrapper::operator CAuthExpression*() |
|
34 /** |
|
35 Conversion operator recasts this object as a |
|
36 pointer to the contained authorisation expression. |
|
37 */ |
|
38 { |
|
39 return iPtr; |
|
40 } |
|
41 |
|
42 |
|
43 #ifdef AUTH_EXPR_BINARY_OPS |
|
44 |
|
45 |
|
46 inline TAuthExpressionWrapper operator&(TAuthExpressionWrapper aLeft, TAuthExpressionWrapper aRight) |
|
47 /** |
|
48 This overloaded operator is a wrapper around a call to AuthAnd. |
|
49 See AuthAnd for a full description. |
|
50 |
|
51 @param aLeft Left subexpression. |
|
52 @param aRight Right subexpression. |
|
53 @return Wrapper around new complex AND expression, |
|
54 which is NULL if could not allocate. |
|
55 @see AuthAnd |
|
56 */ |
|
57 { |
|
58 return AuthAnd(aLeft, aRight); |
|
59 } |
|
60 |
|
61 |
|
62 inline TAuthExpressionWrapper operator|(TAuthExpressionWrapper aLeft, TAuthExpressionWrapper aRight) |
|
63 /** |
|
64 This overloaded operator is a wrapper around a call to AuthOr |
|
65 See AuthOr for a full description. |
|
66 |
|
67 @param aLeft Left subexpression. |
|
68 @param aRight Right subexpression. |
|
69 @return Wrapper around new complex OR expression, |
|
70 which is NULL if could not allocate. |
|
71 @see AuthOr |
|
72 */ |
|
73 { |
|
74 return AuthOr(aLeft, aRight); |
|
75 } |
|
76 |
|
77 |
|
78 #endif // #ifdef AUTH_EXPR_BINARY_OPS |
|
79 |
|
80 |
|
81 } // namespace AuthServer |
|
82 |
|
83 |
|
84 #endif // AUTHEXPRESSION_INL |
|
85 |