示例#1
0
文件: http.py 项目: RaD/qtclient
    def get_settings(self):  # private
        """ Use this method to obtain application's network settings. """
        self.settings = QSettings()

        network = TabNetwork()
        network.loadSettings(self.settings)

        host = network.addressHttpServer.text()
        port = network.portHttpServer.text()

        return (host, port)
示例#2
0
文件: http.py 项目: mabragor/foobar
    def get_settings(self): # private
        """
        Loads application settings, which had been previously saved and
        returns host and port to connect to. Intended to be used in L{connect}
        method.
        
        @rtype : (string, string)
        @return: Returns host and port, where server is supposed to listen.        
        """
        self.settings = QSettings()

        network = TabNetwork()
        network.loadSettings(self.settings)

        host = network.addressHttpServer.text()
        port = network.portHttpServer.text()

        return (host, port)