2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
21 #ifndef AUTHEXPRESSION_INL
22 #define AUTHEXPRESSION_INL
24 #include "authserver/authexpression.h"
30 // -------- TAuthExpressionWrapper --------
33 inline TAuthExpressionWrapper::operator CAuthExpression*()
35 Conversion operator recasts this object as a
36 pointer to the contained authorisation expression.
43 #ifdef AUTH_EXPR_BINARY_OPS
46 inline TAuthExpressionWrapper operator&(TAuthExpressionWrapper aLeft, TAuthExpressionWrapper aRight)
48 This overloaded operator is a wrapper around a call to AuthAnd.
49 See AuthAnd for a full description.
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.
58 return AuthAnd(aLeft, aRight);
62 inline TAuthExpressionWrapper operator|(TAuthExpressionWrapper aLeft, TAuthExpressionWrapper aRight)
64 This overloaded operator is a wrapper around a call to AuthOr
65 See AuthOr for a full description.
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.
74 return AuthOr(aLeft, aRight);
78 #endif // #ifdef AUTH_EXPR_BINARY_OPS
81 } // namespace AuthServer
84 #endif // AUTHEXPRESSION_INL