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