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