locationsystemui/locationsysui/privacyverifiernotifierui/locprivacyserver/inc/locprivacyserversession.h
branchRCL_3
changeset 44 2b4ea9893b66
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
       
     1 /*
       
     2 * Copyright (c) 2010 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:  Server session class definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CLOCPRIVACYSERVERSESSION_H
       
    20 #define CLOCPRIVACYSERVERSESSION_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <lbs/epos_cposrequestor.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CPosPrivacyServer;
       
    28 class RPosRequestorStack;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  *  The EPos privacy server session class.
       
    34  *
       
    35  */
       
    36 class CLocPrivacyServerSession : public CSession2
       
    37     {
       
    38     public:  // Constructors and destructor
       
    39 
       
    40         /**
       
    41          * Two-phased constructor.
       
    42          * @param aServer Reference to the server Active Object
       
    43          * @return Pointer to a new instance of CPosPrivacyServerSession
       
    44          */
       
    45         static CLocPrivacyServerSession* NewL(
       
    46         /* IN  */   CLocPrivacyServer&  aServer
       
    47         );
       
    48 
       
    49         /**
       
    50          * C++ destructor
       
    51          */
       
    52         ~CLocPrivacyServerSession();
       
    53 
       
    54     private: // Private Constructing
       
    55 
       
    56         /**
       
    57          * C++ private constructor
       
    58          */
       
    59         CLocPrivacyServerSession();
       
    60 
       
    61         /**
       
    62          * EPOC default constructor.
       
    63          * @param aServer Reference to the server Active Object
       
    64          */
       
    65         void ConstructL(
       
    66         /* IN   */  CLocPrivacyServer& aServer
       
    67         );
       
    68 
       
    69     public:    // Functions from base classes
       
    70 
       
    71         /**
       
    72         * From CSession2.
       
    73         * This function services all requests from clients.
       
    74         *
       
    75         * @param aMessage the message that should be serviced
       
    76         */
       
    77         void ServiceL(
       
    78         /* IN  */   const RMessage2& aMessage
       
    79         );
       
    80 
       
    81     private: // New functions
       
    82 
       
    83         /**
       
    84         * Closes the session.
       
    85         */
       
    86         void CloseSession();
       
    87 
       
    88         // Contains the actual ServiceL code.
       
    89         //
       
    90         void DispatchL(const RMessage2& aMessage);
       
    91 
       
    92       
       
    93             
       
    94     private:
       
    95 
       
    96         // By default, prohibit copy constructor
       
    97         CLocPrivacyServerSession( const CLocPrivacyServerSession& );
       
    98         // Prohibit assigment operator
       
    99         CLocPrivacyServerSession& operator= ( const CLocPrivacyServerSession& );
       
   100 
       
   101     private:    // Data
       
   102         // Buffer for hoding resolved requestors
       
   103         CBufFlat* iBufFlat;
       
   104       };
       
   105 
       
   106 #endif      // CLOCPRIVACYSERVERSESSION_H
       
   107 
       
   108 // End of File