upnpsharing/upnpsecurity/inc/upnpsecuritymanagerplugin.h
changeset 0 7f85d04be362
equal deleted inserted replaced
-1:000000000000 0:7f85d04be362
       
     1 /** @file
       
     2  * Copyright (c) 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 "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 : Access control interface
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef UPNPSECURITYMANAGERPLUGIN_H
       
    19 #define UPNPSECURITYMANAGERPLUGIN_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>
       
    23 #include <upnpsecuritymanager.h>
       
    24 #include "upnpsecaccesscontroller.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29  *  Upnp Security Manager Plugin class
       
    30  *  @since S60 3.1
       
    31  */
       
    32 class CUpnpSecurityManagerPlugin : public CUpnpSecurityManager
       
    33     {
       
    34 public:
       
    35     // Constructors and destructor
       
    36 
       
    37     /**
       
    38      * Two-phased constructor.
       
    39      */
       
    40     static CUpnpSecurityManagerPlugin* NewL();
       
    41 
       
    42     /**
       
    43      * Destructor.
       
    44      */
       
    45     virtual ~CUpnpSecurityManagerPlugin();
       
    46 
       
    47 public:
       
    48     // From UpnpSecurityManager
       
    49 
       
    50     /** 
       
    51      * Authorize HTTP message.
       
    52      *
       
    53      * @since S60 3.1
       
    54      * @param aMessage (CUpnpHttpMessage*) HTTP message
       
    55      * @param aRequestedFile (TFileName&) requested file location
       
    56      * @return authorization result (KErrNone if ok, KErrAccessDenied if
       
    57      *         not)
       
    58      */
       
    59     TInt AuthorizeMessage( CUpnpHttpMessage* aMessage,
       
    60         TFileName& aRequestedFile );
       
    61 
       
    62     /** 
       
    63      * Authorize SOAP action
       
    64      *
       
    65      * @since S60 3.1
       
    66      * @param aAction (CUpnpAction*) SOAP action   
       
    67      * @return authorization result (KErrNone if ok, KErrAccessDenied if
       
    68      *         not)
       
    69      */
       
    70     TInt AuthorizeAction( CUpnpAction* aAction );
       
    71 
       
    72 private:
       
    73 
       
    74     /**
       
    75      * C++ default constructor.
       
    76      */
       
    77     CUpnpSecurityManagerPlugin();
       
    78 
       
    79     /**
       
    80      * By default Symbian 2nd phase constructor is private.
       
    81      */
       
    82     void ConstructL();
       
    83 
       
    84 private:
       
    85     // Member variables
       
    86 
       
    87     //
       
    88     CUpnpSecAccessController* iAccessController; // owned
       
    89     };
       
    90 
       
    91 #endif // UPNPSECURITYMANAGERPLUGIN_H
       
    92 // End of File