upnpsharing/upnpsecurity/inc/server/upnpsecuritymanagerserver.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:  CUpnpSecurityManagerServer
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef C_CUPNPSECURITYMANAGERSERVER_H
       
    19 #define C_CUPNPSECURITYMANAGERSERVER_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>
       
    23 #include "upnpsecuritymanagerclientservercommon.h"
       
    24 #include "upnpsymbianserverbase.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CUpnpSecurityManagerEngine;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32  * 
       
    33  */
       
    34 class CUpnpSecurityManagerServer : public CUpnpSymbianServerBase
       
    35     {
       
    36 public:
       
    37     /**
       
    38      * Create a CUpnpSecurityManagerServer object using two phase construction,
       
    39      * and return a pointer to the created object, leaving a pointer to the
       
    40      * object on the cleanup stack.
       
    41      * @result pointer to created CUpnpSecurityManagerServer object
       
    42      */
       
    43     static CUpnpSymbianServerBase* NewLC();
       
    44 
       
    45     /**
       
    46      * Destroy the object and release all memory objects.
       
    47      */
       
    48     ~CUpnpSecurityManagerServer();
       
    49 
       
    50 private:
       
    51     // from CUpnpSymbianServerBase
       
    52 
       
    53     /**
       
    54      * 
       
    55      */
       
    56     const TDesC& ServerName() const;
       
    57 
       
    58 private:
       
    59     /**
       
    60      * Perform the first phase of two phase construction.
       
    61      */
       
    62     CUpnpSecurityManagerServer();
       
    63 
       
    64     /**
       
    65      * Perform the second phase construction of a CUpnpSecurityManagerServer object.
       
    66      */
       
    67     void ConstructL();
       
    68 
       
    69 private:
       
    70     // From CUpnpSymbianServer
       
    71 
       
    72     /**
       
    73      * Create a time server session, and return a pointer to the created object.
       
    74      * @result pointer to new session
       
    75      */
       
    76     CSession2* NewSessionL( const RMessage2& aMessage ) const;
       
    77 
       
    78     /**
       
    79      * Returns version that is supported by this server.
       
    80      */
       
    81     virtual TVersion SupportedVersion() const;
       
    82 
       
    83 private:
       
    84     //
       
    85     CUpnpSecurityManagerEngine* iEngine;
       
    86     };
       
    87 
       
    88 #endif // C_CUPNPSECURITYMANAGERSERVER_H
       
    89 // End of File