supl/locationsuplfw/protocolhandlerapi/inc/epos_csuplsessionbase.h
changeset 0 667063e416a2
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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:   This class provides the base from which the Session object
       
    15 *   			 in the protocol handler has to be derived.This is an
       
    16 *   			 abstract class and has to be implemented by the Protocol
       
    17 *  				 Handler plug-in
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #ifndef _SUPL_CPOSSUPLSESSIONBASE_H
       
    23 #define _SUPL_CPOSSUPLSESSIONBASE_H
       
    24 
       
    25 // INCLUDES
       
    26 #include <e32def.h>
       
    27 #include <e32base.h>
       
    28 #include <lbspositioninfo.h>
       
    29 
       
    30 class TRequestStatus;
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  Base class for SUPL Session Object in Protocol Handler
       
    35 *  This is an abstract class that has to be implemented
       
    36 *  by the Protocol Handler plug-in. 
       
    37 *
       
    38 *  @lib ?library
       
    39 *  @since Series 60 Series60_3.1M
       
    40 */
       
    41 class CSuplSessionBase : public CBase
       
    42     {
       
    43     public:  // Constructors and destructor
       
    44         
       
    45     public: // New functions
       
    46         
       
    47 
       
    48 		/**
       
    49         * CleanUp Method.
       
    50         * @since Series 60 3.1M
       
    51         * @param None
       
    52         * @return None
       
    53         */
       
    54         virtual void SessionEnd() = 0;
       
    55         
       
    56         /**
       
    57         * HandleSuplMessage Method.
       
    58         * @since Series 60 3.1M
       
    59         * @param None
       
    60         * @return None
       
    61         */
       
    62       //  IMPORT_C virtual  void HandleSuplMessage(const TDesC &) = 0;
       
    63         
       
    64         /**
       
    65         * GetPosition Method.
       
    66         * @since Series 60 3.1M
       
    67         * @param aStatus,aPos
       
    68         * @return None
       
    69         */
       
    70        virtual TInt GetPosition(TPositionInfo& aSuplPosInfo)=0;
       
    71 
       
    72         /**
       
    73         * GetPosition Method.
       
    74         * @since Series 60 3.1M
       
    75         * @param aSuplPosInfo
       
    76         * @return None
       
    77         */
       
    78         
       
    79        virtual TInt GetPosition(HPositionGenericInfo& aSuplPosInfo)=0;
       
    80        
       
    81 		/**
       
    82         * CancelRunSession Method.
       
    83         * @since Series 60 3.1M
       
    84         * @param aStatus,aPos
       
    85         * @return None
       
    86         */
       
    87        virtual void CancelRunSession()=0;
       
    88 
       
    89 		/**
       
    90         * CancelTriggerSession Method.
       
    91         * @since Series 60 3.1M
       
    92         * @param aStatus,aPos
       
    93         * @return None
       
    94         */
       
    95        virtual void CancelTriggerSession()=0;
       
    96        
       
    97        virtual TInt GetServerAddressL(TDes& ahslpAddress)=0;
       
    98        
       
    99        virtual void SetSUPLVersion(TInt aVersion) { iVersion = aVersion; }
       
   100        
       
   101        virtual TInt GetSUPLVersion() const { return iVersion;}
       
   102        
       
   103 
       
   104     public: // Functions from base classes
       
   105         
       
   106     protected:  // New functions
       
   107         
       
   108        
       
   109     protected:  // Functions from base classes
       
   110 
       
   111     private:
       
   112 
       
   113 
       
   114     public:     // Data
       
   115     
       
   116     protected:  // Data
       
   117 
       
   118     private:    // Data
       
   119     
       
   120     TInt iVersion;
       
   121     
       
   122     };
       
   123 
       
   124 #endif      // _SUPL_CPOSSUPLSESSIONBASE_H
       
   125             
       
   126 // End of File