supl/locationsuplfw/protocolhandlerapi/inc/epos_csuplcommunicationmanager.h
changeset 40 16118e24b93b
parent 0 667063e416a2
equal deleted inserted replaced
33:834e27cad510 40:16118e24b93b
    34 class MSuplPacketReceiver;
    34 class MSuplPacketReceiver;
    35 class CSuplConnTrace;
    35 class CSuplConnTrace;
    36 
    36 
    37 // CLASS DECLARATION
    37 // CLASS DECLARATION
    38 
    38 
       
    39 class MSuplConnectionMonitor
       
    40 	{
       
    41 public:
       
    42 	virtual void ConnectionOpened() = 0;
       
    43 	virtual void ConnectionClosed() = 0;
       
    44 	};
       
    45 
    39 /**
    46 /**
    40 *  CSuplCommunicationManager is the Singleton that provides SUPL Connection 
    47 *  CSuplCommunicationManager is the Singleton that provides SUPL Connection 
    41 *  to be used by Protocol Handler
    48 *  to be used by Protocol Handler
    42 *  
    49 *  
    43 *  This provides the methods to create and destroy for SUPL Connection
    50 *  This provides the methods to create and destroy for SUPL Connection
    52     public:  // Constructors and destructor
    59     public:  // Constructors and destructor
    53         
    60         
    54         /**
    61         /**
    55         * Two-phased constructor.
    62         * Two-phased constructor.
    56         */
    63         */
    57         IMPORT_C static CSuplCommunicationManager* NewL();
    64         IMPORT_C static CSuplCommunicationManager* NewL(MSuplConnectionMonitor& aConnMonitor);
    58         
    65         
    59         /**
    66         /**
    60         * Destructor.
    67         * Destructor.
    61         */
    68         */
    62         IMPORT_C virtual ~CSuplCommunicationManager();
    69         IMPORT_C virtual ~CSuplCommunicationManager();
   176     private:
   183     private:
   177 
   184 
   178         /**
   185         /**
   179         * C++ default constructor.
   186         * C++ default constructor.
   180         */
   187         */
   181         CSuplCommunicationManager();
   188         CSuplCommunicationManager(MSuplConnectionMonitor& aConnMonitor);
   182 
   189 
   183         /**
   190         /**
   184         * By default Symbian 2nd phase constructor is private.
   191         * By default Symbian 2nd phase constructor is private.
   185         */
   192         */
   186         void ConstructL();
   193         void ConstructL();
   204         // Packet Receiver
   211         // Packet Receiver
   205         MSuplPacketReceiver *iPktReceiver;
   212         MSuplPacketReceiver *iPktReceiver;
   206         
   213         
   207         // Trace Log
   214         // Trace Log
   208         CSuplConnTrace* iTrace;
   215         CSuplConnTrace* iTrace;
       
   216         
       
   217         MSuplConnectionMonitor& iConnMonitor;
   209     };
   218     };
   210 
   219 
   211 #endif      // C_CSUPLCOMMUNICATIONMANAGER_H   
   220 #endif      // C_CSUPLCOMMUNICATIONMANAGER_H   
   212             
   221             
   213 // End of File
   222 // End of File