contextframework/cfw/inc/cfserver/CFSecurityChecker.h
author Stefan Karlsson <stefan.karlsson@nokia.com>
Sat, 10 Apr 2010 13:40:52 +0100
branchCompilerCompatibility
changeset 19 d494abcc62d5
parent 0 2e3d3ce01487
permissions -rw-r--r--
Got rid of some trivial warnings (nested comments and tokens after #endif).

/*
* Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Security Checker interface for CF.
*
*/


#ifndef M_CFSECURITYCHECKER_H
#define M_CFSECURITYCHECKER_H

class RThread;

/**
* Interface for security checker.
*/
class MCFSecurityChecker
    {
    public:
    
        /**
        * Checks client thread security.
        * Normal CF implementation lets current CF thread pass all
        * security checks. Implementation for test cases can fail whenever
        * the test case requires.
        *
        * @since S60 4.0
        * @param aClientThread Action identifier.
        * @param aSecurityPolicy Security level for the thread.
        * @return ETrue if the security check is passed.
        */
        virtual TBool CheckClientSecurity( const RThread& aClientThread,
            const TSecurityPolicy& aSecurityPolicy ) = 0;

    protected:
    
        // Deny destruction through this class
        virtual ~MCFSecurityChecker(){};
    };

#endif //M_CFSECURITYCHECKER_H