Hi Hedayat,
I think I should add new class for the functionality of the proposed 
integration of proxy settings and Network connection.I have attached the 
details of the proposed NMSettingsProxy class below. That class inherits the 
NMSettings class already in the NM.




        
        
        
        



                                                
                                                        
                                                        
                                                        
                                                
                                        

----------------------------------------------------------------------------------------------------------------------------------------------
                                           
NMSettingsProxy Class : NMSettings Class

                                                                
                                                        
                                                        
                                                                
                                                                        
Attributes:


                                                                        
                                                                        
default_proxy:
                                                                        string
                                                                        
default_proxy_port
                                                                        :uint
                                                                        
ssl_proxy:
                                                                        string
                                                                        
ssl_proxy_port
                                                                        :uint
                                                                        
ftp_proxy:
                                                                        string
                                                                        
ftp_proxy_port
                                                                        :uint
                                                                        
socks_proxy:
                                                                        string
                                                                        
socks_proxy_port
                                                                        :uint
                                                                        pac_url:
                                                                        string
                                                                        
no_proxy_for
                                                                        :string 
[]
                                                                        
default_always:boolean
                                                                        

                                                                        
                                                                
                                                        
                                                        
                                                                
                                                                        
Functions:


                                                                        
                                                                        void:
                                                                        
changeMode (mode:string)
                                                                        
                                                                        
void:exportProxySetings()
                                                                        
                                                                        void: 
obtainDetectedProxySettings()
                                                                        

                                                                        
                                                                
                                                        
                                                
                                        
According to the requirements of the project the proposed class should be able 
to 



Obtain automatic detected
        proxies if any available(the NM already detect proxy seetings using
        WPAD and DHCP)Or obtain proxy settings using
        stored proxy settings ( NM detect the available connections –we
        have profiles for those connections – best case) , if the
        connection selected is not a registered one we have to use default
        proxy settings
        Complete IP configuration.
        Take care about the
        NM_DEVICE_STATE_IP_CONFIG activation stage- System tries to merge
        the settings with the detected settings, but we have to update the
        proxy configurations of nm-policy,c
        Send the final proxy settings
        to the system



( Reference-
http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/TODO
)


I have gone through the firewall
integration for NM. And now I am trying to understand the functionality of 
super classes which can be use to obtain
appropriate data. (Available connections, each connection profiles,
configuring IP, sending data to the system – using DBUS etc,
interfaces of NM)


Could you please give your feedback
about above preparation? 


I am not clear about what is the
proxy handler?
Thanks & Regards,Malintha Adikari


                                          
_______________________________________________
networkmanager-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/networkmanager-list

Reply via email to